I am trying to build and run an Cocoa-based OSX app. However, when I attempt to set the deployment target to anything other than 10.8, I get a runtime error when the app attempts to launch:
dyld: Library not loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
Referenced from: /Users/chris/Library/Developer/Xcode/DerivedData/Build/Products/Release/MyApp.app/Contents/MacOS/MyApp
Reason: Incompatible library version: MyApp requires version 64.0.0 or later, but ApplicationServices provides version 1.0.0
As far as I can tell, there is nothing in my app that uses anything from the ApplicationServices.framework. I don’t even know why it would attempt to load that library.
For reference, I’m using a few 3rd party frameworks, including Growl.framework (Growl 2.0), Sparkle.framework (Sparkle 1.5 b6), and MagicKit.framework (https://github.com/aidansteele/MagicKit)
Answering my own question (after several hours of investigation):
Apparently, by linking to CoreGraphics.framework in my Desktop app project, it caused a runtime load request for the 10.8 version of the ApplicationServices framework. Fortunately, I wasn’t even using anything from CoreGraphics. Removing caused the dyld loading error to stop.