We have a working Mac OS X splash screen as a standalone Xcode project, but we needed to use it as a target in another Xcode project, which also contains the corresponding application.
I added a goal for the screensaver, copied the code, added to this goal, etc. etc. The code is the same as in another splash screen, but in this case it generates the following error:
2015-03-10 09:43:24.766 System Preferences[32495]: Error loading /Users/pupeno/Library/Screen Savers/Ninja.saver/Contents/MacOS/Ninja: dlopen(/Users/pupeno/Library/Screen Savers/Ninja.saver/Contents/MacOS/Ninja, 265): Library not loaded: @rpath/libswiftAppKit.dylib Referenced from: /Users/pupeno/Library/Screen Savers/Ninja.saver/Contents/MacOS/Ninja Reason: image not found 2015-03-10 09:43:24.766 System Preferences[32495]: ScreenSaverModules: can't get principalClass for /Users/pupeno/Library/Screen Savers/Ninja.saver
The library in question definitely exists:
$ ls -w1 Library/Screen\ Savers/Ninja.saver/Contents/Frameworks/ libswiftAppKit.dylib libswiftCore.dylib libswiftCoreGraphics.dylib libswiftDarwin.dylib libswiftDispatch.dylib libswiftFoundation.dylib libswiftObjectiveC.dylib libswiftQuartzCore.dylib libswiftSecurity.dylib
Any ideas what could be causing this?
source share