How do I export a game with ads?

0 favourites
  • 4 posts
From the Asset Store
StartApp Ads
$11.99 USD
[ C2 ] [ C3 ] support C3 build service | You can use Banner Ads, Interstitial Ads and Video Reward Ads.
  • Hello everyone,

    I am very new to Construct 2. I recently made a game but have had trouble releasing it into the ios app store. I have tried many ways to make a game with ads, only to end up getting an error message at the end that I am unable to solve. It may be because I am watching youtube videos that are over 2 years old, and are no longer acceptable for current apps (old plugins, etc). I cannot find a decent guide on how to release my game. The most recent thing I did was exporting in HTML5 or Cordova and uploading to Intel XDK, adding a plugin to support admob ads (may be the problem). When I tried building the app, I received these notes:

    BUILD FAILED

    Build Log

    Building a Cordova 6.2.0 application.

    Using platform cordova-ios 4.1.1.

    The application name is "Spooky's Space Survival"

    The package name is "com.Novakovic.SpookysSpaceSurvival"

    Plugin "cordova-plugin-device" (1.1.2) installed.

    Plugin "cordova-plugin-compat" (1.0.0) installed.

    Plugin "cordova-plugin-file" (4.2.0) installed.

    Plugin "cordova-plugin-httpd" (0.9.3) installed.

    Plugin "cordova-plugin-splashscreen" (3.2.2) installed.

    Plugin "cordova-plugin-statusbar" (2.1.3) installed.

    Plugin "cordova-plugin-wkwebview-engine" (1.0.3) installed.

    Plugin "cordova-plugin-ad-admob-sdk" (1.0.35) installed.

    Plugin "cordova-plugin-ad-admob" (1.0.118) installed.

    Plugin "cordova-plugin-extras-google-play-services" (1.0.5) installed.

    Targeting iOS version 8.0.

    Error: A build error occurred. Check the build log.

    When I checked the build log, I found these towards the bottom:

    CompileC build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Objects-normal/armv7/AdMobPlugin.o Spooky\'s\ Space\ Survival/Plugins/cordova-plugin-ad-admob/AdMobPlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler

    cd .../cordova_project/platforms/ios

    export LANG=en_US.US-ASCII

    export PATH="/Applications/Xcode.app/Contents.../Platforms/iPhoneOS.platform.../usr/bin:/Applications/Xcode.app/Contents.../usr/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools:/platform-tools"

    /Applications/Xcode.app/Contents.../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/fz/sblzptkd1q3fnbszfvchxnfr0000gp/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents.../Platforms/iPhoneOS.platform.../SDKs/iPhoneOS9.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=8.0 -g -fvisibility=hidden -Wno-sign-conversion -iquote .../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Spooky\'s\ Space\ Survival-generated-files.hmap -I.../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Spooky\'s\ Space\ Survival-own-target-headers.hmap -I.../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Spooky\'s\ Space\ Survival-all-target-headers.hmap -iquote .../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Spooky\'s\ Space\ Survival-project-headers.hmap -I.../cordova_project/platforms/ios/build/device/include -I.../cordova_project/platforms/ios/build/device/usr/local/lib/include -I.../cordova_project/platforms/ios/build/UninstalledProducts/include -I.../cordova_project/platforms/ios/build/UninstalledProducts/iphoneos/include -I.../cordova_project/platforms/ios/build/device -I.../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/DerivedSources/armv7 -I.../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/DerivedSources -F.../cordova_project/platforms/ios/build/device -FSpooky\'s\ Space\ Survival/Plugins/cordova-plugin-ad-admob-sdk -include .../cordova_project/platforms/ios/build/sharedpch/Spooky\'s\ Space\ Survival-Prefix-gagbtjslsjpfzccufzonxjozitwx/Spooky\'s\ Space\ Survival-Prefix.pch -MMD -MT dependencies -MF .../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Objects-normal/armv7/AdMobPlugin.d --serialize-diagnostics .../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Objects-normal/armv7/AdMobPlugin.dia -c .../cordova_project/platforms/ios/Spooky\'s\ Space\ Survival/Plugins/cordova-plugin-ad-admob/AdMobPlugin.m -o .../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Objects-normal/armv7/AdMobPlugin.o

    In file included from .../cordova_project/platforms/ios/Spooky's Space Survival/Plugins/cordova-plugin-ad-admob/AdMobPlugin.m:5:

    .../cordova_project/platforms/ios/Spooky's Space Survival/Plugins/cordova-plugin-ad-admob/AdMobPlugin.h:9:9: fatal error: 'GoogleMobileAds/GADAdSize.h' file not found

    #import <GoogleMobileAds/GADAdSize.h>

    ^

    1 error generated.

    CompileC build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Objects-normal/armv7/AdMobOverlap.o Spooky\'s\ Space\ Survival/Plugins/cordova-plugin-ad-admob/AdMobOverlap.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler

    cd .../cordova_project/platforms/ios

    export LANG=en_US.US-ASCII

    export PATH="/Applications/Xcode.app/Contents.../Platforms/iPhoneOS.platform.../usr/bin:/Applications/Xcode.app/Contents.../usr/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools:/platform-tools"

    /Applications/Xcode.app/Contents.../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/fz/sblzptkd1q3fnbszfvchxnfr0000gp/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents.../Platforms/iPhoneOS.platform.../SDKs/iPhoneOS9.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=8.0 -g -fvisibility=hidden -Wno-sign-conversion -iquote .../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Spooky\'s\ Space\ Survival-generated-files.hmap -I.../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Spooky\'s\ Space\ Survival-own-target-headers.hmap -I.../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Spooky\'s\ Space\ Survival-all-target-headers.hmap -iquote .../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Spooky\'s\ Space\ Survival-project-headers.hmap -I.../cordova_project/platforms/ios/build/device/include -I.../cordova_project/platforms/ios/build/device/usr/local/lib/include -I.../cordova_project/platforms/ios/build/UninstalledProducts/include -I.../cordova_project/platforms/ios/build/UninstalledProducts/iphoneos/include -I.../cordova_project/platforms/ios/build/device -I.../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/DerivedSources/armv7 -I.../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/DerivedSources -F.../cordova_project/platforms/ios/build/device -FSpooky\'s\ Space\ Survival/Plugins/cordova-plugin-ad-admob-sdk -include .../cordova_project/platforms/ios/build/sharedpch/Spooky\'s\ Space\ Survival-Prefix-gagbtjslsjpfzccufzonxjozitwx/Spooky\'s\ Space\ Survival-Prefix.pch -MMD -MT dependencies -MF .../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Objects-normal/armv7/AdMobOverlap.d --serialize-diagnostics .../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Objects-normal/armv7/AdMobOverlap.dia -c .../cordova_project/platforms/ios/Spooky\'s\ Space\ Survival/Plugins/cordova-plugin-ad-admob/AdMobOverlap.m -o .../cordova_project/platforms/ios/build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Objects-normal/armv7/AdMobOverlap.o

    ** BUILD FAILED **

    The following build commands failed:

    CompileC build/Spooky\'s\ Space\ Survival.build/Release-iphoneos/Spooky\'s\ Space\ Survival.build/Objects-normal/armv7/AdMobPlugin.o Spooky\'s\ Space\ Survival/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,Spooky's Space Survival.xcodeproj,ARCHS=armv7 arm64,-target,Spooky's Space Survival,-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

    Does anyone have any suggestions? If the problem cannot be fixed for whatever reason using this method, I am wondering if anyone has tried something else that works well. Thanks!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Update! Currently trying to work on Xcode. I am getting the following "Dependency Analysis Error:"

    Check dependencies

    No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).

  • Still trying to fix the issues. Don't know if I should proceed with the Xcode or Intel XDK.

  • .

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)