I have followed all the steps here manually and with pods and yet I always have a similar issue, an error like this one:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_SFSafariViewController", referenced from:
objc-class-ref in GoogleMobileAds(flat-x86_64)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I added all of the frameworks manually:
AdSupport.framework
AudioToolbox.framework
AVFoundation.framework
CoreGraphics.framework
CoreTelephony.framework
EventKit.framework
EventKitUI.framework
MessageUI.framework
StoreKit.framework
SystemConfiguration.framework
including safariservices and corebluetooth
How can I solve this error?
YES problem solved when i update XCODE to the last version
Related
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
I have error messages below.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_NSURLQueryItem", referenced from:
objc-class-ref in FBSDKCoreKit(FBSDKApplicationDelegate.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
What should I do?
Xcode 5.1.1
Target : iOS 7.0
Add following Framework in your project settings.
Foundation.framework
CFNetwork.framework
FBSDKCoreKit.framework
FBSDKLoginKit.framework
FBSDKShareKit.framework
I hope it's help you.
Following the directions to upgrade the Google Sign-In SDK from 1.0.0 to 2.0.1 on https://developers.google.com/identity/sign-in/ios/sdk/ causes the following compile error.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_SKStoreProductViewController", referenced from:
objc-class-ref in GoogleSignIn(GIDStoreKit.o)
"_SKStoreProductParameterITunesItemIdentifier", referenced from:
l003 in GoogleSignIn(GIDStoreKit.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Add StoreKit.framework to your Target's Linked Frameworks and Libraries.
Also double check that AddressBook.framework and SystemConfiguration.framework are also linked.
When calling [Parse setApplicationId: clientKey:] from the didFinishLaunchingWithOptions: method in AppDelegate.m, I receive the following error:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Parse", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have included all frameworks necessary for Parse as stated in Apple Mach-O Linker Error Parse. I have #import <Parse/Parse.h> at the top of AppDelegate.m. I have cleaned the build several times. Any ideas what might be causing this?
Just check all frameworks in "Link Binary With Libraries" in project's build-phase tab.
Xcode 5.1 (5B130a)
iOS 7.1
using CocoaPods
pod 'Google-AdMob-Ads-SDK'
compile failed with log:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_SKStoreProductViewController", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o)
"_SKStoreProductParameterITunesItemIdentifier", referenced from:
-[GADOpener openInAppStore:fallbackURLString:] in libGoogleAdMobAds.a(GADOpener.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Double check to make sure that the GAD library has been added in xcode linked frameworks and libraries.
The second thing to look at is the Storekit framework. These classes that are giving you an error are from the storekit. Check to ensure that it's added to your project
try to add CoreTelephony and CoreText in framework of project.