dyld: Library not loaded: @rpath/libswiftContacts.dylib

609 views
Skip to first unread message

Saeed Masoumi

unread,
Feb 12, 2016, 3:00:24 PM2/12/16
to RoboVM
Hi


So after building MySwiftFramework and MyObjectiveCFramework successfully and running the project on emulator, i got this error 

dyld: Library not loaded: @rpath/libswiftContacts.dylib
 
Referenced from: /Users/Saeed/Library/Developer/CoreSimulator/Devices/F271C26C-6A76-48C3-A455-2A8B1B055A8D/data/Containers/Bundle/Application/E56CE9CD-08B5-4BB6-BE72-D9011BB84BD9/HelloWorld.app/Frameworks/libswiftUIKit.dylib
 
Reason: image not found


Mario Zechner

unread,
Feb 12, 2016, 7:39:42 PM2/12/16
to RoboVM
What iOS version are you using in the simulator?

Saeed Masoumi

unread,
Feb 13, 2016, 1:50:06 AM2/13/16
to RoboVM
iOS 9.2

Saeed Masoumi

unread,
Feb 16, 2016, 8:43:12 AM2/16/16
to RoboVM
Any help?

Mario Zechner

unread,
Feb 17, 2016, 6:21:35 AM2/17/16
to RoboVM
This appears to be an issue with shared library dependencies. libswiftContacts.dylib should be part of the frameworks of the sim. I see you already filed an issue here: https://github.com/robovm/robovm-samples/issues/89 we'll take a look.

On Tuesday, February 16, 2016 at 2:43:12 PM UTC+1, Saeed Masoumi wrote:
Any help?

Dom

unread,
Feb 17, 2016, 9:08:54 AM2/17/16
to RoboVM
I just pushed a fix for this sample. Xcode was missing a build setting (EMBEDDED_CONTENT_CONTAINS_SWIFT = YES;). 
Please try it again with the sample from the snapshot branch: https://github.com/robovm/robovm-samples/tree/snapshot/CustomFrameworks


Saeed Masoumi

unread,
Feb 19, 2016, 4:25:30 PM2/19/16
to RoboVM
Oh great, it works thank you :)
Reply all
Reply to author
Forward
0 new messages