Socket.io-client-swift: dyld: Library not loaded

Created on 20 Sep 2016  路  4Comments  路  Source: socketio/socket.io-client-swift

Hi,
I get this error:

dyld: Library not loaded: @rpath/SocketIO.framework/SocketIO
Referenced from: /var/containers/Bundle/Application/DC23476B-F0A6-4A53-B4DA-1ACFC262FA80/webs.app/webs
Reason: image not found

Most helpful comment

Ok,
I fixed it by clicking the + sign under Build Phases on the left upper corner, and choosing "New Copy Files Phase" , and picked Framework as Destination, then added SocketIO.framework under that.

All 4 comments

More explanation:
I'm running Xcode 8.0
Swift 3

case 1:
When I use the master build, every thing is cool, running smoothly on the emulator.
But my iPhone is running on 9.3, So when I change the target to 9.3 in both my project and socket.io project, I get dyld: library not loaded error.

case 2:
When I use branch 2.3 , targeting 9.3, I get Module compiled with Swift 2.3 cannot be imported in Swift 3.0 error, even with Use Legacy Swift Language Version set to YES

dyld: Library not loaded happens when you aren't properly embedding the library in your app.

@nuclearace
You are right, but If that the case, then why it works when I set the Deployment target to 10, but not when 9.3 is selected in the project it self?

Ok,
I fixed it by clicking the + sign under Build Phases on the left upper corner, and choosing "New Copy Files Phase" , and picked Framework as Destination, then added SocketIO.framework under that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MihaelIsaev picture MihaelIsaev  路  6Comments

leeyuno picture leeyuno  路  5Comments

jetricy picture jetricy  路  5Comments

harshanakaru picture harshanakaru  路  4Comments

janiduw picture janiduw  路  5Comments