Unity/iOS - MoPub installation - Xcode compilation errors
NickName:AndrewK Ask DateTime:2013-04-10T18:48:56

Unity/iOS - MoPub installation - Xcode compilation errors

I've done everything EXACTLY as it is written in "Build instructions" here: https://github.com/mopub/mopub-unity-ios-plugin

  1. Import UnityPlugin's MoPubiOS.unitypackage into your Unity iOS Project

  2. (Optional) Add UnityPlugin's Plugins/MoPub/testSupport/MoPubTestScene to the Unity build window [contains the MoPubGUIManager.cs example]

  3. Use Unity Player to build your Unity iOS Project into an Xcode project

  4. Copy the following source folders and files to the Classes/ folder of your Xcode project a. The complete contents of the MoPubSdk's MoPubSDK/ directory b. MoPubSdk's TouchJSON/ directory (including the parent directory) c. The MoPubBinding.m, MoPubManager.h, and MoPubManager.mm files from UnityPlugin

  5. Make modifications to the included frameworks in Xcode's Build Phases a. Add the StoreKit.framework b. Add the AdSupport.framework and set it to Optional

  6. Build and run your Xcode project

and, when I am trying to build the Xcode project I get 9 linker errors:

Undefined symbols for architecture armv7: "_moPubShowInterstitialAd", referenced from: RegisterMonoModules() in RegisterMonoModules.o "_moPubRequestInterstitialAd", referenced from: RegisterMonoModules() in RegisterMonoModules.o "_moPubShowBanner", referenced from: RegisterMonoModules() in RegisterMonoModules.o "_moPubReportApplicationOpen", referenced from: RegisterMonoModules() in RegisterMonoModules.o "_moPubRefreshAd", referenced from: RegisterMonoModules() in RegisterMonoModules.o "_moPubEnableLocationSupport", referenced from: RegisterMonoModules() in RegisterMonoModules.o "_moPubDestroyBanner", referenced from: RegisterMonoModules() in RegisterMonoModules.o "_moPubCreateBanner", referenced from: RegisterMonoModules() in RegisterMonoModules.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

but I've copied files int Xcode classes folder (not Xcode project group "Classes") - as it is in point 4 exactly written

I tried copying into Xcode project "Classes" group as well (with option "copy if needed"). But then I have 1 error:

Lexical or preprocessor issue /Users/xxx/Desktop/UnityProjects/Xcode/Classes/MPAdView.h:11:9: 'MPGlobal.h' file not found But I have that file in Classes/Internal/Common Xcode project group as well as in the Classes Classes/Internal/Common Xcode project folder

Could someone help me with that please?

Copyright Notice:Content Author:「AndrewK」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/15923731/unity-ios-mopub-installation-xcode-compilation-errors

More about “Unity/iOS - MoPub installation - Xcode compilation errors” related questions

Unity/iOS - MoPub installation - Xcode compilation errors

I've done everything EXACTLY as it is written in "Build instructions" here: https://github.com/mopub/mopub-unity-ios-plugin Import UnityPlugin's MoPubiOS.unitypackage into your Unity iOS Project (

Show Detail

Error in compiling app with MoPub-Fabric iOS

I am using MoPub kit using Fabric SDKs. Everything works fine on all devices until you run the app on iPad simulator. Running the app on iPad simulator gives following error while compiling the app:

Show Detail

MoPub Full SDK 3.0.0 Integration

Regarding the new MoPub iOS SDK 3.0.0 and its Getting Started documentation: Download the MoPub SDK Add the SDK to your Xcode project. ... During step 2, as Unity 3D generates MRC Xcode projects ...

Show Detail

MoPub Unity NoClassDefFoundError

I have been trying to implement the MoPub plugin to a Android Unity Project and I followed the instructions from here: https://github.com/mopub/mopub-unity-android-plugin But for some reason the ...

Show Detail

Mopub Unity Android crashing on startup

I am trying to integrate Mopub for Android into my Unity project. I've followed the instructions here: https://github.com/mopub/mopub-unity-android-plugin building the mopub sdk with Android supp...

Show Detail

MoPub ads in unity3d

I want to add Mopub native ads in my unity project. Is it possible to do it ? or can I just use native ads in Android or iOS native applications ? is there any way around to solve my problem ?

Show Detail

Playscape Unity PublishingKit Demo for iOS Xcode linker Errors

I'm having some trouble trying to build PlaskapePublishingKit 1.6 and Demo for iOS. At first I was trying to build Publishing SDK 1.6 within an actual Unity game-project. And I was getting some Xc...

Show Detail

Unity Firebase ARC error when building for iOS on Xcode

I'm following the instructions found on the Firebase Unity Setup (iOS) page, and correctly generating the Xcode project from Unity. I can see that the podfile is correctly generated as well as the

Show Detail

Unity Xcode errors

I made a mobile game with Unity, and that game is avaliable on Google Play Store. Everything works fine. That game had a admob. Now, when I build my Unity project to xcode, I have list of warnings...

Show Detail

Firebase Unity xCode linking errors

I am having issues trying to make a build from Unity (version 5.5.2f1) with Firebase Auth / Database imported. I am using the newest Firebase SDK of 3.0.0. The errors I get are as follows: I beli...

Show Detail