Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 540
ia3andy Avatar asked Sep 10 '14 20:09

ia3andy


1 Answers

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: runpath search paths

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
like image 104
ia3andy Avatar answered Sep 22 '22 07:09

ia3andy