AlexKMDev / WebRTC

Unofficial builds of Google WebRTC iOS Framework
https://webrtc.org/native-code/ios/
Other
292 stars 76 forks source link

dyld: Library not loaded. Reason: image not found #18

Closed tanhoang181 closed 7 years ago

tanhoang181 commented 7 years ago

Hello, I'm running the framework on simulators with Xcode 8.1 but it doesn't work at all and the error showed up every time. Do I need to include some other libs or frameworks?

AlexKMDev commented 7 years ago

Are you using 32-bit simulator (iPhone 5 and below)? https://github.com/Anakros/WebRTC/issues/16#issuecomment-268421323

tanhoang181 commented 7 years ago

No. I was using iPhone 6s simulator.

AlexKMDev commented 7 years ago

You don't need to include anything additional. Not sure what can be a problem, maybe old Xcode version. Can you include the full description of the error, i.e. path to the image that not found?

tanhoang181 commented 7 years ago

dyld: Library not loaded: @rpath/WebRTC.framework/WebRTC Referenced from: /Users/hoangtan/Library/Developer/CoreSimulator/Devices/0EDE3787-FC46-4F47-8D1A-E6105E07F99E/data/Containers/Bundle/Application/977571ED-6862-42D3-95CD-B937E10A3EF2/webrtc.app/webrtc Reason: image not found

I got the message.

alexeychirkov commented 7 years ago

Add framework to target's Embeded binaries section

CoderXLL commented 7 years ago

I have added framework to the target,but only run the framework on 8.1 simulators ,it doesn't work, the error is this: dyld: Library not loaded: /System/Library/Frameworks/MetalKit.framework/MetalKit Referenced from: /private/var/mobile/Containers/Bundle/Application/8454DA05-F872-497A-A44A-F6261169E57B/EUCIMManager.app/Frameworks/WebRTC.framework/WebRTC Reason: image not found

AlexKMDev commented 7 years ago

Included a note about that in the README.