xcode gm ios 8 gm swift今天扩展崩溃在模拟器和设备:库未加载:@ rpath / libswiftCore.dylib [英] xcode gm ios 8 gm swift today extension crash in simulator and device: Library not loaded: @rpath/libswiftCore.dylib
问题描述
当我运行iOS的iOS扩展程序时出现此错误:
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重新启动,卸载,安装xcode,重新启动我的机器,创建一个新的今天扩展,我仍然得到这个错误: - /
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..
您有什么想法吗?
推荐答案
>嵌入的内容包含Swift代码 - >是的似乎做的伎俩。
Build settings -> "Embeded content contains Swift Code" -> YES seems to do the trick.
感谢@dlinsin在Twitter上
Thanks @dlinsin on twitter
如果仍然无法正常工作,请检查:
http://stackoverflow.com/a/25247890/2184338
If still not working check this too: http://stackoverflow.com/a/25247890/2184338
我的is:
mine is:
编辑:
如果仍然不能:
edit: if still still not:
- 检查runpath搜索路径
- 检查链接的框架(我只有
中的NotificationCenter.framework) - 产品 - >清洁
- 重新启动xcode
- 重新启动机器
- 检查配置和签名
- 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
这篇关于xcode gm ios 8 gm swift今天扩展崩溃在模拟器和设备:库未加载:@ rpath / libswiftCore.dylib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!