I am trying to integrate iAds in Admob mediation SDK for that purpose, I downloaded iAdListAdapter from Mediation website Download Link and added it into my xcode project but now when I try to compile the project it is giving following error:
Undefined symbols for architecture i386:
"_ADBannerContentSizeIdentifierLandscape", referenced from:
-[GADMAdapterIAd getBannerWithSize:] in libAdapterIAd.a(GADMAdapterIAd.o)
-[GADMAdapterIAd adjustADBannerToAdSize] in libAdapterIAd.a(GADMAdapterIAd.o)
"_ADBannerContentSizeIdentifierPortrait", referenced from:
-[GADMAdapterIAd getBannerWithSize:] in libAdapterIAd.a(GADMAdapterIAd.o)
-[GADMAdapterIAd adjustADBannerToAdSize] in libAdapterIAd.a(GADMAdapterIAd.o)
"_OBJC_CLASS_$_ADBannerView", referenced from:
objc-class-ref in libAdapterIAd.a(GADMAdapterIAd.o)
"_OBJC_CLASS_$_ADInterstitialAd", referenced from:
objc-class-ref in libAdapterIAd.a(GADMAdapterIAd.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please guide what am I doing wrong or what is the correct way of adding iAds to Mediation SDk by the way: I am using XCode 4.6 with min sdk 5.0
Any help is really appreciated!
Turned out that i needed to add iAd.Framework and remove -all_load Flag in the project, which solved the Problem.
For People who use auto linking please include "#import < iAd/iAd.h >" in any of your source files/
Related
I'm following the instructions here (https://github.com/AzureAD/microsoft-authentication-library-for-objc) to add the MSAL library to my (new) project. I'm using Xcode 10.1. I have a Cartfile with just one entry for MSAL. When running Carthage update --platform iOS I get a linker error (lots of them actually):
Undefined symbols for architecture armv7s:
"_MSID_DEFAULT_FAMILY_ID", referenced from:
-[MSALAccountsProvider accountForHomeAccountId:error:] in MSALAccountsProvider.o
-[MSALAccountsProvider accountForUsername:error:] in MSALAccountsProvider.o
-[MSALAccountsProvider allAccountsForAuthority:error:] in MSALAccountsProvider.o
"_OBJC_CLASS_$_MSIDConfiguration", referenced from:
objc-class-ref in MSALAccountsProvider.o
"_OBJC_CLASS_$_MSIDTelemetryBaseEvent", referenced from:
_OBJC_CLASS_$_MSALTelemetryDefaultEvent in MSALTelemetryDefaultEvent.o
"_OBJC_CLASS_$_MSIDAADV2IdTokenClaims", referenced from:
objc-class-ref in MSALResult.o
And so on - many such symbols.
Interesting the macOS one builds for me, even though on Github MSAL says macOS is not supported :)
Any help is greatly appreciated!
I just download new facebook ios sdk.
It reports error when build,
ld: warning: directory not found for option '-F"/Users/myname/cd-standard/apple/apple_ios/Projects/fotoshow_ios/my app/../../../../../../Documents/FacebookSDK"'
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_FBSBJSON", referenced from:
objc-class-ref in FacebookController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
the prohect with former facebook ios sdk works well, I only install the new ios sdk using downloaded installer.
I also check and find out all frameworks needed are there, but it still reports error
your comment welcome
FBSBJSON was removed in v3.5 of the Facebook SDK (released April 18, 2013), but your FacebookController class is still referencing it. You should remove the reference in your FacebookController class, or if you're using some other SDK which wraps the Facebook SDK, you'll probably need to update that as well.
I have activated arm7 armv7 arm64 as valid architecture for 64 bit requirement by Apple recently but when I try to build the app in Xcode it throws me this error. I get a warning first for libchartboost.a not being found, I download the chartboost latest folder from their website but it does not have libchartboost.a so I am still using chartboost 3.2.1. But not sure if thats the issue since I get an error related to GameScene below. Am I missing a framework? Thanks for your help.
ld: warning: ignoring file /Users/Administrator/Documents/Software/libChartboost.a, missing required architecture arm64 in file /Users/Administrator/Documents/Software/libChartboost.a (3 slices)
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_GameScene", referenced from:
objc-class-ref in AlertLayer.o
objc-class-ref in GameLayer.o
objc-class-ref in levelpackMenuLayer.o
objc-class-ref in LevelSelectLayer.o
objc-class-ref in timetrialMenuLayer.o
objc-class-ref in IAPHelper.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Probably an old thread, but in such linker errors, following step works:
Link all the required frameworks along with Chartboost framework, such as Storekit, Webkit, AVFoundation, Foundation etc.
These are all the frameworks that are used by Chartboost framework to fetch and display ads in media formats (audio and video).
For latest details on how to fully integrate and what all frameworks are required, refer to this guide.
I'm trying to get Paypal's iOS SDK working. I have followed the instructions in the readme but the build fails with the error below
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_NSExtensionItem", referenced from:
objc-class-ref in libPayPalMobile.a(OnePasswordExtension.o)
"_OBJC_CLASS_$_NSItemProvider", referenced from:
objc-class-ref in libPayPalMobile.a(OnePasswordExtension.o)
"_kUTTypePropertyList", referenced from:
-[OnePasswordExtension processExtensionItem:completion:] in libPayPalMobile.a(OnePasswordExtension.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This same error occurs when building the sample application, so I have ruled out my project settings.
Can anybody tell me what I've missed?
add the path of the library in the "Library Search Path"
$(PROJECT_DIR)/XXXX/MyFramework/GoogleAdWords
EDIT : Maybe the sample is wrong ...
This was down to the new version of the Paypal API requiring Xcode 6, while I was attempting to compile on Xcode 5.
I want to implement AdMob functionality in current project. I am getting some issues to implement this technology. Could you please help me on this?
I am integrating AdMob in my iOS application first time. During this process when add AdMob SDK into app , following errors appears.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADDevice.o)
"_OBJC_CLASS_$_SKStoreProductViewController", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o)
"_SKStoreProductParameterITunesItemIdentifier", referenced from:
-[GADOpener openInAppStore:fallbackURLString(inlove) in libGoogleAdMobAds.a(GADOpener.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Follow Google AdMob guide
You have to import following frameworks -
AdSupport,
AudioToolbox,
AVFoundation,
CoreGraphics,
CoreTelephony,
MessageUI,
StoreKit,
SystemConfiguration
you have to import all of these frameworks in your app for AdMob integration
1) AudioTollbox.framework,
2) MediaPlayer.framework
3) MessageUI.framework,
4) SystemConfiguration.framework,
5) StoreKit Framework
6) CoreTelephony Framework