AdMob and Unity Cloud Build

Hey guys! I recently got finished doing a basic integration of AdMob for my most recent game. Looks like it’s working all well and good, however unfortunately it seems to have broken my ability to generate cloud builds.

I have the newest version of the AdMob plugin. I think issue lies in the fact that it’s integration requires some steps to be taken in xcode itself (enabling modules in the projects build settings and then importing some files into the project itself once it’s inside Xcode). Ever since I finished the integration my iOS cloud builds have been failing :_(

Here’s the output I see

[xcode] /BUILD_PATH/darthbator.match.default-ios/temp.3ClchV/Libraries/Plugins/iOS/GADURequest.h:3:1: error: use of ’ @ ’ when modules are disabled
[xcode] /BUILD_PATH/darthbator.match.default-ios/temp.3ClchV/Libraries/Plugins/iOS/GADURequest.h:4:1: error: use of ’ @ ’ when modules are disabled
[xcode] /BUILD_PATH/darthbator.match.default-ios/temp.3ClchV/Libraries/Plugins/iOS/GADURequest.h:29:30: error: unknown type name ‘GADGender’; did you mean ‘GADUGender’?

I’ve been googling around but haven’t come across any useful info yet. Are iOS plugins like this just incompatible with cloud build?

It looks like this. Please make sure to update AdMob plugin to the latest version!

I appear to be using the latest version of the plugin right now… Maybe I’m looking in the wrong place?

I’m on the 2.3.0 version of the plugin. It’s the latest release I was on their github page and it’s what their user documentation points to.

It’s probably worth mentioning that I get that exact same error from a local build if I don’t enable module support in the XCode project.

I would suggest to enable module support via the XCode manipulation API if you haven’t done this. If it is a Xcode project setting this should be possible. But on the other side I would have expected google ads might do this in their post process steps already.

was this ever resolved? I’m having a similar problem, local build. Xcode 7.2, latest google ads plugin and framework

I was never able to get this working with the free tier of unity cloud build. I imagine that you would need some manner of scripting support on the unity build side to get the module support turned on. It doesn’t appear to be exposed in any manner of panel.

Have you try this

Hi,

Is there a way to add to the iOS build generated by Unity Cloud Build the Admob SDK?