Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 7 Beta 6, dyld ___NSArray0__ crash

For the first time I was able to compile my app in Xcode 7 (failed in beta 4 and 5). So, thats good progress I guess.

However, when i load my app on my iPhone 6, iOS 8.4.1, it crashed in the debugger with the following message:

dyld: Symbol not found: _NSArray0 Referenced from: /private/var/mobile/Containers/Bundle/Application/0294DF62-AE80-485D-BB11-8C3A5D39777D/Boxtiq.app/Boxtiq Expected in: /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation in /private/var/mobile/Containers/Bundle/Application/0294DF62-AE80-485D-BB11-8C3A5D39777D/Boxtiq.app/Boxtiq

Is this something to do with the order of the libraries being linked? Look forward to some advise.

Thanks!

like image 658
Sachin Avatar asked Aug 25 '15 18:08

Sachin


3 Answers

I fixed it by putting this in the podfile. platform :ios, '8.4' No need to update your device to iOS 9 and lose out on 8.4 testing.

like image 185
Dan Avatar answered Nov 07 '22 04:11

Dan


I had the same error and I fixed. I removed CoreFoundation.framework and Add again with Status "Optional" and works.

like image 19
A. Trejo Avatar answered Nov 07 '22 05:11

A. Trejo


If anybody else got this while running unit tests do the following:

  1. Select unit tests target
  2. Go to Build Settings
  3. Search for 'Deployment Target'
  4. Change Deployment Target version to your project's deployment target

That's it!

enter image description here

like image 6
Sergey Katranuk Avatar answered Nov 07 '22 05:11

Sergey Katranuk