iOS Logs not displaying

I’m having an issue where the iOS logs (from an attached device) no longer display. Not sure whether it was due to a code change, or something in the code that I am missing.

I’m not overriding any print or debug variables (which I saw in an earlier forum post).

I’m using:

  • Corona Version 2017.3068 (2017.3.31)

  • iOS Version 10.3.1 (2 separate devices, and iPhone 6 and 7)

  • XCode 8.3.3

  • macOS Version 10.12.5

I’m also using the plugins:

  • [“plugin.appodeal”]

  • [“CoronaProvider.native.popup.activity”]

  • [“plugin.googleAnalytics”] 

  • [“plugin.facebook.v4a”]

  • [“CoronaProvider.gameNetwork.apple”]

  • [“plugin.reviewPopUp”]

This is the only output I ever get from the device. I get full output from the Simulator.

Aug 15 09:40:54.743 ----------  Device Log Starts  ----------

Aug 15 09:58:39.817 Exiting…

Aug 15 09:58:39.817 Exiting…

Aug 15 09:58:39.817 ---------- Device Log Finished ----------

Any thoughts or directions in which to point me?

There are several possibilities.

  1. Are you using a global variable named “debug”? If so, you’re overwriting our ability to print.

  2. Is your app crashing/exiting? We’ve seen this happen if the app is doing too much in main.lua and iOS thinks the app isn’t starting. It will kill the app and you won’t see anything in our captured data. It’s a system message you could potentially see in Xcode’s Device view of the console log.  

  3. Someone the other day was having a similar issue and they had their own json.lua library in the folder with main.lua and it was causing the app to exit like this.

Look into some of those items. Also look at what recent changes you’ve made too.

Rob

Thanks for the quick reply Rob. Sorry, I’ve been unable to look at this again for a few days.

I looked into it further and found that if you set the CFBundleName to something other than the Application Name field in the build screen, Corona won’t be able to tail the device logs because of the mismatch:

iphone = { plist = { CFBundleName = "appname", } }

I think I had followed an older tutorial on settings up the app icons (can’t remember which), and had copy and pasted in some of unnecessary fields.

I can see where that would cause problems. Thanks for letting us know. 

FWIW, I don’t know that our current advice is to add the CFBundleName key unless you have some specific reason to, like maybe localization. Generally if it can come from the Corona build form, it’s best to let us set those values based on the build form.

Good luck!

Rob

There are several possibilities.

  1. Are you using a global variable named “debug”? If so, you’re overwriting our ability to print.

  2. Is your app crashing/exiting? We’ve seen this happen if the app is doing too much in main.lua and iOS thinks the app isn’t starting. It will kill the app and you won’t see anything in our captured data. It’s a system message you could potentially see in Xcode’s Device view of the console log.  

  3. Someone the other day was having a similar issue and they had their own json.lua library in the folder with main.lua and it was causing the app to exit like this.

Look into some of those items. Also look at what recent changes you’ve made too.

Rob

Thanks for the quick reply Rob. Sorry, I’ve been unable to look at this again for a few days.

I looked into it further and found that if you set the CFBundleName to something other than the Application Name field in the build screen, Corona won’t be able to tail the device logs because of the mismatch:

iphone = { plist = { CFBundleName = "appname", } }

I think I had followed an older tutorial on settings up the app icons (can’t remember which), and had copy and pasted in some of unnecessary fields.

I can see where that would cause problems. Thanks for letting us know. 

FWIW, I don’t know that our current advice is to add the CFBundleName key unless you have some specific reason to, like maybe localization. Generally if it can come from the Corona build form, it’s best to let us set those values based on the build form.

Good luck!

Rob