Ok thanks ingemar,
I’m using Xcode 7.2 and I’ve tried on:
-
iPhone 6S iOS 9.2.1
-
iPad iOS 9.0.2
-
iPhone 5S iOS 9.2
Same runtime error so far.
Here’s my test project https://dl.dropboxusercontent.com/u/1317705/testadscode.zip
Ok thanks ingemar,
I’m using Xcode 7.2 and I’ve tried on:
iPhone 6S iOS 9.2.1
iPad iOS 9.0.2
iPhone 5S iOS 9.2
Same runtime error so far.
Here’s my test project https://dl.dropboxusercontent.com/u/1317705/testadscode.zip
Yes without the supportedPlatform = android under the plugin.Google.play.service doesn’t show any runtime error.
My question was, since it’s that line causing the crash, do we need it? From the docs of FAN looks like it’s required… Maybe it’s a typo?
The AdMob network is part of Google Play Services. Your current build.settings only activate it for Android (android=true), which will exclude it from all other platforms (in your case iOS).
If supportedPlatforms is omitted, the plugin will be included in all binaries that you compile. You only need to add supportedPlatforms if you want to exclude some platforms from adding the plugin to the binary. There is no =false option, you just set the platforms you want to =true in the table.
Valid options for supportedPlatforms are iphone, android, [“iphone-sim”], [“android-kindle”], [“android-nook”], osx, win32, [“win32-sim”] and tvos.
So, to answer your question: You don’t need the supportedPlatforms entry as long as you’re OK with including the plugin in every platform binary.
Thanks ingemar.
I was merely following the instructions on https://docs.coronalabs.com/plugin/fbAudienceNetwork/index.html
Btw, why is it required to add the google play services plugin on FBAudience?
That sounds a bit weird. That might be a typo in the docs, as their sample code for FAN doesn’t include it in build.settings.
https://github.com/coronalabs/plugins-sample-fbAudienceNetwork
Yeah I thought it was a type, but on the docs it was specified “…add two entries into the plugins table of build.settings”
Anyway, thanks!
Even when removing the supportedPlatforms entry there are still those pesky warnings for iOS:
warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/3WS22YCC15OO/Foundation-A3SOD99KJ0S9.pcm: No such file or directory
while processing /Users/ingemar/Downloads/testadscode.app/.build/plugin.fbAudienceNetwork/libFBAudienceNetwork.a(FBAdCache.o):
warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/3WS22YCC15OO/Foundation-A3SOD99KJ0S9.pcm: No object file for requested architecture
while processing /Users/ingemar/Downloads/testadscode.app/.build/plugin.fbAudienceNetwork/libFBAudienceNetwork.a(FBAdCache.o):
warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/3WS22YCC15OO/UIKit-2LM3EQU7VVY4O.pcm: No such file or directory
while processing /Users/ingemar/Downloads/testadscode.app/.build/plugin.fbAudienceNetwork/libFBAudienceNetwork.a(FBAdCache.o):
warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/3WS22YCC15OO/UIKit-2LM3EQU7VVY4O.pcm: No object file for requested architecture
while processing /Users/ingemar/Downloads/testadscode.app/.build/plugin.fbAudienceNetwork/libFBAudienceNetwork.a(FBAdCache.o):
warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/3WS22YCC15OO/Darwin-MI6WZSG1PNOM.pcm: No such file or directory
while processing /Users/ingemar/Downloads/testadscode.app/.build/plugin.fbAudienceNetwork/libFBAudienceNetwork.a(FBAdCache.o):
warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/3WS22YCC15OO/Darwin-MI6WZSG1PNOM.pcm: No object file for requested architecture
.
.
.
I’m starting to wonder if they’ve forgotten to add the 64-bit slice for iOS…
I’m asking Engineering to chime in and see what’s going on.
Rob
Lots of questions here.
Google Play Services aka GPS, are required when using FAN for Android, for access to the advertising identifier. The reason the docs have the supported platforms line including Android only, is that it’s only required to use GPS with FAN for Android builds.
If you’re using admob along with FAN on both platforms, you should remove the supported platforms line. I’ll get the docs for this fixed, to make this clearer. Sorry for the confusion.
Regarding the iOS 6 warnings, FAN do support iOS 6, but their SDK is built against iOS 7, hence the harmless warnings. We should probably supress these warnings however, as they clutter the build log.
I’ll look into that.
Hope this clears things up. Let me know if you have any further questions.