Xcode 7 Beta 6, dyld ___NSArray0__ crash

For the first time, I was able to compile my application in Xcode 7 (unsuccessful in beta versions 4 and 5). So this is good progress, I think.

However, when I download my application to my iPhone 6, iOS 8.4.1, it crashed in the debugger with the following message:

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

How does this relate to library linking order? Take a look at some tips.

Thanks!

+8
ios xcode core-foundation beta xcode7-beta6
source share
7 answers

I experienced the same crash that launched Xcode 7.0 beta 6 on a device with the first beta version of iOS 9 installed, however, when using the simulator, an accident did not occur.

After upgrading my iPhone to iOS 9 beta 5, the crash stopped.

+1
source share

I fixed it by placing it in a subfile. platform: ios, '8.4' There is no need to upgrade your device to iOS 9 and lose testing 8.4.

+22
source share

I had the same error and fixed it. I removed CoreFoundation.framework and again added the status of "Optional" and it works.

+18
source share

If someone else got this while doing unit tests, follow these steps:

  • Select a unit test goal
  • Go to build settings
  • Search "Deployment Goal"
  • Change Deployment Target Version for Your Project Deployment Goal

What is it!

enter image description here

+6
source share

I also had this problem, and I fixed it by adding the CoreFoundation.framework framework to create the settings.

+4
source share

This is a problem for building iOS8 with the new version of XCODE. Remove CoreFoundation.framework and add it again with the status of " Optional ".

+4
source share

I had the same error compiling a mac os project after updating the Xcode version for GM version 7.0 (7A218). Xcode 7 only has 10.11 sdk (you can check this in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDK where MacOSX10.11.sdk is located).

At compile time, xcode will link the frameworks to /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks, but at runtime from / System / Library / Frameworks /, as I suppose.

I have OS X 10.10.5 (14F27) on mac. Or I have my static library, which I created using xcode 7 (MacOSX10.11.sdk, as you remember earlier), with which I am associated with my project after. After starting, I got a runtime error like

dyld: Character not found: _NSArray0

I think this is because the library was compiled with CoreFoundation.framework from mac os sdk 10.11, but at runtime it was linked to CoreFoundation.framework from / System / Library / Frameworks / where version 10.10 (as OS version).

How I fixed it. My friend has xcode 6, I took mac os sdk 10.10 from there (as you remember in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs, name MacOSX10.10.sdk) and added it to my Xcode. Then I rebuilt my static library using 10.10 sdk (you can compile from cli with the option "-sdk macosx10.10" or install build sdk in the build settings => Base SDK). After the problem is resolved.

I assume that for iOS you can apply the same strategy.

+2
source share

All Articles