Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

XCode 11.2b - EXC_BAD_ACCESS at setupPrefetching() #13

Closed
janandre opened this issue Oct 16, 2019 · 6 comments
Closed

XCode 11.2b - EXC_BAD_ACCESS at setupPrefetching() #13

janandre opened this issue Oct 16, 2019 · 6 comments
Labels

Comments

@janandre
Copy link

When running the demo project or just using the collection view in an own project it crashes on setupPrefetching.

@apptekstudios
Copy link
Owner

Thanks for raising the issue Jan :) I couldn’t reproduce this crash, which version of Xcode / iOS are you testing with?

@janandre
Copy link
Author

janandre commented Oct 16, 2019

I used XCode Version 11.2 beta (11B41)
My iOS Target is 13.1

@apptekstudios
Copy link
Owner

I suspect it's due to some change in Combine (which is utilised for setupPrefetching). There's no error on the Xcode 11.1 GM.
I'll download that beta and will try and take a look what's happening later today :)

@apptekstudios apptekstudios changed the title EXC_BAD_ACCESS at setupPrefetching() XCode 11.2b - EXC_BAD_ACCESS at setupPrefetching() Oct 16, 2019
@apptekstudios
Copy link
Owner

Managed to track down the issue and should now be resolved.

It seems to be a weird compiler bug in the beta.

  • The same error occurred when I replaced setupPrefetching with a completely empty function titled test.
  • Simply moving the function into an extension fixed the error (as did moving it elsewhere within the Coordinator definition, however I opted to stick with the extension).

I have tested in Xcode 11.2 beta 2 and the crash is now resolved. It'd be great if you could test the new version I've pushed (0.9.1) and confirm it is now working for you :)

@apptekstudios
Copy link
Owner

@janandre Closing this issue after further testing of 0.9.1. Please let me know if you think it needs to be re-opened

@janandre
Copy link
Author

Works great, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants