iOS 6 crash

Hello,

I’m experiencing strange bug with my app on iOS 6.1.6 (4th gen iPod).

The app crashes on start when I build it with corona simulator and send it to the test device.

Here’s the crashlog:

http://pastebin.com/zTHcYqBA

Library not loaded: /System/Library/Frameworks/GameController.framework/GameController Reason: image not found

As far as I know, the Game Controller framework is available only on devices with iOS 7 or higher.

So here’s my question - why does the corona try to load this framework on iOS 6 device?

Apple traditionally only supports the current version of iOS and two back (7 - 9). We can only support what Apple Support. Developers want to have controller support. We can’t look at the OS the app is running on and include/exclude it on the fly.

Rob

Hi.

I’ve just heard from a customer who is also experiencing an iOS6 crash having just updated one of our apps. They’re using a 4th Gen iPod Touch too. The app opens and then closes immediately as the default.png appears.

I appreciate Apple don’t officially support further than 2 versions back, but on our iTunes screen it says our app “requires iOS6.0 or above” so surely it shouldn’t be a problem.

I assume this supported version is set based on the manifest which is created from our build.settings file / whatever information we enter when building the app in Corona, but there is nowhere for me to specify an iOS version as far as I can see.

I can’t replicate the issue on later iOS versions and don’t have an iPod 4th Gen to test on so can’t replicate their situation exactly.

Any ideas much appreciated. Thanks in advance.

Ian

In build.settings -> settings -> iphone -> pList add:

MinimumOSVersion = "7.0",

Thanks for the reply - much appreciated.

So the above will stop anyone downloading future versions but not our existing customers who have downloaded and now have a crashing app.

I have managed to get the error logs and it looks like I’m seeing the same issue as the original poster…

Dyld Error Message:

  Library not loaded: /System/Library/Frameworks/GameController.framework/GameController

  Reason: image not found

  Dyld Version: 212.3.2

Is there anything I can do for the customer who has updated the app and is now getting this error?

Thanks.

Ian

Hello! Thank you for your feedback. Do you have any plugins bundles with your app?

That error happens when you have google play services plugin included in the build.settings:

["plugin.google.play.services"]          = { publisherId = "com.coronalabs" },

What version of Corona are you running?

Hi Ian,

GPGS, part of Google Play Services, is not supported on iOS 6.x. See here:

https://developers.google.com/games/services/ios/quickstart

Brent

Hello.

Thank for your response.

I just did several tests:

  1. Built an empty app

  2. Built an app with iCloud plugin

  3. Built an app with “plugin.google.play.services” plugin

In all 3 cases app worked fine on my iPhone 3gs with iOS 6.1

(it was iCloud test app, so even iCloud worked when plugin was included, cool, eh).

Please, try upgrading to 2016.2830 and see if crash still happening.

I don’t have Google Play Services included in the build.settings.

The only plugin I have enabled is Pasteboard:

["plugin.pasteboard"] =   {       publisherId = "com.coronalabs",       supportedPlatforms = { iphone = true }, },

I’m using Corona version 2016.2815

Thanks,

Ian

I’m getting more complaints from iOS6.1.6 users of the same issue.

Is there anything in the most recent daily builds that should fix this or is it simply impossible for iOS6.1.6 users to use Corona apps?

I am not including GPGS in my app so that definitely isn’t the issue.

I’ve been building for iOS9 for ages, so why has the issue suddenly arisen? Did something in one of the most recent daily builds change something? Seems odd.

The error that’s firing is:

Dyld Error Message:  Library not loaded: /System/Library/Frameworks/GameController.framework/GameController   Reason: image not found   Dyld Version: 212.3.2

Thanks.

What plugins do you have in the build settings?

The only plugin I’m using is Pasteboard:

[“plugin.pasteboard”] =   {

      publisherId = “com.coronalabs”,
      supportedPlatforms = { iphone = true },
},

Thanks.

Hello, [member=‘keystagefun’]. As I told, this should be fixed in recent builds. Try building with 2830.

Okay thanks - I will do. I just couldn’t see any reference in the Daily Build notes to this issue so was confused which build it was that fixed it.

2830 is our public release build. Bug was fixed in http://developer.coronalabs.com/release/2016/2818/

Ah that explains it - thanks.

Apple traditionally only supports the current version of iOS and two back (7 - 9). We can only support what Apple Support. Developers want to have controller support. We can’t look at the OS the app is running on and include/exclude it on the fly.

Rob

Hi.

I’ve just heard from a customer who is also experiencing an iOS6 crash having just updated one of our apps. They’re using a 4th Gen iPod Touch too. The app opens and then closes immediately as the default.png appears.

I appreciate Apple don’t officially support further than 2 versions back, but on our iTunes screen it says our app “requires iOS6.0 or above” so surely it shouldn’t be a problem.

I assume this supported version is set based on the manifest which is created from our build.settings file / whatever information we enter when building the app in Corona, but there is nowhere for me to specify an iOS version as far as I can see.

I can’t replicate the issue on later iOS versions and don’t have an iPod 4th Gen to test on so can’t replicate their situation exactly.

Any ideas much appreciated. Thanks in advance.

Ian