Hello,
There is any way to successfull build GoogleAds for iOS with Unity Cloud Build? I think that Unity servers didn't have cocopods installed on they build agents. I got error:
10930: [xcode] /BUILD_PATH/piotr-zygadlo.galaxy-of-trian.default-ios/Unity/temp.M41Hjm/Frameworks/Plugins/IOS/GoogleMobileAds.framework/Modules/module.modulemap:2:19: error: umbrella header 'GoogleMobileAds.h' not found
10931: [xcode] umbrella header "GoogleMobileAds.h"
10932: [xcode] 1 error generated.
10933: [xcode] In file included from /BUILD_PATH/piotr-zygadlo.galaxy-of-trian.default-ios/Unity/temp.M41Hjm/Libraries/Plugins/IOS/GADUInterface.m:6:
10934: [xcode] /BUILD_PATH/piotr-zygadlo.galaxy-of-trian.default-ios/Unity/temp.M41Hjm/Libraries/Plugins/IOS/GADURequest.h:4:9: fatal error: could not build module 'GoogleMobileAds'
10935: [xcode] @import GoogleMobileAds;
10936: [xcode] 2 errors generated.
10937: [xcode] CompileC build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/GADURequest.o Libraries/Plugins/IOS/GADURequest.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
10938: [xcode] cd /BUILD_PATH/piotr-zygadlo.galaxy-of-trian.default-ios/Unity/temp.M41Hjm
10939: [xcode] /BUILD_PATH/piotr-zygadlo.galaxy-of-trian.default-ios/Unity/temp.M41Hjm/Frameworks/Plugins/IOS/GoogleMobileAds.framework/Modules/module.modulemap:2:19: error: umbrella header 'GoogleMobileAds.h' not found
10940: [xcode] umbrella header "GoogleMobileAds.h"
10941: [xcode] 1 error generated.
10942: [xcode] /BUILD_PATH/piotr-zygadlo.galaxy-of-trian.default-ios/Unity/temp.M41Hjm/Libraries/Plugins/IOS/GADURequest.m:4:9: fatal error: could not build module 'GoogleMobileAds'
10943: [xcode] @import GoogleMobileAds;
10944: [xcode] 2 errors generated.
Have you included the Google Mobile Ads iOS Framework and any other necessary mediation files within the 'Assets/Plugins/iOS' directory of your Unity project?
HI rampara,
I have a similar issue. If i'm using windows, how do i include the Google Mobile Ads iOS Framework? is it a single file? from were can i download it?
@11Sheep you can download the Google Mobile Ads iOS framework from our developer docs page.
The package contains two directories ('GoogleMobileAds.framework' and 'Mediation Adapters'). Do i need to add both to the 'Assets/Plugin/iOS' directory? (or just the content of 'GoogleMobileAds.framework')
Including the 'Mediation Adapters' directory is only required if you are using mediation.
@rampara , Ok, I added the files and got error that .h file is missing.
Can you please try help me see what did i miss?
210: [xcode] extern const methodPointerType* native_delegate_wrapper_BannerClient_AdViewDidFailToReceiveAdWithErrorCallback_m63959831_indirect = (const methodPointerType_)&native_delegate_wrapper_BannerClient_AdViewDidFailToReceiveAdWithErrorCallback_m63959831;
211: [xcode] extern const methodPointerType_ native_delegate_wrapper_InterstitialClient_InterstitialDidFailToReceiveAdWithErrorCallback_m2030413979_indirect = (const methodPointerType_)&native_delegate_wrapper_InterstitialClient_InterstitialDidFailToReceiveAdWithErrorCallback_m2030413979;
212: [xcode] extern const methodPointerType_ native_delegate_wrapper_RewardBasedVideoAdClient_RewardBasedVideoAdDidFailToReceiveAdWithErrorCallback_m2391022519_indirect = (const methodPointerType_)&native_delegate_wrapper_RewardBasedVideoAdClient_RewardBasedVideoAdDidFailToReceiveAdWithErrorCallback_m2391022519;
213: [xcode] /BUILD_PATH/11sheep.sheeppuzzle.sheepuzzle-ios-production/PuzzleGame/temp.Z87PVm/Frameworks/Plugins/iOS/GoogleMobileAds.framework/Modules/module.modulemap:2:19: error: umbrella header 'GoogleMobileAds.h' not found
214: [xcode] 1 error generated.
215: [xcode] /BUILD_PATH/11sheep.sheeppuzzle.sheepuzzle-ios-production/PuzzleGame/temp.Z87PVm/Libraries/Plugins/iOS/GADURequest.m:4:9: fatal error: could not build module 'GoogleMobileAds'
216: [xcode] 2 errors generated.
217: [xcode] _ BUILD FAILED *
I am able to create a successful Unity cloud build with the following setup:
Can you ensure you're using a stand zip tool to unzip the mobile ads SDK and that you're not modifying the SDK in any other way. If you're still running into issues, you can link a project where you're able to reproduce the problem and I can investigate further.
Hi @rampara ,
I verified it again:
And I still get this error.
How do I send you the project link in private message?
GitHub no longer provides a private messaging system. Can you can reproduce the error in a project you're will to share publicly, such as our sample project?
Closing issue due to non-response. If this issue persists, please re-open.
The problem is the "Headers" and "GoogleMobileAds" link lost when unzip googlemobileadssdkios.zip on windows.
Unzip on Mac will resolve the problem.
Or delete the link files and move real Version/A/Headers and GoogleMobileAds files to root path.
Most helpful comment
The problem is the "Headers" and "GoogleMobileAds" link lost when unzip googlemobileadssdkios.zip on windows.
Unzip on Mac will resolve the problem.
Or delete the link files and move real Version/A/Headers and GoogleMobileAds files to root path.