Bug Issue: Build error when enabling Admob (Stencyl version 10522 on Catalina 10.15.4)


Pages: 1

GuyCockcroft

  • Level 2 Stencyler
May 01, 2020, 08:50:07 am
I'm currently trying to build some older Stencyl projects after updating my Mac to Catalina 10.15.4/Xcode 11.4.1 and Stencyl to 10522.

Everything seems to work fine unless I enable Admob in the settings. At which point, I get the following build error:

[haxelib] error: Building for iOS, but the linked framework 'SafariServices.framework' was built for macOS.


GuyCockcroft

  • Level 2 Stencyler
May 08, 2020, 07:40:10 am
Just had the same error when trying to compile on the latest public build (10468)


Leoell

  • Junior Stencyler
May 08, 2020, 12:22:25 pm
sorry I think I posted this in wrong spot
« Last Edit: May 08, 2020, 12:29:30 pm by Leoell »


New attachment added by Leoell - May 08, 2020, 12:22:55 pm


Justin

  • Master Stencyler
  • *
May 26, 2020, 02:26:40 am
This is fixed in b10535. Will be in public release 4.0.3.
  • Issue Assigned from (none) to Justin
  • Status changed from New to Resolved
  • Tags added: 4.0.3
« Last Edit: May 26, 2020, 02:26:49 am by Justin »


Issue updated by Justin - June 09, 2020, 09:56:59 pm
  • Tags added: ios


Justin

  • Master Stencyler
  • *
July 31, 2020, 11:33:27 am
The update to the Google Mobile Ads SDK on iOS that was necessary here may cause a crash on startup if the iOS AdMob Application Identifier isn't set. Even if it is set, it could be overwritten by engine extensions.

1. If you have a custom [stencylworks]/templates/project.xml file, it needs to be updated with the latest changes. You can see this is the case if you find "loading template project.xml from:" in your logs.
2. If you use any of byRobin's extensions, the file at engine-extensions/byRobinextensionmanager/templates/iphone/PROJ/PROJ-Info.plist must be updated with this change. If you use any other engine extension that might overwrite the Info.plist file, a similar change should be applied to bring the extension up to date.

Finally, if the file generated at [stencylworks]/games-generated/[game name]/Export/ios/[game name]/[game name]-Info.plist contains the GADApplicationIdentifier key with the correct value, and yet the game continues to crash at startup, please post a new thread with your crash log.


Justin

  • Master Stencyler
  • *
July 31, 2020, 11:38:06 am
One final method of resolving the Mobile Ads initialization crash, although I can't recommend this, is to mark the app as accessing Google Ad Manager rather than Google AdMob. This solved the problem for the OP. I can't say why, and I don't know if it might have some unintended side effects.


Pages: 1

Details

  • Reported
    May 01, 2020, 08:50:07 am
  • Updated
    July 31, 2020, 11:38:06 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Compiling/Testing Games

Tags


Attachments

* log-2020-05-08.zip (31.62 kB - downloaded 712 times.)