Change "platformName" string "iPhone OS" to "iOS" from build 2016.2950?

hi,

have corona changed system.getInfo(“platformName”) string from “iPhone OS” to “iOS” from build 2016.2950?

In my ipad (with iOS 10) the system.getInfo(“platformName”) return “iOS” instead of “iPhone OS”.

Any explaination???

Looks like Apple changed it.

Rob

Apple??!?!?!?!

So now i need to change it on all my sources  :angry:  :angry:  :angry:

Thanks apple!

Can confirm this, this actually caused some problems on our live apps.

My live apps are ok and still working! I think the problem is only for the new apps builded with XCode8 and iOS 10!

Yeah my bad, with all the riot that came with the processing stopped message we got confused. Sorry

This might be a useful posting for the “iOS” thread. We use system.getInfo(“platformName”) in our code and I’m curious as to if this has effected many other people.

Linked this thread in a posting in the iOS forums (https://forums.coronalabs.com/topic/65651-attention-platform-name-is-changed-in-ios10-systemgetinfo-might-not-be-returning-what-you-expect/)

Our Engineering team is discussing the issue and looking for the best solution.

Rob

This should be fixed in the next daily build (2953 and higher). We are going to return iPhone OS like it used to. This should avoid breaking your existing apps.

Rob

I wish I saw this few days ago - I’ve been wrecking my brain why our store purchases are disabled on iOS10 all of a sudden. Turns out the platform name changed and we use it to identify the store! Its critical to surface this as we and some others are using the platform name to distinguish between stores and according to that to load plug-ins and other store dependent behaviors.

Rob, Are you going to override this in later builds or should we assume the new name?

Has anyone tried building using the latest build 2963? I can’t even run the app on xcode iOS10 simulator. It aborts immediately upon launch with an error that it can’t find some pid for the app process. on 2951 it managed to load it, although with the platform name issue.

I don’t know what’s going with your 2963 issue. I’ll need to investigate it. Perhaps there is a plugin causing issues. Your build.settings will be helpful in diagnosing the issue.

With regards to the platformName change, Apple changed this and to be honest, iOS is a better name than iPhone OS. But after discussing this, we decided to override what Apple is providing and staying with iPhone OS to minimize our developers having to make updates. But we can’t go back and retro-fit old build. Going forward we are going to provide iPhone OS. Will this change in the future? Probably not. We don’t plan on changing it. But if Apple someday starts to reject apps, we could be forced in to changing it, so I can’t give an absolute “forever and always” statement. 

Rob

No need for promises. Its good that you decided to keep the old name as it allows backwards compatibility, something apple never heard of (although their devs would have been furious if it happened to them).

I’ve checked also build 2954 and the same problem I have with the simulator on 2963 reproduces. However, still not sure the issue is with Corona sdk, so will keep investigating for the time being.

Actually this probably isn’t a big issue for native developers. How often do you need to know the platformName on iOS if you’re only building apps for iOS?

Can you please share your build.settings? I just tried to build using 2963 and didn’t have issues and it ran fine on the Xcode simulator. Did you test building our Hello World sample?

Rob

This is worse than I thought. Their change also break current submissions. All our apps are broken on devices with iOS10! Started getting complaints from users who can’t purchase or restore their content.

I’m getting this error now for all build versions (2951, 2963) so not sure what is wrong:

AC01-8700DC21FDDF.launchd\_sim[32422] (UIKitApplication:com.tiltangames.playwithdino[0xe34f][44242]): Program specified by service does not contain one of the requested architectures: Sep 29 09:06:12 Adis-Mac-mini SpringBoard[32441]: [Common] Unable to get pid for 'UIKitApplication:com.tiltangames.playwithdino[0xe34f]': No such process (err 3) Sep 29 09:06:12 Adis-Mac-mini SpringBoard[32441]: [Common] Bootstrapping failed for \<FBApplicationProcess: 0x6000001f2c00; com.tiltangames.playwithdino; pid: -1\> Sep 29 09:06:13 Adis-Mac-mini com.apple.CoreSimulator.SimDevice.87D1B16D-CEEB-4058-

Does it matter if we are not on Sierra? we are still on Mac order version (El Capitan i think)

Have you tried building the “Hello World” sample app yet?

Please post your build.settings?

It should not matter. I’m still running El Capitan and can build without issue. You also said Apple rejected you can you post the text of that rejection message please?

Thanks

Rob

Just now I suddenly cannot ask for system.getInfo( “platform” ) any more - at least not on the Corona Windows Simulator: I get “nil”. A few hours ago it still worked. So now I need to change my Code to system.getInfo( “platformName” ) instead, which works fine… I don’t have Enterprise.