问题
I get this error when I run my Today extension for iOS:
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /Users/andy/Library/Developer/CoreSimulator/Devices/724FF0C3-6622-4D12-865A-90244C8C63C1/data/Containers/Bundle/Application/30D8974B-ED1A-4F3A-8958-E9B7AA8901A9/App.app/PlugIns/Today.appex/Today
Reason: image not found
I've restarted, uninstalled, installed xcode, rebooted my machine, created a fresh Today extension and I still got this error :-/
Same problem on simulator and on device..
Do you have any idea?
回答1:
Build settings -> "Embeded content contains Swift Code" -> YES seems to do the trick.
Thanks @dlinsin on twitter
If still not working check this too: https://stackoverflow.com/a/25247890/2184338
mine is:
edit: if still still not:
- Check "runpath search paths"
- Check Linked Frameworks (I only have NotificationCenter.framework in my case)
- Product->clean
- Restart xcode
- Restart machine
- Check provisioning and signature
回答2:
I also met this problem, but Build settings -> "Embeded content contains Swift Code" -> YES invalid
来源:https://stackoverflow.com/questions/25774085/xcode-gm-ios-8-gm-swift-today-extension-crash-in-simulator-and-device-library-n