Construct2 Cordova Plugins (Plugins)

Discuss Scirra's 2D Asset Store

Post » Wed Apr 13, 2016 1:13 pm

Hello I am having this error using your admob plugin on intelxdk when i build to IOS

fatal error: 'GoogleMobileAds/GADAdSize.h' file not found
#import <GoogleMobileAds/GADAdSize.h>
^
1 error generated.
B
13
S
2
G
1
Posts: 40
Reputation: 2,033

Post » Wed Apr 13, 2016 1:31 pm

@mediadi How are you adding the plugin to the project? Plugin manager or through the additions.xml file?
B
41
S
16
G
3
Posts: 169
Reputation: 4,358

Post » Thu Apr 14, 2016 8:29 am

CDogs1964 wrote:@mediadi How are you adding the plugin to the project? Plugin manager or through the additions.xml file?

Hi,
I used the plugin manager inside intelxdk.
B
13
S
2
G
1
Posts: 40
Reputation: 2,033

Post » Thu Apr 14, 2016 3:41 pm

@cranberrygame Please
I already bought the plugins but there is no support for them
I am having this error when i build on IOS admob plugin

fatal error: 'GoogleMobileAds/GADAdSize.h' file not found
#import <GoogleMobileAds/GADAdSize.h>
^
1 error generated.

Also I am having errors building On android using your facebook share plugin
B
13
S
2
G
1
Posts: 40
Reputation: 2,033

Post » Thu Apr 14, 2016 6:39 pm

@mediadi - I had problems with that months ago and instead added it using the additions.xml as follows:

<intelxdk:plugin intelxdk:name="https://github.com/cranberrygame/cordova-plugin-ad-admob"
intelxdk:value="https://github.com/cranberrygame/cordova-plugin-ad-admob" />

Be sure to remove it from plugin manager if you give this a try. Hope it helps.
B
41
S
16
G
3
Posts: 169
Reputation: 4,358

Post » Sat Apr 16, 2016 2:31 am

@cranberrygame - AdMob plug-in: I notice sometimes if I switch to another app and return to my game, the banner ad at the bottom is there, but not displaying an ad. It is like there is no connection to get a new ad? the only way to bring it back seems to be to close the game and open it again. Is there a way to check for this?

Everyone else...I notice cranberrygame has not posted here in some time. Is it best to email directly? Has anyone else seen this behavior?

Thanks.
B
41
S
16
G
3
Posts: 169
Reputation: 4,358

Post » Sun Apr 17, 2016 4:28 am

Hi

I have the same issue ('fatal error: 'GoogleMobileAds/GADAdSize.h' file not found') when I try to build for iOS.

