AdMob SDK complie failed under iOS 7.1 - ios

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.

Related

Undefined symbols for architecture armv7, ld: symbol(s) not found for architecture armv7

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

iOS Facebook Login linker error

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.

IOS App Archive Failing - 2 errors

I have just added 64 bit support for my iPad app in Xcode. Before the update i was able to archive the app with no red errors. After i add arm64 in the build settings get 2 error preventing the archive:
*ld: warning: ignoring file /Users/****/Documents/mApp/****/Pixate.framework/Pixate, missing required architecture arm64 in file /Users/****/Documents/mApp/****/Pixate.framework/Pixate (3 slices)
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_Pixate", referenced from:
objc-class-ref in main.o
objc-class-ref in BaseView.o
objc-class-ref in BaseViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)*
I have checked the framework and it is showing in the frameworks in the project.
I am currently using Xcode version 6.3.2 (6D2105)
The problem is related to third party framework Pixate.framework.
This framework is not built for arm64. That's why you got these errors.
How to fix it: find the version of this framework that was built with arm64 or just build it yourself by getting code from GitHub

ld cannot find some of my symbols

I am using Xcode 6.1 with iOS 8.1 SDK to develop an iOS application.
SailracerEngine class imports SmoothSpeedTimeSeries and SmoothCourseTimeSeries classes to implement some of its functionality. Both are subclasses of SmoothTimeSeries. When I try to build my project, linker fails with the following error:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_SmoothCourseTimeSeries", referenced from:
objc-class-ref in SailracerEngine.o
"_OBJC_CLASS_$_SmoothSpeedTimeSeries", referenced from:
objc-class-ref in SailracerEngine.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Other module in my code is using SmoothSpeedTimeSeries and SmoothCourseTimeSeries without any linker errors. How can this issue be solved?
The implementation file for class SmoothCourseTimeSeries has not been added to the Xcode Target.
If you click on the implementation file you should be able to see which Xcode targets it belongs to using the file inspector on the right.

iOS: MWPhotoBrowser build on device

Today I have added to my project MWPhotoBrowser using cocoapods source control.
Tests in emulator where correct but when I start to test app on devices (ipode touch 5gen and iphone 4s) I got few issues:
ld: warning: directory not found for option '-L/Users/user/Pods/build/Debug-iphoneos'
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_MWPhotoBrowser", referenced from:
objc-class-ref in KYMUFinalPageTVC.o
"_OBJC_CLASS_$_MWPhoto", referenced from:
objc-class-ref in KYMUFinalPageTVC.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
If you get this error with MWPhotoBrowser and you're in Xcode 6.1, then do this,
Go to your project -> Build Settings, and search for "Other Linked Flags" and add $(OTHER_LDFLAGS) to it.
Source:
https://stackoverflow.com/a/26721045/1032179

Resources