Symbol not found: curl_mime_init in macOS 10.3 (high Sierra.) - macos

I have built a .framework in mac using Xcode. In the framework i use Libcurl, to handel APIs. One of the APIs uses curl_mime_init to send a file. This framework work perfectly fine in MacOS 10.15 and above. However if fails to work in MacOs lesser than 10.15.
While i make the file upload. i get the following error in the crash report.
Dyld Error Message:
Symbol not found: _curl_mime_init
Referenced from: /Applications/Adobe InDesign 2020/*/BasicExternalObject.framework/BasicExternalObject (which was built for Mac OS X 11.3)
Expected in: /usr/lib/libcurl.4.dylib
I did some digging and found that curl version shipped on macOS 10.14 and lower has curl 7.54.0 (x86_64-apple-darwin18.0) libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1 However curl_mime_init was Added in version 7.56.0.
Later i updated my curl from 7.54 to 7.70 and still found the issue to persist.
I confirmed it by running curl -V and it was pointing to the updated version
I am stuck here. Is there a way to solve this. Or does it have something to do with the OS.

Related

dyld: Symbol not found: _vmnet_shared_interface_name_key

After trying to run the Emulator form Android Studio, i got the following:
dyld: Symbol not found: _vmnet_shared_interface_name_key
Referenced from: /goinfre/anel-bou/FlutterFolder/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64 (which was built for Mac OS X 11.1)
Expected in: /System/Library/Frameworks/vmnet.framework/Versions/A/vmnet
in /goinfre/anel-bou/FlutterFolder/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64.
And after trying to run Android Emulator without using Android Studio i got the following message:
e2r7p15% /goinfre/anel-bou/FlutterFolder/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64 ; exit;
dyld: Library not loaded: #rpath/libQt5WebEngineWidgetsAndroidEmu.5.12.1.dylib
Referenced from: /goinfre/anel-bou/FlutterFolder/Android/sdk/emulator/qemu/darwinx86_64/qemu-system-x86_64
Reason: image not found
zsh: abort
I am working with macOS Mojave 10.14.6 (that i cant update) and Android Studio Arctic Fox | 2020.3.1 Patch 2
I fixed it by downgrading the Emulator:
Download an old version of emulator (in my case i used emulator-darwin_x64-7425822 download from here)
Replace the emulator folder you downloaded with the one in your sdk folder. (should normally be here ~/Library/Android/sdk)
You can also fix it by upgrading your macOS version to the latest one.

Rosetta Arm64 M1 libxcrun.dylib.aot fail

so I am having issues with Rosetta, and whenever I want to do any install or use a makefile, I get this error:
rosetta error: /var/db/oah/c642c66595f5050af26db8f86497ea83caff7cea5a9bcb2361ffa81d0e090b58/e3dffc0922c5d9c2da11a427e8274cb75a79f184276373ffc39b65cfa67f4141/libxcrun.dylib.aot: attachment of code signature supplement failed: 1
I am using the newest MacBook Pro M1. Installed using the softwareupdate --install-rosetta.
I can't find anything about it using google, what could be wrong here?

Error loading FTDI dylib on Mac OSX

I developed an application in Xojo that uses a third party library to control a device. It works on one mac, but then when I try to run it on the other it gives me the following error:
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Library not loaded: /usr/local/lib/libftd2xx.1.2.2.dylib
Referenced from: /Users/USER/Downloads/*/libuFCoder.dylib
Reason: no suitable image found. Did find:
/usr/local/lib/libftd2xx.1.2.2.dylib: stat() failed with errno=62
/usr/local/lib/libftd2xx.1.2.2.dylib: stat() failed with errno=62
The Macs are both updated with the latest OSX El Capitan, and have the FTDI drivers installed. Any help would be appreciated.
I have installed the drivers on El Capitan and it worked for me, even with an absolute path with Xojo 2012.21. Try reinstalling the D2XX 1.2.2 driver in /usr/local/lib (as instructed in the ReadMe file) and remove all old "libftd2xx" files.
Also remember you need to install D2xxHelper for the driver to work properly on El Capitan.
To check if the uFCoder library properly links against libftd2xx, open the Terminal, type "otool -L <path to the uFCoder lib>"; the 2nd line should start with "/usr/local/lib/libftd2xx.1.2.2.dylib".
HTH

Set up g++ on OS X

