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

What version of Corona are you using?

Unless you updated in the past few hours, there shouldn’t be any changes (well there shouldn’t be anyway because we’ve not changed this in a while).

Rob

I just tested this on my Windows 10 laptop and got win32 for “platform” and “Win” for “platformName” with 3016.

Maybe it’s worth rebooting your computer?

I just rebootet my computer and got the same result to my

print (system.getInfo( “platform” ))

= nil!

No other error messages that could give a clue.

I didn’t download anything, unless Corona updates itself sometimes? This shows up when I start the script in the simulator:

Copyright © 2009-2016  C o r o n a   L a b s   I n c .
    Version: 3.0.0
    Build: 2016.2830
Platform: SM-G900S / x64 / 10.0 / Intel® HD Graphics 4400 / 4.3.0 - Build 10.18.15.4248 / 2016.2830 / de_DE | DE | de_DE | de

Update: I just found out that also new builds of my apps that use the “platform” information have the same problem now on my Android device!

On the Corona simulator for Mac it worked fine.

Unfortunately, for the iPhone I cannot try myself.

You are using build 2830:

Copyright © 2009-2016  C o r o n a   L a b s   I n c .
    Version: 3.0.0
    Build: 2016.2830

This build is probably older than when we added the “platform” option.  Build 2992 is the current public build and 3025 is the current daily build. Please update to a newer build if you wish to use that API call.

Rob

OK, thank you. True, I haven’t updated for a while. :slight_smile:

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