I just downloaded and installed build 2016.2949 that includes iOS 10 support onto macOS Sierra. Everything works fine in the Corona Simulator. In the iOS Simulator the app deploys but when I try to run it, there is a blank screen for a second and then the app closes, or crashes I don’t know which one. When deploying to the device the SDK claims the deploy worked but I can’t find the app anywhere on the phone. Can someone help me?
Hi Douglas. When you build for the iOS simulator, are you leaving the dialog box up that should be directing console messages to the Corona console log window? If so are there any messages there of value?
Are you using any plugins? If so, please post your build.settings file.
You can also view the iOS Simulator’s console log. Instructions are here:
https://docs.coronalabs.com/guide/basics/debugging/index.html#xcode-simulator-osx
There are numerous reasons why an app would run fine in the Corona simulator but not on a device or iOS simulator. The #1 reason is a file name mis-match macOS is not case sensitive where iOS (and the iOS simulator) is case sensitive. So if you have a file:
background.png but the OS see’s it as background.PNG there will be a mis-match, we can’t find the file and you will get an error. All of this should show up in the various simulator and device console logs. Please look there for any warnings or error messages.
Rob
Thanks Rob,
I’m not using any plugins and the Apple Simulator yields no errors at all.
These are the only log messages in the Corona Simulator I see that might be of significance:
Sep 20 02:21:36.377 [iOS Simulator] objc[29252]: Class VCWeakObjectHolder is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/GameKitServices.framework/Frameworks/ViceroyTrace.framework/ViceroyTrace (0x11dce4b60) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/GameKitServices.framework/Frameworks/AVConference.framework/AVConference (0x11dc217e0). One of the two will be used. Which one is undefined.
Sep 20 02:21:36.377 [iOS Simulator] objc[29252]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x10e6d3910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x10e4fd210). One of the two will be used. Which one is undefined.
As you can see, they are the same error message complaining about duplicate implementations. The first is VCWeakObjectHolder and the second is PLBuildVersion. The application that generated these errors is one of the samples included with the SDK. I didn’t modify it at all to make sure it wasn’t something in the code.
Hope this helps figure out what the issue is.
Which sample app are you using? And is it unmodified?
I’ve tried several. The most recent one is the Clock sample. And I didn’t modify anything.
Is this the production version of macOS Sierra downloaded from the Mac App Store? Or you using a Beta or GM seed version?
I’m using the GM seed. Please don’t tell me that’s the problem. :/
No I’m just gathering information before I ask the engineers.
Rob
Whew! I’ve never had any luck upgrading from a prerelease (although I would think the GM seed is close enough). Every time I’ve ended up doing a clean install.
Actually, I just looked at the release notes for the latest daily build:
- macOS: Fix issue with running apps in the Xcode 8 version of the Xcode iOS Simulator
Can you update to 2952 and give it a try?
Rob
That fixed it! Thanks for the heads up!
Hi Douglas. When you build for the iOS simulator, are you leaving the dialog box up that should be directing console messages to the Corona console log window? If so are there any messages there of value?
Are you using any plugins? If so, please post your build.settings file.
You can also view the iOS Simulator’s console log. Instructions are here:
https://docs.coronalabs.com/guide/basics/debugging/index.html#xcode-simulator-osx
There are numerous reasons why an app would run fine in the Corona simulator but not on a device or iOS simulator. The #1 reason is a file name mis-match macOS is not case sensitive where iOS (and the iOS simulator) is case sensitive. So if you have a file:
background.png but the OS see’s it as background.PNG there will be a mis-match, we can’t find the file and you will get an error. All of this should show up in the various simulator and device console logs. Please look there for any warnings or error messages.
Rob
Thanks Rob,
I’m not using any plugins and the Apple Simulator yields no errors at all.
These are the only log messages in the Corona Simulator I see that might be of significance:
Sep 20 02:21:36.377 [iOS Simulator] objc[29252]: Class VCWeakObjectHolder is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/GameKitServices.framework/Frameworks/ViceroyTrace.framework/ViceroyTrace (0x11dce4b60) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/GameKitServices.framework/Frameworks/AVConference.framework/AVConference (0x11dc217e0). One of the two will be used. Which one is undefined.
Sep 20 02:21:36.377 [iOS Simulator] objc[29252]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x10e6d3910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x10e4fd210). One of the two will be used. Which one is undefined.
As you can see, they are the same error message complaining about duplicate implementations. The first is VCWeakObjectHolder and the second is PLBuildVersion. The application that generated these errors is one of the samples included with the SDK. I didn’t modify it at all to make sure it wasn’t something in the code.
Hope this helps figure out what the issue is.
Which sample app are you using? And is it unmodified?
I’ve tried several. The most recent one is the Clock sample. And I didn’t modify anything.
Is this the production version of macOS Sierra downloaded from the Mac App Store? Or you using a Beta or GM seed version?
I’m using the GM seed. Please don’t tell me that’s the problem. :/
No I’m just gathering information before I ask the engineers.
Rob
Whew! I’ve never had any luck upgrading from a prerelease (although I would think the GM seed is close enough). Every time I’ve ended up doing a clean install.
Actually, I just looked at the release notes for the latest daily build:
- macOS: Fix issue with running apps in the Xcode 8 version of the Xcode iOS Simulator
Can you update to 2952 and give it a try?
Rob