11

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?

ia3andy
  • 493
  • 4
  • 14
  • looks like a lib isn't found and an image isn't found... – John Riselvato Sep 10 '14 at 20:09
  • 1
    Did u try to delete "Derived Data"? Window->Organizer->Projects Tab->Press Delete button to recreate Proj – Maxim Shoustin Sep 10 '14 at 20:09
  • I just did delete "Derived Data", still same error. Maybe the lib is not found but it should be included as part of xcode. It has nothing to do with images. I tried it on xcode beta 6.1 and still same error :/ I managed to make a Hello World plugin on xcode beta 2 few months ago.. maybe I should download it again to see if it works back there.. – ia3andy Sep 10 '14 at 20:15

2 Answers2

23

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
Community
  • 1
  • 1
ia3andy
  • 493
  • 4
  • 14
2

I also met this problem, but Build settings -> "Embeded content contains Swift Code" -> YES invalid

Mark_Ss
  • 111
  • 5
  • Could you explain a bit more please ? – ia3andy Sep 11 '14 at 07:23
  • 1
    I Build settings "Embeded content contains Swift Code" -> YES and "Runpath search Pats" -> $(inherited) @executable_path/Frameworks. but run project to iPhone5s(iOS8 GM) error (dyld: Library not loaded: @rpath/libswiftCore.dylib ). – Mark_Ss Sep 11 '14 at 08:17
  • Run project to simulator success – Mark_Ss Sep 11 '14 at 08:22