XDK is able to build ok for Android and Windows 10 - but not for iOS :-(

Does anyone know how to fix this?


My plugin settings in XDK:
Image

Build log (from XDK):
CompileC build/Take\ Down\ Zombies.build/Release-iphoneos/Take\ Down\ Zombies.build/Objects-normal/armv7/AdmobOverlap.o Take\ Down\ Zombies/Plugins/cordova-plugin-ad-admob/AdmobOverlap.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd ".../Take Down Zombies/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/ys/qv763nzd6t133_t3410rp30h0000gp/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.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=8 -g -fvisibility=hidden -Wno-sign-conversion -iquote .../Take\ Down\ Zombies/platforms/ios/build/Take\ Down\ Zombies.build/Release-iphoneos/Take\ Down\ Zombies.build/Take\ Down\ Zombies-generated-files.hmap -I.../Take\ Down\ Zombies/platforms/ios/build/Take\ Down\ Zombies.build/Release-iphoneos/Take\ Down\ Zombies.build/Take\ Down\ Zombies-own-target-headers.hmap -I.../Take\ Down\ Zombies/platforms/ios/build/Take\ Down\ Zombies.build/Release-iphoneos/Take\ Down\ Zombies.build/Take\ Down\ Zombies-all-target-headers.hmap -iquote .../Take\ Down\ Zombies/platforms/ios/build/Take\ Down\ Zombies.build/Release-iphoneos/Take\ Down\ Zombies.build/Take\ Down\ Zombies-project-headers.hmap -I.../Take\ Down\ Zombies/platforms/ios/build/device/include -I.../Take\ Down\ Zombies/platforms/ios/build/device/usr/local/lib/include -I.../Take\ Down\ Zombies/platforms/ios/build/UninstalledProducts/include -I.../Take\ Down\ Zombies/platforms/ios/build/UninstalledProducts/iphoneos/include -I.../Take\ Down\ Zombies/platforms/ios/build/device -I.../Take\ Down\ Zombies/platforms/ios/build/Take\ Down\ Zombies.build/Release-iphoneos/Take\ Down\ Zombies.build/DerivedSources/armv7 -I.../Take\ Down\ Zombies/platforms/ios/build/Take\ Down\ Zombies.build/Release-iphoneos/Take\ Down\ Zombies.build/DerivedSources -F.../Take\ Down\ Zombies/platforms/ios/build/device -FTake\ Down\ Zombies/Plugins/cordova-plugin-ad-admob-sdk -include .../Take\ Down\ Zombies/platforms/ios/build/sharedpch/Take\ Down\ Zombies-Prefix-exagvttastbcaqfkxyxjhceoqrkp/Take\ Down\ Zombies-Prefix.pch -MMD -MT dependencies -MF .../Take\ Down\ Zombies/platforms/ios/build/Take\ Down\ Zombies.build/Release-iphoneos/Take\ Down\ Zombies.build/Objects-normal/armv7/AdmobOverlap.d --serialize-diagnostics .../Take\ Down\ Zombies/platforms/ios/build/Take\ Down\ Zombies.build/Release-iphoneos/Take\ Down\ Zombies.build/Objects-normal/armv7/AdmobOverlap.dia -c .../Take\ Down\ Zombies/platforms/ios/Take\ Down\ Zombies/Plugins/cordova-plugin-ad-admob/AdmobOverlap.m -o .../Take\ Down\ Zombies/platforms/ios/build/Take\ Down\ Zombies.build/Release-iphoneos/Take\ Down\ Zombies.build/Objects-normal/armv7/AdmobOverlap.o
In file included from .../Take Down Zombies/platforms/ios/Take Down Zombies/Plugins/cordova-plugin-ad-admob/AdmobOverlap.m:5:
In file included from .../Take Down Zombies/platforms/ios/Take Down Zombies/Plugins/cordova-plugin-ad-admob/AdmobOverlap.h:5:
.../Take Down Zombies/platforms/ios/Take Down Zombies/Plugins/cordova-plugin-ad-admob/Admob.h:8:9: fatal error: 'GoogleMobileAds/GADAdSize.h' file not found
#import <GoogleMobileAds/GADAdSize.h>
^

** BUILD FAILED **
Kind Regards,
Mikael Thomsen
www.solunasoftware.com
B
45
S
19
G
2
Posts: 36
Reputation: 4,315

Post » Mon Apr 18, 2016 9:41 pm

Hmm after some digging, it looks like the plugin 'cordova-plugin-ad-admob' from @cranberrygame is broken.

The code does this:

#import <GoogleMobileAds/GADAdSize.h>

But I think paths (and perhaps other things) has been changed - and the code need to do something like this:

#import <GoogleMobileAds.framework/GADAdSize.h>

I tried to change this, but my skills are insufficient.

I guess using ads in Construct 2 on iOS via XDK is not possible for the time being. :-(
Kind Regards,
Mikael Thomsen
www.solunasoftware.com
B
45
S
19
G
2
Posts: 36
Reputation: 4,315

Post » Tue Apr 19, 2016 2:54 pm

Soluna Software wrote:Hmm after some digging, it looks like the plugin 'cordova-plugin-ad-admob' from @cranberrygame is broken.

The code does this:

#import <GoogleMobileAds/GADAdSize.h>

But I think paths (and perhaps other things) has been changed - and the code need to do something like this:

#import <GoogleMobileAds.framework/GADAdSize.h>

I tried to change this, but my skills are insufficient.

I guess using ads in Construct 2 on iOS via XDK is not possible for the time being. :-(


Did you read my post above? I am testing via Test Flight and showing ads with the cranberry admob plugin without issue. Remove it from the plug-in manager and add to your project in the additions.xml file on the Develop tab as I mentioned.
B
41
S
16
G
3
Posts: 169
Reputation: 4,358

Post » Wed Apr 20, 2016 5:36 am

I realized I was not exporting with the new XDK project format. When I did and I tried to add admob plugin with the plugin manager, I got the same error. However, when I removed it from plugin manager and add the following to the bottom of the intelxdk.config.additions.xml, the project built fine. I am testing using Apple Test Flight and the game installed and i am seeing banner and interstitials. (In addition to reward ads with the unity plugin.)

@mediadi @solunasoftware
B
41
S
16
G
3
Posts: 169
Reputation: 4,358

PreviousNext

Return to Scirra Store

Who is online

Users browsing this forum: No registered users and 0 guests