xcode gm ios 8 gm swift today extension crash in simulator and device: Library not loaded: @rpath/libswiftCore.dylib

让人想犯罪 __ 提交于 2019-12-21 03:52:10

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!