I haven’t access to the iPhone (my daughters) to test on, so I cannot answer that. I’ll try as fast as I can though.
B)
Not entirely sure what you mean by “build for the iOS simulator”. The app runs just fine in the simulator, on the Mac (as it does in the Windows simulator and on Android devices).
C)
That would be 10.10.5
D)
Sorry. A little typo from me there. I meant “for me mysterious”.
Please remember that I’m completely new to OS X and the file system and extensions (if any).
The app in question is called Karate Squid and the two files are called “Karate Squid” and “Karate Squid.app.dSYM”.
Just when writing this I discovered that the “Karate Squid” file actually was some kind of archive file that contained a lot of recognizable items from the project. And some new (to me) stuff. I don’t see any .app file there though and as far as I’ve been able to read that is something needed to install the app via XCode:
In your case, “Karate Squid” is the app you built. You have “Show all filename extensions” unchecked in the Finder so the “.app” part of the name is hidden (which is not surprising since that’s the default).
Can you list the exact sequence of events leading up to the crash?
I took a video dump of the events leading up to the crash to be able to see what went on. I deleted it, but I’ll make another one tonight and put it on youtube.
If I do 1 and 2 above 3 means that Corona crashes.
BTW: I’ve successfully “built to file” and put the app to a iOS device (an iPad2 this time) through XCode. I didn’t find the app on the device at first, because it got some kind of standard icon that I didn’t recognize. Not the standard Corona icon and not my icon that I get on the Android devices. Yet another thing to figure out I guess
The app crashed directly, by the way. Seems that the vibrator plugin from Lerg did not play well with either iPads, iOS or my pitiful attempt on a iOS build
Another thing that I notices was that the archive file (or .app file as it probably is) contained more that I would have liked. Typically a Corona project look like this for me:
Project Folder
ANDROID
project.apk
IMAGES
imgA.jog
imgB.jpg
AUDIO
snd1.mp3
snd2.mp3
fileA.lua
fileB.lua
…
It seems that the iOS builder adds everything in the project folder into the .app file, also the big fat Android .apk file. I guess when developing for Android and iOS at the same time, I have to arrange the files in another fashion. I thought the .apk file had to be somewhere within the project folder, but I’m not sure where I’ve got that idea in the first place…
But at least SOMETHING worked! I’ll get there eventually…
Corona doesn’t try to predict which files you want in your app so your built apps should not be in the project folder (in fact, the Simulator prevents you from building to that location). In theory, you could use the excludeFiles option to prevent them from being added to the app bundle but it’s easier to have a separate location for built applications.
Please PM me the most recent crashlog for the Simulator. You’ll find them in this folder (the name will start with “Corona Simulator_”):
Hmm… The simulator running under Windows happily saves the Android .apk files within the project folder and the building excludes this file automatically. So I’ve never thought about this being a problem before diving into iOS building…
But I have rearranged the files now so it’s not an issue anymore.
Corona only crashes when trying to copy to device after the build. I’ve started to “do nothing” and use XCode to put the app to the device when the Corona build is finished. Seems to work every time so I’ll stick to this method.
Same thing happened to me, but then I tried the latest daily build CoronaSDK 2016.2824 and it actually told me that I was missing “ideviceinstaller” (I did not receive this error before… it simply just crashed).
After installing ideviceinstaller in the terminal using brew, it works almost every time I tell it to copy to device (iPhone 6s running iOS 9.2.1). Sometimes I have to disconnect my device and try again.
NB! You can also install the app through the terminal using ideviceinstaller if you do not want to do it through Xcode. Use the following command in your build folder
I haven’t access to the iPhone (my daughters) to test on, so I cannot answer that. I’ll try as fast as I can though.
B)
Not entirely sure what you mean by “build for the iOS simulator”. The app runs just fine in the simulator, on the Mac (as it does in the Windows simulator and on Android devices).
C)
That would be 10.10.5
D)
Sorry. A little typo from me there. I meant “for me mysterious”.
Please remember that I’m completely new to OS X and the file system and extensions (if any).
The app in question is called Karate Squid and the two files are called “Karate Squid” and “Karate Squid.app.dSYM”.
Just when writing this I discovered that the “Karate Squid” file actually was some kind of archive file that contained a lot of recognizable items from the project. And some new (to me) stuff. I don’t see any .app file there though and as far as I’ve been able to read that is something needed to install the app via XCode:
In your case, “Karate Squid” is the app you built. You have “Show all filename extensions” unchecked in the Finder so the “.app” part of the name is hidden (which is not surprising since that’s the default).
Can you list the exact sequence of events leading up to the crash?
I took a video dump of the events leading up to the crash to be able to see what went on. I deleted it, but I’ll make another one tonight and put it on youtube.
If I do 1 and 2 above 3 means that Corona crashes.
BTW: I’ve successfully “built to file” and put the app to a iOS device (an iPad2 this time) through XCode. I didn’t find the app on the device at first, because it got some kind of standard icon that I didn’t recognize. Not the standard Corona icon and not my icon that I get on the Android devices. Yet another thing to figure out I guess
The app crashed directly, by the way. Seems that the vibrator plugin from Lerg did not play well with either iPads, iOS or my pitiful attempt on a iOS build
Another thing that I notices was that the archive file (or .app file as it probably is) contained more that I would have liked. Typically a Corona project look like this for me:
Project Folder
ANDROID
project.apk
IMAGES
imgA.jog
imgB.jpg
AUDIO
snd1.mp3
snd2.mp3
fileA.lua
fileB.lua
…
It seems that the iOS builder adds everything in the project folder into the .app file, also the big fat Android .apk file. I guess when developing for Android and iOS at the same time, I have to arrange the files in another fashion. I thought the .apk file had to be somewhere within the project folder, but I’m not sure where I’ve got that idea in the first place…
But at least SOMETHING worked! I’ll get there eventually…
Corona doesn’t try to predict which files you want in your app so your built apps should not be in the project folder (in fact, the Simulator prevents you from building to that location). In theory, you could use the excludeFiles option to prevent them from being added to the app bundle but it’s easier to have a separate location for built applications.
Please PM me the most recent crashlog for the Simulator. You’ll find them in this folder (the name will start with “Corona Simulator_”):
Hmm… The simulator running under Windows happily saves the Android .apk files within the project folder and the building excludes this file automatically. So I’ve never thought about this being a problem before diving into iOS building…
But I have rearranged the files now so it’s not an issue anymore.
Corona only crashes when trying to copy to device after the build. I’ve started to “do nothing” and use XCode to put the app to the device when the Corona build is finished. Seems to work every time so I’ll stick to this method.
Same thing happened to me, but then I tried the latest daily build CoronaSDK 2016.2824 and it actually told me that I was missing “ideviceinstaller” (I did not receive this error before… it simply just crashed).
After installing ideviceinstaller in the terminal using brew, it works almost every time I tell it to copy to device (iPhone 6s running iOS 9.2.1). Sometimes I have to disconnect my device and try again.
NB! You can also install the app through the terminal using ideviceinstaller if you do not want to do it through Xcode. Use the following command in your build folder