dyld: Symbol not found: _vmnet_shared_interface_name_key - macos

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.

Related

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

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.

dyld: Lybrary not loaded. Error in terminarl after installing XCode Beta 10

I recently installed XCode Beta 10 and afterwards, this message appears on the top of the terminal prompt every time I open it:
dyld: Library not loaded: /usr/local/opt/gdbm/lib/libgdbm.4.dylib
Referenced from: /usr/local/bin/zsh
Reason: image not found
zsh: abort
I checked the /usr/local/opt/gdbm/lib/ directory and the libgdbm.4.dylibfile is indeed missing, but a libgdbm.4.dylibfile is in there. What can I do to fix this?
I was able to fix this by simply running brew reinstall zsh.

libgthread not up-to-date when running qemu emulator

I'm trying to run the Pebble emulator for the first time with one of my Pebble apps, and I'm getting the following message:
$ pebble install --emulator aplite
Couldn't launch emulator:
dyld: Library not loaded: /usr/local/lib/libgthread-2.0.0.dylib
Referenced from: /Users/sarbogast/pebble-dev/PebbleSDK-3.3/Pebble/common/qemu/qemu-system-arm_Darwin_x86_64
Reason: Incompatible library version: qemu-system-arm_Darwin_x86_64 requires version 4401.0.0 or later, but libgthread-2.0.0.dylib provides version 4201.0.0
So it seems that libgthread is too old. How should I upgrade it?
This command solved my problem:
brew update && brew upgrade glib

Not able to run sample heathkit project FitStoreandRetrieveHealthKitData on iPhone

I have downloaded sample Health-kit app (FitStoreandRetrieveHealthKitData)from apple developer site. Trying to run it on my iPhone with Xcode 6 beta.
But failed to run app on device and getting error
dyld: Symbol not found: _HKQuantityTypeIdentifierDietaryCalories
Referenced from: /private/var/mobile/Containers/Bundle/Application/95F193C0-52CE-47E0-92C4-0BF436AEB3AE/Fit.app/Fit
Expected in: /System/Library/Frameworks/HealthKit.framework/HealthKit
in /private/var/mobile/Containers/Bundle/Application/95F193C0-52CE-47E0-92C4-0BF436AEB3AE/Fit.app/Fit
Can any one has solution for this ?
HKQuantityTypeIdentifierDietaryCalories was renamed to HKQuantityTypeIdentifierDietaryEnergyConsumed. Make sure you're building the project with the version of the iOS 8 SDK that corresponds to the version of iOS 8 you have installed on your iPhone.

dyld: Library not loaded: /System/Library/Frameworks/SceneKit.framework/SceneKit

I want to create a game on Xcode 6.0 using SceneKit, but when I run the application it crashes on the device and prints this error on the console:
dyld: Library not loaded: /System/Library/Frameworks/SceneKit.framework/SceneKit
Referenced from: /var/mobile/Applications/92F93C11-1A2E-4A5B-8BC1-0243E7E67151/GameApp.app/GameApp
Reason: image not found
OK so it looks like the issue is that the device is running iOS 7 and you need iOS 8 in order to use SceneKit. Update the device and it should work as advertised.

Resources