I get bunch od warnings but these errors are main problem:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FDataSnapshot", referenced from:
type metadata accessor for __ObjC.FDataSnapshot in MapVC.o
"_OBJC_CLASS_$_Firebase", referenced from:
type metadata accessor for __ObjC.Firebase in DataService.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What's going on?
UPDATE:
So error pops out when I use simulator on my mac, but when I use my iPhone as simulator everything is fine. Anybody knows why?
Okay this will maybe help someone so I'm posting an answer.
I noticed in my terminal
Re-creating CocoaPods due to major version update.
So that obviously messed up my code. Just delete Pods folder, workspaces and run pod install
Everything works now.
could you not also run
pod update
then you dont have to delete the pod folder and workspaces..
Related
I am receiving the error "5 duplicate symbols for architecture x86_64" when attempting to launch my React Native project in Xcode. I am using a MacBook Pro, chip Apple M1 and macOS Monterey v 12.2.1. Has anyone had this issue before and managed to resolve it? Can you please help? I have tried other fixes but these failed to work. Below is my podFile:
Error log:
duplicate symbol '_bridgeRef' in:
/Users/.../Build/Products/Debug-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlob.o)
duplicate symbol '_fsQueue' in:
/Users/.../Build/Products/Debug-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtil.o)
duplicate symbol '_fsQueue' in:
/Users/.../Build/Products/Debug-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtil.o)
/Users/.../Build/Products/Debug-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlob.o)
....
duplicate symbol '_fileStreams' in:
/Users/.../Build/Products/Debug-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlobFS.o)
/Users/.../Build/Products/Debug-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlobNetwork.o)
ld: 5 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I receive the below error if I uninstall rn-fetch-blob, run pod install and then run the app in Xcode:
I need the RNFetchBlob package since I am using it in my code or is there something else I can use as the equivalent? Is react-native-blob-util the equivalent? Can someone help please?
Go to xcode select pods under Targets click on react-native-fetch-blob and
select no common block from yes to no
repeat this process for react-native-blob-utils
enter link description hereThe build of guile-2.0.11 stops with the following error,
Undefined symbols for architecture x86_64:
"_clock_getcpuclockid", referenced from:
_scm_init_stime in libguile_2.0_la-stime.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Googling around I found a bug report and patch. The bug report is here:
http://lists.gnu.org/archive/html/bug-guile/2016-06/msg00252.html
The link to the patch is in the bug report. The patch is just a few lines so I just edited stime.c by incorporating the patch into stime.c, ran configure again and make again. Unfortunately the error remains unchanged.
Any advice would be greatly appreciated.
Apparently that patch has been superseded: see this post at bug-guile
Since the problem with stime.c has been fixed in subsequent Guile versions, I simply copied a later version of stime.c in the libguile directory (.../libguile/stime.c) and moved the original package version to stime_old.c. Then configure and make. The error no longer appears and the make runs to completion. I then did sudo make install and it appears to be ok.
I am trying to run the demo project that comes with the Unity3d package for Google cardboard, but I keep getting this error when I build in xCode.
Undefined symbols for architecture arm64:
"_SecTrustEvaluate", referenced from:
l155 in libvrunity.a(GTMSessionFetcher.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am running Unity 5.2.0f3 and Xcode 6.4. The only things I have in my project are the CardboardSDK and the demo project both downloaded from here: https://developers.google.com/cardboard/unity
Has anyone run into this problem before or know how to fix it?!
You need to add the Security.framework in order for it to build.
Yesterday I updated new Xcode 4.5, and I got an error in my build and I am not sure how can I even fix this.
Everything works fine if I build in simulator, but when I try to build for Archive for example, i get this:
ld: warning: ignoring file /Users/corotchi/Library/Developer/Xcode/DerivedData/NJR_IR-ftjwhrqtxwedihfjrbjikbqqttkx/Build/Products/Release-iphoneos/libCordova.a, file was built for archive which is not the architecture being linked (armv7s): /Users/corotchi/Library/Developer/Xcode/DerivedData/NJR_IR-ftjwhrqtxwedihfjrbjikbqqttkx/Build/Products/Release-iphoneos/libCordova.a
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_CDVURLProtocol", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
and more errors bellow, which are the same
Everything worked fine until u updated the Xcode, I had another issue before where I read the formums that I have to remove the "ARMV6" from the build settings, cause it is not supported anymore in new IOS, and after that I get this reference issue.
I appreciate any help,
THanks!!!!
Remove armv7s from Valid Architectures from both your project and Cordova(phonegap) project. Also set iOS Deployment target 4.3 or above in both project and Cordova(phonegap) project. After that Clean and Clean Build Folder. This will solve the problem.
If you also take out armv7s from the build settings, you should get it to build for you.
Edit: As per below: Fix can be found here via PhoneGap: https://issues.apache.org/jira/browse/CB-1360
This is a bug already fixed at Cordova 2.2.0
https://issues.apache.org/jira/browse/CB-1360
Change the Buid setting ---> Architecture ---> Build Active Architecture only ---> Yes
This solved my issue for using old cordova versions in new Xcode 5
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_AppDelegate_Shared", referenced from:
_OBJC_CLASS_$_AppDelegate_iPad in AppDelegate_iPad.o
"_OBJC_METACLASS_$_AppDelegate_Shared", referenced from:
_OBJC_METACLASS_$_AppDelegate_iPad in AppDelegate_iPad.o ld: symbol(s) not found for architecture i386 clang: error: linker command
failed with exit code 1 (use -v to see invocation)
Hello, this is a straight up AppDelegate, and I'm getting this error. Any ideas? There's no library to link to or anything. I've seen these errors time and time again in XCode, but the causes have ranged from a libxml2 library being not right (needed libxml2.7.3), to just something odd in XCode itself. No idea what to do next, but obviously would like the program to compile. Thanks!
same here. thanks for the answer.
I had just (literally 30 seconds ago) dragged the files in.
I used the same files in other projects no problem.
got this linker error (updated to XCode 4.3 yesterday)
and same problem, the .m file was checked for the Test target membership, but NOT the app target.
possibly a 4.3 bug. it seems it is defaulting to adding dragged in files to the test build and not the app build.
thanks... you helped me find it very fast. I was not looking forward to that.