I just updated to OS X Mavericks and it seems it messed up my whole compiler setup. Not only do I have to reinstall a JDK in order to use a Java compiler, I get the following error when I'm trying to compile C/C++ using GCC/G++:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.1/4.7.2/../../../../include/c++/4.7.2/cwchar:46:19: fatal error: wchar.h: No such file or directory
Not sure what to think other than upgrading messed it up. My question is: how do I set up g++ to compile on OS X? If it's already set up, what is the problem here?
If I can provide more information, please let me know.
Note: I've installed gcc 4.7 using homebrew, but it doesn't seem to work. When I use g++-4.7 code.cpp specifically, I get the same error.
Installing the Command Line Tools (OS X Mavericks) for Xcode - Late October 2013 solved it for me. Here is the link:
OSX: Xcode Downloads
The often mentioned xcode-select --install command kept saying it cannot find the requested software.
To clarify: You need to already have gcc-4.7 installed using Homebrew. The update to the latest version of CMD Tools only fixes compatibility issues caused by upgrading from Mountain Lion to Mavericks.

Is it possible to get the iOS 5.1 SDK for Xcode 4.2 on Snow Leopard?

I still have Snow Leopard. I have Xcode 4.2 for iOS development. This morning I upgraded my iPhone and iPad to iOS 5.1.
But Xcode 4.2 is not detecting my device for testing. I could not find the iOS 5.1 SDK image on Apple's developer site, for Xcode 4.2.
I don't want to do upgrade to Lion to get XCode 4.3 at this time.
Will I able to use Xcode 4.2 (on Snow Leopard) for iOS development now?
To get Xcode 4.2 on Snow Leopard to run code on a device running iOS 5.1 you can do this:
If you have another Mac running Lion and Xcode 4.3.1 you can copy the files from:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)
Place the copied files in the equivalent place on your Snow Leopard Mac: probably
/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Similarly copy the iOS 5.1 SDK files found in this directory:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
Also copy 'version.plist' from the Lion machine in the iPhoneOS.platform folder to the Snow Leopard machine.
Re-start Xcode on the Snow Leopard machine and re-connect the devices and it seems happy enough.
If you don't have access to a machine with Lion and Xcode 4.3.1:
You can get the files out of the 4.3.1 DMG which can be downloaded from Apple here: Downloads for Apple Developers.
Mount the DMG, Show Package Contents on the Xcode icon and drill down to
/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Follow the steps above.
You might find it more convenient to use Apple's proprietary ditto method (sudo ditto src dest) in the terminal window to copy the folders.
Note,this hack will also work for latest iOS 6 SDK.
You have to get Lion, iOS 5.1 SDK is only for Xcode 4.3.1 which is only available for Lion.
... and your Xcode will not be able to build to your device if you have already updated it to 5.1 because it won't be on that version of Xcode's approved SDKs
I'm working on this now. I have the same issue.
The MAJOR PROBLEMS here are that:
1) Apple never provided a warning dialog that this might disable people developing under Snow Leopard.
2) There is no easy way to undo this.
3) This should not happen on a point release update.
I've tried to install the previous ipsw from 5.0.1 for my Gen 4 IPod Touch from here:
where to download ipod touch firmware restore links
It will not install.
I've downloaded the Lion Xcode 4.3.1 from here (sign in as a developer first)
Lion Xcode 4.3.1
And run some scripts from the Dev Forums here:
sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1\ \(9B176\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/
cd /Developer/Platforms/iPhoneOS.platform/DeviceSupport/
sudo rm -f ./Latest
sudo ln -s ./5.1\ \(9B176\) ./Latest
Unmounted the Lion DMG and restarted Xcode. This allowed me to test 5.1 in the simulator but broke every build to every device with a SIGABRT or link error.
I'm off to the Apple store to have them restore my device. If I get any more information, I'll let you all know. This has been a VERY EXPENSIVE and VERY UNPLEASANT surprise.
Adding to Richards solution above, I found that if you also copy, from XCode 4.3.1 dmg...
edit: updated to correct path within dmg
/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Develope‌​r/SDKs/iPhoneOS5.1.sdk
~~ (entire directory tree)
to
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
XCode debugger will startup correctly (without all the error log and dumps)
ie:
===============================================================================
warning: Unable to read symbols from "dyld" (prefix __dyld_) (not yet mapped into memory).
warning: Unable to read symbols from "SystemConfiguration" (not yet mapped into memory).
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/Frameworks/MessageUI.framework/MessageUI (file not found).
warning: No copy of dyld found locally, reading from memory on remote device. This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device. This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device. This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration (file not found).
warning: No copy of SystemConfiguration.framework/SystemConfiguration found locally, reading from memory on remote device. This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/Frameworks/MessageUI.framework/MessageUI (file not found).
warning: No copy of MessageUI.framework/MessageUI found locally, reading from memory on remote device. This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox (file not found).
warning: No copy of AudioToolbox.framework/AudioToolbox found locally, reading from memory on remote device. This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/Frameworks/iAd.framework/iAd (file not found).
warning: No copy of iAd.framework/iAd found locally, reading from memory on remote device. This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices (file not found).
warning: No copy of SpringBoardServices.framework/SpringBoardServices found locally, reading from memory on remote device. This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/PrivateFrameworks/FTClientServices.framework/FTClientServices (file not found).
warning: No copy of FTClientServices.framework/FTClientServices found locally, reading from memory on remote device. This may slow down the debug session.
===============================================================================
There is an answer here that also provides the copy of the simulator v 5.1.
No manual operations. Just open the Terminal, copy and paste the provided commands.
http://www.iphonedevsdk.com/forum/iphone-sdk-development/100229-snow-leopard-sdk-5-1-a.html
if you want to also add iphone simulator 5.1 to your xcode then copy
/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk
entire directory to the following path =>
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
after you can also able to use iPhone simulator 5.1 to debug your application.
You can use apps compiled for 5.0 on your 5.1 or 5.1.1 device by compiling them and manually dragging .app file to iTunes. Tried today on 10.6.8 and XCode 4.2.
Download the iOS 5.0.1 firmware of your device on this link : http://www.iphonefirmware.com/firmwares-download.
And do a manual restore on iTunes.
I did it today (March 8) on my iPad 2 and it works, Apple still seems to sign this iOS version.I guess not for a long time, so do it quickly.
It is not possible to use a 5.1 device on xcode 4.2, since you don't want to upgrade, you can use the organizer, select your device, and use the restore feature. You can google for the 5.0.1 version and use that one.
(although upgrading to lion is super cheap)
EDIT: Seems this is possible, scroll up for the highest voted answer.
I am using Mac OS X 10.6.8 and Xcode 4.2 and also upgraded my iPhone to iOS 5.1. I needed to get a test version onto the device in a hurry yesterday but did't have the time to install Lion and Xcode 4.3.
I've been using TestFlight (www.testflightapp.com) for beta testing. I created an .ipa archive from Xcode 4.2 and was able to install it on my iOS 5.1 upgraded iPhone via TestFlight.
I know it's not an ideal solution but it helped me get out of a tight spot yesterday without resorting to hacks.
p.s. I'm not affiliated with TestFlight in any way.
Xcode 4.2 seems no more available on developer.apple.com for snow leopard users :( also for registered paying iOS developer like me...
It seems that at the moment there is no legal way to get it...
You must add the Symbols alias too..for example in /Developer/Platforms/iPhoneOS.platform/DeviceSupport/6.0 (10A403) you must add Symbols alias that point to /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk so xcode 4.2 can detect your ios6 device (tested on mac mini 1.5 intel core solo with snow leopard). Cheers
I think you can test ios 5.1 device in Snow Leopard as explained in above posts. But it is always safe to upgrade to Lion and use the official sdk release. Because we cant predict what issue could happen if we do some "Tricks" on our machine to make it happen and it may happen when in your most unwanted time (like when submitting to appstore). :)
As of the date of this writing 3/20,2012, Apple is not letting people install previous ipsw files from 5.0.1. If you upgraded your device to iOS 5.1, like I did with my gen 4 Touch, then you either have to get iOS 5.1 running in Xcode 4.2, or you have to revert your device to 4.x, or you replace your device.
I brought my touch to the Apple Store and they replaced it.
If you install the ipsw for 5.0.1, Apple's servers will state that this is not allowed for your device and you will be unable to revert. You'll have to try 4.x to your device or make sure that the iOS 5.1 SDK is running in Xcode 4.2.
I have found how to solve it!
My system is Snow Leopard 10.6.8, and I have two sets of Xcode of 3.2.5 and 4.2, after I had upgraded my iPad 1 to iOS 5.1, I launched Xcode 3.2.5, it prompted me a window of 'unknown device was found', I answer 'Yes' to download lots of libraries from my iPad, several minutes later, I can debug and run my projects on my iPad!
Then I launched Xcode 4.2 and opened one of my previous projects, I can really debug and run it on my iPad!
In this way you can use either version of Xcode to develop apps on a Snow Leopard system.

Resources