• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by manny003 · Sep 02, 2015 at 10:53 PM · ioscrashiad

iOS9 UnityAdBanner Crash

This has been happening for quite some time but simply noted that as everything was still early beta that we should expect crashes. But now that iOS9 is getting closer to final release -- this is starting to worry me.

I have an game that's been on the App Store and running on all devices running iOS6 through 8.4.1 with no reported crashes.

On the latest version of iOS 9 Beta and Xcode Version 7.0 beta 6 (7A192o), my game is crashing when showing/closing iAds -- both interstitial and banner:

alt text

 Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'accessing _cachedSystemAnimationFence requires the main thread'
 *** First throw call stack:
 (0x24e8326b 0x3657ae17 0x24e83141 0x25c0b1e1 0x291a14a5 0x291a1551 0x291ecdb7 0x2963efdb 0x29642cbf 0x28f278e3 0x28f9af99 0x28f8c01b 0x28f0998d 0x28f0a511 0x28f0a433 0x291ffeab 0x28f09597 0x105c9b 0x36594f67 0x51f939 0x7611ef 0xf28581 0xefc049 0xef7535 0xefbf87 0xf112e3 0xf16731 0x36e5a873 0x36e5a7e7 0x36e58740)
 libc++abi.dylib: terminating with uncaught exception of type NSException

I am by no means an Xcode or iOS SDK/Objective C expert -- far from it -- which is why I use Unity.

I am building with Unity 5.1.3p1, IL2CCP

Any ideas?

Thanks, Manny

screen-shot-2015-09-02-at-64325-pm.png (175.8 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image manny003 · Sep 03, 2015 at 05:04 PM 0
Share

No help here? I've search high and low and could not find any other mention of this. Is there another place I should post this issue?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by SamyBencherif · Jan 13, 2016 at 10:28 AM

Hi Manny, I've been experiencing a similar issue. I have a solution based on this SO response (http://stackoverflow.com/questions/12005261/removefromsuperview-doesnt-work), but I don't know if it'll work to fix UnityAds, as for me it'll only crash when I publish to the store, and I have to wait about a week to do that.

In your Xcode Project

Go to the Project Navigator

Select UnityAppController.mm

Replace

[_snapshotView removeFromSuperview];

With

[_snapshotView performSelectorOnMainThread:@selector(removeFromSuperview) withObject:nil waitUntilDone:NO];

Build and hope for the best

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SamyBencherif · Jan 13, 2016 at 12:41 AM 0
Share

two extra characters made it to the end of that link. delete them to get to a valid page

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

29 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

App Store Rejection - Crashes 2 Answers

Unity 4.2 IOS Exception Handling 0 Answers

App crashes as soon as splash screen is displayed(even just camera). 1 Answer

OpenGL 2.0 or 3.0 for newer iOS 0 Answers

iOS crash on load: Terminated due to memory issue (Unity5.2.1p3) 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges