I have been trying to integrate MLKit into CardIO using cocoapod. I fixed all the warnings by cocoapod and CardIO was built successfully. However, when I link CardIO to my app and build, this error comes out. I searched all over the internet and tried different kind of approaches suggested by people but still to no avail. Is there any step or setting I might have missed during integration/linking?
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_FIRVisionImage", referenced from:
objc-class-ref in libCardIO.a(CardIOView.o)
"_OBJC_CLASS_$_FIRVision", referenced from:
objc-class-ref in libCardIO.a(CardIOView.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I added $(inherited) in Other Linker flags, Header search paths, Framework search Paths, Library search Paths in "Target -> Build Settings" resolved the issue! Happy Coding!
Related
I know that this question has been asked before but I tried every possible solution shared online but still got the issue. First tried with pods and then moved the FirebaseAnalytics into SPM. "Build Active Architecture Only" is set NO. In framework search paths, $(inherited) value and $(PROJECT_DIR)/Frameworks are available due to the frameworks I use in pods and SPM.
This is the error I get when I import FirebaseAnalytics and call Analytics:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FIRAnalytics", referenced from:
objc-class-ref in SessionManager.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am implementing google cloud messaging in my project, and i have setup cocoapods in my project. But when I run the project it generate error, this error is
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_SKProductsRequest", referenced from:
objc-class-ref in libGGLCore.a(GMRProductsRequest.o)
"_OBJC_CLASS_$_SKPaymentQueue", referenced from:
objc-class-ref in libGGLCore.a(GMRInAppPurchaseTransactionReporter.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation). I am using Xcode 7 and swift 2 and my pod version is 1.0.0.beta.2
Please help me, I am not able to solve this issue.
Read this post... After update to Xcode 5 - ld: symbol(s) not found for architecture armv7 or armv7s linker error
Basically you need to remove Build Active Architecture Only from all your static libraries' project build settings. Xcode added this with their update as it makes Xcode compile faster since it only requires Xcode to compile for the connected device, but it is causing problems in your case so you may remove it
I have add GameKit.framework and StoreKit.framework into Target>>General>>Linked Frameworks and Libraries.
clean project and build project.An error is solved
Error occurs after adding the ParseFacebookUtil
ERROR MESSAGE
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PFDateFormatter", referenced from:
objc-class-ref in ParseFacebookUtils(PFFacebookAuthenticationProvider.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
FRAMEWORKS
I am using XCode 6.2
Thanks
edit:
I've added the frameworks social, and accounts. Same error still occurs.
I ended up fixing this issue by deleting the Parse and Bolts framework, and re adding it back into the project.
Edit:
The best solution to this issue is by using cocoapods. It handles the dependencies better than manually dragging in the framework files.
I'm trying to build my iOS project which includes Google Analytics 3.03a. I've followed all the instructions about using the -force_load linker flags, but unless I include the AdSupport framework I always end up getting this error message when doing my debug build:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ASIdentifierManager", referenced from:
objc-class-ref in libGoogleAnalyticsServices.a(TAGAdvertiserId.o)
objc-class-ref in libGoogleAnalyticsServices.a(TAGAdvertisingTrackingEnabledMacro.o)
objc-class-ref in libGoogleAnalyticsServices.a(TAGMobileAdwordsUniqueIdMacro.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
If I try it for my release build I get the same error but for the armv7 architecture.
Everything I'm reading tells me that if I do include the AdSupport framework then my app will get rejected, since I'm not serving ads, so I'm at a loss to know what to do.
This happens both with my actual project, and with a totally new blank test project that literally has no other linker flags:
OTHER_LDFLAGS = -force_load ${PROJECT_DIR}/GoogleAnalytics/libGoogleAnalyticsServices.a
I'm not using the Tag Manager at all, as far as I know.
Add the framework as optional. I submitted apps with Google Analytics without problems.
I'm using Reachability on my project to get the type of connection used, but an error has ocurred.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Reachability", referenced from:
objc-class-ref in ContributionViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I don't know what to do... my project is for iOS 4.3 and I've never had this kind of problem before.
Thx
Did you include the reachability framework in your projects linked libraries ? You can confirm by clicking on your project file on the file list and checking the build phases tab. It should be listed in the linked library section,