dylib missing on iOS application - ios

I am trying to port a program made using OpenCV 2.4 (not 3) from OSX to iOS 7 (not 8, or 9)
I followed their tutorial, that worked until it complained of jpeg linking errors, I pasted the errors on google, and found on their issue tracker a solution, and a link to the jpeg library, I downloaded it, did all the steps correctly, and now it compiles and runs, but crashes on startup and complains with the following error:
dyld: Library not loaded: /opt/libjpeg-turbo/lib/libjpeg.62.dylib
Reason: image not found
I have no idea how to fix it

Go to your Project -> Target -> General -> Linked Frameworks and Libraries and try changing the status of the libjpeg.a library you linked to "Optional" instead of "Required".
I was having the same exact issue and changing the status fixed the crash for me. Not sure why.

Related

React-Native: Library not found iOS

I encounter a wired error. I am getting Library not found for -lBase64. I checked all the settings for iOS. I checked if Library is missing in Link Binary With Libraries, checked for twice entries in Header Search Path and Library Search Path. But it seems everything is working fine.
The error occurs only when I tried to build with Release mode. You can check the attached screenshot for error.

Xcode and Unity missing library 'lGoogleUtilities'

I am working on an App that is made with Unity and I have to build it in Xcode to get it in the App store.
Now I'm running into a problem here. I am getting this error:
library not found for -lGoogleUtilities
However, when I build the app in debug mode and test it on my iPad, there aren't any troubles. But when I try to build it for TestFlight (Toolbar -> Product -> Archive) that error occurs.
I've followed this tutorial to get it working in debug mode (because I had that error there too before)
https://youtu.be/YHHj1bZUbsc (from 6:20).
I am using the 'Google Admob', 'CloudOnce' and 'Play Services Resolver' plugins for Unity. In the debug version the error (before I fixed it in the debug version), was caused by 'Google Admob'. I feel like I am missing a framework or something in the release build.
Alright, so after another few hours of trying and searching I found out that I was actually opening the wrong file, you would think .xcodeproj would be the correct extension, but actually you have to open the .xcodeworkspace file. It compiled for me.

Xcode Library included but not found?

I'm working with Wikitude AR and on running their out-of-the-box example I'm running into an error.
Error:
dyld`dyld_fatal_error:
-> 0x12008d088 <+0>: brk #0x3
Output:
dyld: Library not loaded: #rpath/WikitudeNativeSDK.framework/WikitudeNativeSDK
Referenced from: /var/containers/Bundle/Application/F826D5F6-554F-4CFA-B3DA-D3522636E93A/unityexample.app/unityexample
Reason: image not found
Here's a screen of the included library: I've also tried re-adding it
So why is this framework not found?
Already tried: library linked but Xcode says "file not found."
Xcode 7.3.1 | OS X 10.11.4
Solution
In newer versions of Xcode / iOS you need to do the additional step of adding the framework as an Embedded Binary
https://stackoverflow.com/a/28469804/332578
Can you please try enabling the following:
If that doesn't work then best will to go through the example app supplied by the framework provider or check the documentation page aginan. It seems they have lot of dependancy frameworks to be added for it to work:
http://www.wikitude.com/developer/documentation/ios
This may work:
Delete the framework by right click show in finder
Do a clean build Cmd+Shift+K
Then create a new build.
Which XCode version are you using?

AppCode run iOS simulator "Library not loaded"

I was trying AppCode 3.1. I had a iOS 8.1 project with XCode 6.1.1 with one one linked framework. The framework is SwifteriOS.framework build with Carthage (https://github.com/Carthage/Carthage) like this:
github "mattdonnelly/Swifter" == 1.4.1
Everything in XCode works fine, but when I tried to start the project in simulator with AppCode, the console gives me:
/Users/daiwei/Library/Caches/appCode31/DerivedData/Avetuc-36d98cf8/Build/Products/Debug-iphonesimulator/Avetuc.app
Simulator session started with process 17951
Debugger attached to process 17951
dyld: Library not loaded: #rpath/SwifteriOS.framework/SwifteriOS
Referenced from: /Users/daiwei/Library/Developer/CoreSimulator/Devices/C325D5F4-DDCF-41C5-9F7D-6CC17F175DA4/data/Containers/Bundle/Application/AB30E0FB-7A0F-4914-B6EB-B02B26CB5741/Avetuc.app/Avetuc
Reason: image not found
Exception: EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0))
I can see the simulator launching and showing the launch screen of the app. But app just crash with above message.
image not found usually refers to the framework's binary not being loaded, usually because it's not actually ever copied over to the app's binary.
It could be that Xcode is properly copying over the framework for you, while AppCode doesn't have the instructions to do so. Make sure to follow the Run Script phase instructions (https://github.com/Carthage/Carthage#if-youre-building-for-ios) so that you know for sure that the frameworks will make it over. Also, ensure that the library shows up in "Linked Frameworks and Libraries" as well.

dyld isuess (Library not loaded)

I have this message when I build my project:
dyld: Library not loaded:
#rpath/iPhoneSimulatorRemoteClient.framework/Versions/A/iPhoneSimulatorRemoteClient
Referenced from: /Users/dev01/mobile/ios/Test/test/testTests/FoneMonkey/bin/iphonesim
Reason: image not found
This is dynamic link error and as I understand correct this error came because image not found. is this correct?
What steps should be taken to resolve errors?
I have found this link and as I understad this error came because I use xcode 4.3. Now I have try this on 4.2 and everething work good.
But I not have any idea how to run it on XCode 4.3
Maybe you have this problem after adding new library and you linked it in actual framework path, if you drag this library in embeded framework path then problem will solve. Another variant is that in build scheme you have enabled memory managment malloc, if you turn it off problem will be solved.
Check your SDK project settings (i.e. when passing from SDK 6.x to 7.x) maybe one of library was not compiled for architecture and project target. And the paths. Clean DerivedData and delete app from simulator (if it is there).
If you still need the Sdk just copy it from Xcode 4.6.(3) both for device and simulator and see if this solve your problem.

Resources