Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Carson_l_
Beginner
48 Views

IOS build error in Intelxdk 3759 with the Cordova Admob plugin

I have the following error when building IOS app in Intelxdk 3759. The issue is with the 3rd Party plugin - Cordova Admob ads plugin, anyone know how to solve this?

** BUILD FAILED **

The following build commands failed:
    CompileC build/Tom\ Cat\ Escape\ Run.build/Release-iphoneos/Tom\ Cat\ Escape\ Run.build/Objects-normal/armv7/AdMobPlugin.o Tom\ Cat\ Escape\ Run/Plugins/cordova-plugin-ad-admob/AdMobPlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,.../cordova_project/platforms/ios/cordova/build-release.xcconfig,-project,Tom Cat Escape Run.xcodeproj,ARCHS=armv7 arm64,-target,Tom Cat Escape Run,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=.../cordova_project/platforms/ios/build/device,SHARED_PRECOMPS_DIR=.../cordova_project/platforms/ios/build/sharedpch

Tags (2)
0 Kudos
3 Replies
PaulF_IntelCorp
Employee
48 Views

Please ATTACH the entire detailed build log as a TEXT file to your post, using the "Attach Files to Post" link below the edit window.

Carson_l_
Beginner
48 Views

Attached with the full build log.

PaulF_IntelCorp
Employee
48 Views

Carson -- the error indicates that there is a problem with a compile step of "cordova-plugin-ad-admob" -- which appears to be due to the dependent plugin name "cordova-plugin-ad-admob-sdk" -- which is pulled in automatically by "cordova-plugin-ad-admob."

My hunch is the problem is due to a "hooks" script that is part of the "cordova-plugin-ad-admob-sdk" plugin, which appears to be creating some symbolic links in that plugin to deal with header files and some other files that are part of the AdMob SDK. Unfortunately, the XDK build system does not support hooks scripts, because they present a security risk to your account and the build servers. Likewise, I believe PhoneGap Build has a similar policy.

Thus, you will have to build locally using Cordova CLI if you want to use that plugin, it will not work with our build system (to build for iOS you need a Mac and Xcode, in addition to Cordova CLI). You might be able to force it to work with our system by making a local copy of those two plugins (e.g., clone them to your hard drive) and then make the modifications by hand that the hooks script is doing automatically, and then import those modified plugins using the "import local plugin" option of the XDK. For additional help with that process I recommend you check Stack Overflow, this is outside the scope of the support we're able to provide.

Reply