dyld: Symbol not found: __NSConcreteGlobalBlock after updating to OSX 10.8 - objective-c

I just updated to Mac OSX10.8 and I'm trying to compile a Mac app that ran perfectly when using 10.7 + Xcode 4.5. Now I get this error:
dyld: Symbol not found: __NSConcreteGlobalBlock
Expected in: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
I've looked everywhere and things seem to be ok. The deployment target for the app is 10.6 which already supports blocks. Any ideas?
Thanks!!

It turns out that my project was trying to use an old version of the CoreServices framework which was causing this issue. I re-added all the frameworks that my project was using and the problem was gone :)

+1 on your question... Not sure if that would help finding the problem with OS X, but there is a similar error that happens with iPhone apps, with a solution in the link below. Another reason I am providing this link is that googling this error for the iPhone got me to this page.
iOS 4 app crashes at startup on iOS 3.1.3: Symbol not found: __NSConcreteStackBlock

Related

dyld: Library not loaded: #rpath/Realm.framework/Realm error with Realm Objective C framework

I have installed the Realm Objective C Framework (2.0.3) by simply dragging it into my project created in Xcode 8. When I first tried it on simulator I got the typical dyld error.
dyld: Library not loaded: #rpath/Realm.framework/Realm
Referenced from: /var/containers/Bundle/Application/89F5987A-F3F0-45F2-9014-6BA662135E00/RelamDemo.app/RelamDemo
Reason: image not found
So I tried to fix it using the following suggestion:
https://github.com/realm/realm-cocoa/issues/1681#issuecomment-120749962
And it worked on iOS 10 Simulators.
But when I tried to run the same project on a device (iOS 10/9.3.2) I got the same dyld error again.
I have checked that I have copied the Realm.framework in my project. Now how can I solve the problem?
You need to ensure that Realm.framework is also copied to the 'Embedded Binaries' section of your app as well.
You can find that section in the 'General' tab of your project's settings.
(Screenshot courtesy of this iOSDevCenter post)

Ios :: dyld: Symbol not found: _OBJC_CLASS_$_UIAlertAction

I have an app which works fine with iOS sdk 8.3 and Xcode 6. but when i check backward compatibility with iOS sdks 7.1 and 7.1 simulator it fails.
App crashes with following error
dyld: Symbol not found: _OBJC_CLASS_$_UIAlertAction
Referenced from: /Users/apogaeis/Library/Developer/CoreSimulator/Devices/F48B2D65-9EE8-4737-A0CE-2882D105C6C9/data/Applications/25B9DCDE-4BC6-4568-8EBE-3474FE559CBC/AppName.app/AppName
Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/UIKit.framework/UIKit
in /Users/apogaeis/Library/Developer/CoreSimulator/Devices/F48B2D65-9EE8-4737-A0CE-2882D105C6C9/data/Applications/25B9DCDE-4BC6-4568-8EBE-3474FE559CBC/AppName.app/AppName
Please suggest to resolve the issue.
How can i make it work for all the iOS versions?
Thanks
In my case, UIKit.Framework had to be marked Optional rather than Required now my app works fine....

Import LocalAuthentication.framework crashes on iPhone5s with iOS 7.1

This question has been asked here before but the selected answer and comments does not resolve the problem. So I am asking it again and going to keep it simple.
I have an app in which am using Touch ID. It works fine in all devices except iPhone 5s with iOS 7.1.
To observe this thing.
Create a new Xcode project.
Add the LocalAuthentication framework.
Observe that the app crashes right away in iPhone 5s with iOS 7.1.
Now mark LocalAuthentication as optional but it still crashes on that specific device.
Note: I also set Link Frameworks Automatically to NO in build settings. Then I had to add "UIKit" framework to app manully. Apart from that I did nothing.
I also tried the same thing with apple sample code, it is also crashing for the same.
Crash Log:
dyld: Symbol not found: _objc_isAuto
Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/lib/libobjc.A.dylib
in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
Please suggest something.

while i try to run in iOS 6 my code throws Sen test Framework error. why?

I have a project that is developed in iOS 5.0 and now i need to update my project to iOS 6.0 .
While doing this my xcode 4.5 throws the error as below...
dyld: Library not loaded: #rpath/SenTestingKit.framework/Versions/A/SenTestingKit
Referenced from: /Users/developer/Library/Application Support/iPhone Simulator/6.0/Applications/6EFF12B6-DA80-4DD8-B3CF-B217C5EA63DF/XxxxXxxx.app/xxxxXxxxXxx
Reason: image not found
still it runs and works perfectly in iOS 5 devices and i am trying to run this app in iphone Simulator iOS 6.0 it throws that error...
Any body have any idea about this...
Thanks in advance...
its working....set SentestingKit.framework as optional
#fry copied his answer from here:
http://www.cocoabuilder.com/archive/xcode/260066-sentesttingkit-framework-runtime-failure.html
There's more information there which I found useful in solving this problem.
Try to delete the derived Data, then clean the project and restart Xcode.
If its still not working, check the Target dependencies of your library.
It seams like it has Problems with the armv7s Architecture, check that in the
Buildsettings of your Framework!

Xcode - SIGABRT error ONLY on MY mac

I get a SIGABRT error in my Xcode-project. The strange thing is, that on another mac the project runs without an error.
I allready did:
clean the project
restarted Xcode and the mac
deleted the app files from simulator
And on both mac's is the same Xcode version.
Have anyone a spontaneous advice for me? :/
Have you checked if the BaseSDK is set to the latest iOS version or not for both macs?