Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS interstitial ad crash #12

Closed
jandrewlong opened this issue Jan 12, 2018 · 5 comments
Closed

iOS interstitial ad crash #12

jandrewlong opened this issue Jan 12, 2018 · 5 comments

Comments

@jandrewlong
Copy link

I have a crash when trying to show an interstitial ad on iOS.

Here is the output when the crash occurs:

2018-01-12 11:45:07.400 godot_opt.iphone[730:439841] Calling showInterstitial
2018-01-12 11:45:07.457 godot_opt.iphone[730:439841] interstitialWillPresentScreen
2018-01-12 11:45:07.683623-0500 godot_opt.iphone[730:439841] *** Assertion failure in -[UIView _nsis_center:bounds:inEngine:forLayoutGuide:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3698.33.7/NSLayoutConstraint_UIKitAdditions.m:3347
2018-01-12 11:45:07.707215-0500 godot_opt.iphone[730:439841] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error in compatibility flow'
*** First throw call stack:
(0x18121e364 0x180464528 0x18121e238 0x181bb97f4 0x18b2db0bc 0x18b537fec 0x18a8c1a18 0x18aab37e4 0x18a7d1f00 0x185261998 0x185265b20 0x1851d236c 0x1851f9b90 0x18a7c75c8 0x1811c5edc 0x1811c3894 0x1811c3e50 0x1810e3e58 0x182f90f84 0x18a83867c 0x10058d0cc)
libc++abi.dylib: terminating with uncaught exception of type NSException
@Shin-NiL
Copy link
Collaborator

Shin-NiL commented Jan 15, 2018

What Xcode and Godot versions are you using?

Edit: Also, what's the orientation used?

@jandrewlong
Copy link
Author

Godot version 2.1.4, Xcode version 9.2 (9C40b)

Portrait orientation on an iPhone 5S.

@Shin-NiL
Copy link
Collaborator

Tested with Godot 2.1.4-stable, Xcode 8.1, iPhone 4S, portrait orientation and worked fine. I'll try to update the Xcode later and try again.

@jandrewlong
Copy link
Author

I rebuilt the export template with the command from this comment:

godotengine/godot#11623 (comment)

and it fixed the issue. So I guess this was from not using the iOS11 SDK building when building the export template.

@Shin-NiL Thanks for your work on this module.

@Shin-NiL
Copy link
Collaborator

Shin-NiL commented Feb 6, 2018

Nice to know, thanks for the tip. The sad part is that I only have an old device for testing (iPhone 4S), so I can't help enough for the newer ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants