Apple Mach-O for libAppLovinSdk.a in cocos2d for iPhone - ios

I am trying to display AppLovin sdk in my cocos2d project in Xcode and I'm currently unable to debug this Apple Mach-O error as described below.
Undefined symbols for architecture i386:
"_CMTimeGetSeconds", referenced from:
-[ALVideoViewController timeLeft] in libAppLovinSdk.a(ALVideoViewController.o)
-[ALVideoViewController percentViewed] in libAppLovinSdk.a(ALVideoViewController.o)
"_CMTimeMakeWithSeconds", referenced from:
-[ALVideoViewController createCountdownTimeObserver] in libAppLovinSdk.a(ALVideoViewController.o)
"_MPMoviePlayerPlaybackDidFinishNotification", referenced from:
___50-[ALInterstitialViewController prepareForVideoAd:]_block_invoke in libAppLovinSdk.a(ALInterstitialViewController.o)
"_MPMoviePlayerPlaybackDidFinishReasonUserInfoKey", referenced from:
___53-[ALInterstitialViewController moviePlayerDidFinish:]_block_invoke in libAppLovinSdk.a(ALInterstitialViewController.o)
"_MPMoviePlayerPlaybackStateDidChangeNotification", referenced from:
___50-[ALInterstitialViewController prepareForVideoAd:]_block_invoke in libAppLovinSdk.a(ALInterstitialViewController.o)
"_OBJC_CLASS_$_MPMoviePlayerController", referenced from:
objc-class-ref in libAppLovinSdk.a(ALInterstitialViewController.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I went to build phases -> add other -> Selected libAppLovinSdk.a file from the finder displayed.
I also set the value of Build Active Architectures only to NO and removed arm64 from architectures. There is no i386 architecture.

You are missing the CoreMedia and MediaPlayer frameworks.
(I found this out by Googling for CMTimeGetSeconds and MPMoviePlayerPlaybackDidFinishNotification and seeing what section of the Apple docs got hits, however the CM and MP prefixes should be enough to tell you).

Related

Sender Synth example can't build - symbol(s) not found for architecture arm64

I have follow the Sender synth example, with XCode 10.1, Audiokit 4.5.5. But when I try to build it (part Audiobus and Integration), it fails with this error:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_ABPort", referenced from:
objc-class-ref in Audiobus.o
"_OBJC_CLASS_$_ABAudiobusController", referenced from:
objc-class-ref in Audiobus.o
"_OBJC_CLASS_$_ABAudioSenderPort", referenced from:
objc-class-ref in Audiobus.o
"_OBJC_CLASS_$_ABAudioFilterPort", referenced from:
objc-class-ref in Audiobus.o
"_ABConnectionsChangedNotification", referenced from:
SenderSynth.Audiobus.(startObservingAudiobusConnections in _37936C4CF5A242669D2CAF61EB84EA24)() -> () in Audiobus.o
SenderSynth.Audiobus.(stopObservingAudiobusConnections in _37936C4CF5A242669D2CAF61EB84EA24)() -> () in Audiobus.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried to build with my iphone SE connected via usb and with Audiobus app installed on it.
I tried also targeting simulator, but same error occurs with x86_64 rather than arm64.
I searched and try many things but did not find any solution. I read many times the tutorial but I don't see anything I forgot.
What is missing. Could someone help me please?
These are symbols from the AudioBus SDK; you need to link with the SDK and using your API key to resolve these errors.
If you have this issue, try adding "$(inherited)" to your targets build settings under "other linker flags".
https://heroes.audiob.us/discussion/706/sendersynth-tutorial-audiobus-error/p1

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

Xcode Build error Undefined symbols for architecture arm64: "_OBJC_CLASS_$_GameScene"

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.

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

GData iPhone Archive Error

Following the instructions here: http://hoishing.wordpress.com/2011/08/23/gdata-objective-c-client-setup-in-xcode-4/
I added GData to my iOS 5 project. When it's time to archive the project I get the following error:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_GDataServiceGoogleYouTube", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_GDataEntryYouTubeVideo", referenced from:
objc-class-ref in DataManager.o
objc-class-ref in ListController.o
objc-class-ref in ShareController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've checked the build settings for the GData.xcodeproj -> GDataTouchStaticLib, and this is what I set them to as seen by this pic: )
Any help is appreciated, to help get my project archived.
You haven't linked the libraries properly. Make sure you follow the directions carefully when it comes to adding the library paths. See Undefined symbols for architecture armv7 for more information.

Resources