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.
Mike demidov
source share