iPhone 4s:
The game plays fine in the editor. The Xcode build actually completes, followed by the play test. The last line the console prints is that the engine is initializing (v 5.3.2p2) and then I get a “Lost Connection to iPhone X” message. No errors whatsoever, no memory warnings that I can see.
2 days ago, the game was playing fine on iOS. I was actually in the process of optimizing it, and even during the most demanding moments, it wasn’t receiving memory warnings.
I’m pretty sure the only things I’ve changed are unticking raycast target on several UI elements, removing some graphics raycasters on certain world canvases, removing some graphic scalers as well.
I tried setting everything the way it was before I made the changes, seems like I’m getting no luck. Most likely I’m forgetting a change I made.
I’m not using versions control of any types and I’m unable to rollback to compare versions. Any ideas what could be causing this?
EDIT :
Works fine on iPhone 5s, doesn’t work on 4s. After deeper inspection, I see that, at launch, the game was soaking 96% cpu usage on the iPhone 4s, probably causing the crash. Yet no memory warnings on Xcode.
What could cause a game to change so drastically? I’ve done nothing major, pretty sure I haven’t touched the player/quality settings since the last working version, and anyways I’ve recompiled with every settings reverted to default. 95% sure the only things I’ve changed are graphic raycasters/scalers. Most likely not the issue, as reverting these didn’t fix my problem. I’m clueless.
Supporting 4s is needed in my case. How would you guys handle this? What would you check next? I’ve rebuilt 30ish times in the last 2 days and that’s painful work with my dinosaur computer. I can’t seem to isolate the issue. Removing X, Y, and the game works. Removing A, B, the game also works, although they’re completely different and unrelated. Hence it feels like a memory issue. The very same setup was working just fine 2 days ago.
It also feels like both the unity and the Xcode build times have increased significantly. That, or I’m going mad.