I'm using realm in my react-native project: https://github.com/kdnakt/pixelarn
After running ncu -u on my Mac to update react-native-elements to 1.0.0 and realm to 2.23.0, react-native run-ios would not start my app and I'm getting the following error:
realm::jsc::ObjectWrap<realm::js::CollectionClass<realm::jsc::Types> >::create_class() in libRealmReact.a(jsc_init.o)
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
I saw some Github issues and tried rm -rf ~/Library/Developer/Xcode/DerivedData/ and rm -rf ios/build/ in my project directory, but still failing ... how can I start my react native app with react-native run-ios?
There was some modifications after upgrade to react native 0.58.5 and above versions.
Xcode Archive build failed with react native project
Try to manually link the JavaScriptCore.framework in "Link Binary With Libraries". I had the same problem and it work for me.
Image
Related
I have a flutter project which uses a plugin written by a colleague (which is not there anymore). I develop on Mac M1.
Since I upgraded to Flutter 2.5, I cannot start my app on iOS in Debug-Mode.
It says
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
When I remove the dependency to this plugin, everything works.
I tried the following:
Change architecture-settings in xcode
Delete derived data
Delete podfile
Upgrade all dependencies
run pod repo-update
Does anyone have an idea?
Thanks!
Undefined symbols for architecture x86_64:
"___darwin_check_fd_set_overflow", referenced from:
_RAND_poll in libcrypto.a(rand_unix.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
React Native version: 0.63
Xcode version: 11.3.1
react-native-fbsdk: 2.0.0
1° Solution (Recommended):
I also have this problem, it seems to occur in the Xcode 11.3.1 version. One way to fix is updating the version to 11.6.
2° Solution:
Comment all flipper function in podfile
Remove the function InitializeFlipper and Imports from appDelegate:
Run pod install:
Clean project;
Try again: react-native run-ios
I am trying to build the Ionic app in IOS. But when I start to build in XCODE, it gives me error like below.
Undefined symbols for architecture arm64:
"OBJC_CLASS$_GSDK_GTMLogger", referenced from:
objc-class-ref in GoogleIPhoneUtilities(GIPReachability.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation).
I had searched for a day but all in vain. Anyone here with a solution for this? Thanks in Advance.
Your ionic app not supporting the architecture of XCode, please try these steps to again build you app for ios.
ionic build --prod
sudo npm install -g ionic cordova
ionic integrations enable cordova --add
ionic cordova prepare ios
I have tried rebuilding project, npm install, linking, opening xsworkspace file everything. Nothing is working! The error still comes up:
ld: library not found for -lCocoaLumberjack
clang: error: linker command failed with exit code 1 (use -v to see invocation)
rebuilding project, npm install, linking, opening xsworkspace file everything
Error xcode
I m using starcore_for_ios to run python scripts.
What i m doing is:
flutter clean
export STARCORE_PATH='/Users/brijeshlakkad'
export STARCORE_PYTHONVERSION='3.6'
export STARCORE_PYTHONLIBRARY='star_python36,python3.6m'
flutter build ios --no-codesign
and i am getting this error:
when i run flutter build ios --no-codesign
Xcode's output:
↳
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release ===
ld: warning: directory not found for option
'-L/Users/brijeshlakkad/starcore_for_ios/python.files/python-3.6'
ld: library not found for -lpython3.6m
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
ld: warning: directory not found for option
'-L/Users/brijeshlakkad/starcore_for_ios/python.files/python-3.6'
ld: library not found for -lpython3.6m
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Encountered error while building for device.
2.9s
Python version: _3.6.5_1_
flutter version: 1.0.0
What i have done:
1. Build Active Architecture Only : YES
and
2. Targets >> Build Settings >> Linking >> Other Linker Flags: $(inherited)
As you can see error below