Unity plugin v3.8.0 can't build for iOS an Android


#1

The doc is too simple. I can’t integrate unity plugin with it.


#2

Hello lizistorm,

Can you let us know what the specific issues you are seeing in your integration are?

What parts of the Unity documentation are simple?

Please expand on your problems, so we can better troubleshoot.

Thanks!


#3

I go for other network directly. Maybe try it later. Thanks!


#4

I try it again and I got these errors when building for iOS:

Undefined symbols for architecture arm64:
  "__moPubShowRewardedVideo", referenced from:
      _MoPubBinding__moPubShowRewardedVideo_m117 in Bulk_Assembly-CSharp-firstpass_0.o
     (maybe you meant: _MoPubBinding__moPubShowRewardedVideo_m117)
  "__moPubRequestRewardedVideo", referenced from:
      _MoPubBinding__moPubRequestRewardedVideo_m115 in Bulk_Assembly-CSharp-firstpass_0.o
     (maybe you meant: _MoPubBinding__moPubRequestRewardedVideo_m115)
  "__moPubShowInterstitialAd", referenced from:
      _MoPubBinding__moPubShowInterstitialAd_m109 in Bulk_Assembly-CSharp-firstpass_0.o
     (maybe you meant: _MoPubBinding__moPubShowInterstitialAd_m109)
  "__moPubRequestInterstitialAd", referenced from:
      _MoPubBinding__moPubRequestInterstitialAd_m107 in Bulk_Assembly-CSharp-firstpass_0.o
     (maybe you meant: _MoPubBinding__moPubRequestInterstitialAd_m107)
  "__moPubInitializeRewardedVideo", referenced from:
      _MoPubBinding_initializeRewardedVideo_m114 in Bulk_Assembly-CSharp-firstpass_0.o
      _MoPubBinding__moPubInitializeRewardedVideo_m113 in Bulk_Assembly-CSharp-firstpass_0.o
     (maybe you meant: _MoPubBinding__moPubInitializeRewardedVideo_m113)
  "__moPubCreateBanner", referenced from:
      _MoPubBinding__moPubCreateBanner_m99 in Bulk_Assembly-CSharp-firstpass_0.o
     (maybe you meant: _MoPubBinding__moPubCreateBanner_m99)
  "__moPubReportApplicationOpen", referenced from:
      _MoPubBinding__moPubReportApplicationOpen_m111 in Bulk_Assembly-CSharp-firstpass_0.o
     (maybe you meant: _MoPubBinding__moPubReportApplicationOpen_m111)
  "__moPubRefreshAd", referenced from:
      _MoPubBinding__moPubRefreshAd_m105 in Bulk_Assembly-CSharp-firstpass_0.o
     (maybe you meant: _MoPubBinding__moPubRefreshAd_m105)
  "__moPubShowBanner", referenced from:
      _MoPubBinding_showBanner_m104 in Bulk_Assembly-CSharp-firstpass_0.o
      _MoPubBinding__moPubShowBanner_m103 in Bulk_Assembly-CSharp-firstpass_0.o
     (maybe you meant: _MoPubBinding__moPubShowBanner_m103)
  "__moPubDestroyBanner", referenced from:
      _MoPubBinding_destroyBanner_m102 in Bulk_Assembly-CSharp-firstpass_0.o
      _MoPubBinding__moPubDestroyBanner_m101 in Bulk_Assembly-CSharp-firstpass_0.o
     (maybe you meant: _MoPubBinding__moPubDestroyBanner_m101)
  "__moPubEnableLocationSupport", referenced from:
      _MoPubBinding_enableLocationSupport_m98 in Bulk_Assembly-CSharp-firstpass_0.o
      _MoPubBinding__moPubEnableLocationSupport_m97 in Bulk_Assembly-CSharp-firstpass_0.o
     (maybe you meant: _MoPubBinding__moPubEnableLocationSupport_m97)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I’m using Unity 5.1.3f1.


#5

I’m trying to integrate MoPub in a Unity project as well, getting the same errors as OP. I imported the Unity plugin first, then added the iOS mopub-full SDK version 3.8.0 source files to the Xcode project after first doing “Build and run” in Unity.

The build instructions could really do with some attention. :frowning:


#6

Hi @ToreOlsen, you do not need to add the iOS SDK once you have imported the plugin. It is already included with our Unity plugin.

Once it is imported, and iOS platform has been selected, select ‘Build’. You can open the .xcodeproj file exported with Xcode. Hope that helps!