iOS6 / iPhone5 app crashes

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

jlally
Posts: 33
Joined: Wed Mar 21, 2012 6:48 pm
Contact:

iOS6 / iPhone5 app crashes

Post by jlally » Mon Nov 05, 2012 10:49 am

Hi, Everyone -

A few days ago, I was very excited to learn that Apple accepted my first app on to the app store. After months of development, testing, and generous help from these message boards, it was very satisfying to finally have it out in the world.

However.... I am now receiving reports that my app crashes upon launch when run on an iPhone5. I want to get this fixed ASAP
to avoid the dreaded 1-star reviews from angry iPhone5 users. (Thankfully, I know the user who reported the crash to me.)

At this point, though, I am unsure of how to test for and fix this crash. I do not own an iPhone5 (just a 3GS) and the iOS6 emulator does not seem to want to launch when I attempt to run it from LC 5.5.3 with XCode 4.5. I know that my app *does* run properly on physical devices running iOS 6 - including the iPhone 3GS and 4, and the iPad 2.

I've seen some posts on iPhone5 troubles, but I'm wondering what, specifically, others are doing to test and solve their problems. Submitting new standalones with LC 5.5.3? Changing their build settings? Breaking down and buying iPhone5's?

Again, I'm a little flummoxed here and would like to stay ahead of the negative reviewers! :P

Thank you all in advance for any advice,
--John

P.S. My app was created using LC 5.5.1/XCode 4.5, set for 5.1 & Higher, Universal for iPhone, iPad, and iPod Touch.
Lodestone Animation, Inc.
Macaroni Art for iOS

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: iOS6 / iPhone5 app crashes

Post by gpb01 » Mon Nov 05, 2012 11:19 am

Hi John,
AFAIK you really need LiveCode 5.5.3 and XCode 4.5.1 (or greater) and, if you don't have to support veeeery old devices, compile olny for ARMv7.

Please note that, if you want to compile also for older iOS versions (5.0, 5.1) you have to download also Xcode 4.4.1 (be careful to don't overwrite your XCode 4.5.x install). The new Livecode allow to specifiy, in the preferences, MORE THAN ONE XCode exactly because the iOS SDK are in different versions (and don't confuse iOS SDK availability with iOS simulators availability ... are two separate things).

Guglielmo

jlally
Posts: 33
Joined: Wed Mar 21, 2012 6:48 pm
Contact:

Re: iOS6 / iPhone5 app crashes

Post by jlally » Mon Nov 05, 2012 7:20 pm

Hi, Guglielmo -

Thanks for your quick reply!

I have Xcode 4.4.1 installed, but not 4.5.1 (only 4.5). It sound like I should go ahead and install either 4.5.1 or 4.5.2, though. Would you happen to know which is more stable and/or the better choice?

Also, when you say veeeery old devices ;) do you mean iPhone3/iPad1 & earlier? I suppose technically my original build supported them, but I never actually confirmed this on a physical device. My app's only been out for 5 days, so hopefully I'm not making too many people with older devices angry if I cut them out of the loop...? :P

Thanks again for your help!
--John
Lodestone Animation, Inc.
Macaroni Art for iOS

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: iOS6 / iPhone5 app crashes

Post by jacque » Mon Nov 05, 2012 7:39 pm

I compiled with LiveCode 5.5.2 and XCode 4.4.1, ARM7 only, minimum iOS version 4.3. I was told it runs okay on an iPhone 5.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: iOS6 / iPhone5 app crashes

Post by gpb01 » Mon Nov 05, 2012 8:21 pm

jlally wrote:Hi, Guglielmo -

Thanks for your quick reply!

I have Xcode 4.4.1 installed, but not 4.5.1 (only 4.5). It sound like I should go ahead and install either 4.5.1 or 4.5.2, though. Would you happen to know which is more stable and/or the better choice?

Also, when you say veeeery old devices ;) do you mean iPhone3/iPad1 & earlier? I suppose technically my original build supported them, but I never actually confirmed this on a physical device. My app's only been out for 5 days, so hopefully I'm not making too many people with older devices angry if I cut them out of the loop...? :P

Thanks again for your help!
--John
I just installed XCode 4.5.2 + 4.4.1 and all work fine so, to be sure, install the last version officially available. ;) For "veeeery old" i mean the ARMv6 devices : the original iPhone, iPhone 3G, and first two generations of iPod touch.

Guglielmo

jlally
Posts: 33
Joined: Wed Mar 21, 2012 6:48 pm
Contact:

Re: iOS6 / iPhone5 app crashes

Post by jlally » Mon Nov 05, 2012 9:05 pm

Sounds great, Jacque and Guglielmo -

I'll go ahead and download 4.5.2 and give that a try. While I'm waiting for the download, I will also try Jacque's combo with LC 5.5.3 (just not sure of the best way to test it w/o an iPhone5).

Just one more question - is there any harm in keeping the standalone settings on "Universal" as opposed to "ARMv7"? I'm not too worried if it only means cutting out veeeery old iPhones, but just wondering. :)

Thanks again to you both,
John
Lodestone Animation, Inc.
Macaroni Art for iOS

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: iOS6 / iPhone5 app crashes

Post by gpb01 » Mon Nov 05, 2012 10:10 pm

jlally wrote:...
Just one more question - is there any harm in keeping the standalone settings on "Universal" as opposed to "ARMv7"? I'm not too worried if it only means cutting out veeeery old iPhones, but just wondering. :)
...
... only a useless waste of space because the Universal have to include code for ARMv6 and ARMv7 (Fat Binary).

This is interesting to read : http://www.cocoanetics.com/2012/08/soft ... iphone-3g/ :)

Guglielmo

jlally
Posts: 33
Joined: Wed Mar 21, 2012 6:48 pm
Contact:

Re: iOS6 / iPhone5 app crashes

Post by jlally » Tue Nov 06, 2012 9:52 am

Hi, Guglielmo -

Thanks for the info on ARMv7 builds, and for the link to the article. Interesting read! When I resubmit, I think I'll be going with ARMv7 instead of "Universal".

BTW, I installed Xcode 4.5.2 today and made sure that my LC 5.5.3 was still pointing to it in the mobile support preferences. Unfortunately, it seems that I still can't get the iOS 6 Simulator to launch properly when I run a test from LC. (The 5.1 & 5.0 Simulators work just fine.)

Do you know of anything else I may be missing? Also, assuming I can get the iOS6 simulator up and running, do you know of a way to set the Simulator to the iPhone5's resolution?

Thanks again,
John
Lodestone Animation, Inc.
Macaroni Art for iOS

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: iOS6 / iPhone5 app crashes

Post by gpb01 » Tue Nov 06, 2012 4:32 pm

Hi John,
mmm ... strange, I have no problem with the simulators (5.0, 5.1, 6.0) and with all devices (iPhone, iPhone retina, iPhone 4", iPad, iPad retina) ... have you downloaded all files from XCode -> Preferences -> Download ?

In the Simulator, the iPhone 5 is the iPhone (Retina 4-inch) and the iPhone (Retina 3.5-inch) is the iPhone 4 ... :)

From XCode you arrive to open the Simulator and, from the Simulator, you arrive to choose the different Devices and the different Versions ?

Guglielmo

jlally
Posts: 33
Joined: Wed Mar 21, 2012 6:48 pm
Contact:

Re: iOS6 / iPhone5 app crashes

Post by jlally » Tue Nov 06, 2012 8:59 pm

Hi, Guglielmo -

Ok, I think I got it to work! Thanks for pointing out the various iPhone setting in the Simulator. (I was looking for a way to change the settings in LC :P)

The strange part is that I am still getting this error, even though the app does eventually launch on the iOS6/4-inch Simulator:

"Unable to start simulation: iOS Simulator
failed to install the application"

Anyway, things look like they're working okay, despite the error message. Thanks again for your help!

--John
Lodestone Animation, Inc.
Macaroni Art for iOS

DRJ-UK
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 73
Joined: Tue Aug 23, 2011 2:50 pm
Contact:

Re: iOS6 / iPhone5 app crashes

Post by DRJ-UK » Thu Nov 08, 2012 8:27 pm

Colleagues

Once upon a time iOS upgrades were relatively straightforward to manage and nowadays there is a flurry of new iPads to cope with too!

We have had a problem reported by one user of an App who has just received a 4th generation iPad. The App was updated and compatible with iOS 6 and works fine on iPad generation 3s running iOS 6.0.1. The behaviour appeared to be a repeat of the move to iOS 6 - the App launches but apparently disappears!

We are investigating this but has anyone else come across this problem reported? It may be that the existing LiveCode Apps need to be re-built with the very latest LiveCode (5.5.3) and xCode (4.5.2).

Any comments or thoughts welcome.

Dave
LiveCode: Versions 8.0, 8.1
Xcode: Version 7.3, 8.0
Mac OS X: 10.11.12 (macOS Sierra) on iMacs with 3.4 Intel Core i7 & 16GB Memory

Creating Apps for educational professionals, effective teaching and learning.

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: iOS6 / iPhone5 app crashes

Post by gpb01 » Thu Nov 08, 2012 9:07 pm

DRJ-UK wrote:...It may be that the existing LiveCode Apps need to be re-built with the very latest LiveCode (5.5.3) and xCode (4.5.2)...
Hi Dave,
mmm ... I'm pretty sure that you MUST use the last XCode (4.5.2) and, for sure, the last LiveCode.

If I remember correctly, iPad 4 was announced after XCode 4.5.1 so .. probably is not included on the old SDK.

Unfortunately I don't have an iPad 4 for testing ...

Guglielmo

DRJ-UK
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 73
Joined: Tue Aug 23, 2011 2:50 pm
Contact:

Re: iOS6 / iPhone5 app crashes

Post by DRJ-UK » Thu Nov 08, 2012 9:19 pm

mmm ... I'm pretty sure that you MUST use the last XCode (4.5.2) and, for sure, the last LiveCode.

If I remember correctly, iPad 4 was announced after XCode 4.5.1 so .. probably is not included on the old SDK.

Unfortunately I don't have an iPad 4 for testing ...

Guglielmo
Guglielmo

Thanks for the comment. Just been experimenting with various combinations of LiveCode 5.5.2 & 5.5.3 with xCode 4.5.2. Both work fine except when selecting iPad Simulator 6.0 as the test target in LiveCode. Then the App loads and then disappears just like the feedback we got about one of the new 4th generation iPads. Using the other test targets the Apps run flawlessly and this is the same on our iPad 2 and iPad 3. Is there something broken in 5.5.3?

Like you we do not have access to iPad 4 (rhetorical question - who benefits from this endless stream of hardware and software updates anyway?).

As the iPad 4 has just hit the streets it is difficult to judge things. Then there is the iPad mini to consider next!

Any other thoughts welcomed.

Dave
LiveCode: Versions 8.0, 8.1
Xcode: Version 7.3, 8.0
Mac OS X: 10.11.12 (macOS Sierra) on iMacs with 3.4 Intel Core i7 & 16GB Memory

Creating Apps for educational professionals, effective teaching and learning.

DRJ-UK
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 73
Joined: Tue Aug 23, 2011 2:50 pm
Contact:

Re: iOS6 / iPhone5 app crashes

Post by DRJ-UK » Thu Nov 08, 2012 9:32 pm

Colleagues

Now tested the above in LiveCode 5.5.3 with iPhone Apps and these work in all the test target options and the various iPhone simulators. :D

It seems that the issue is focusing on iPad Apps as outlined above. :( Anyone else with this problem?

Dave
LiveCode: Versions 8.0, 8.1
Xcode: Version 7.3, 8.0
Mac OS X: 10.11.12 (macOS Sierra) on iMacs with 3.4 Intel Core i7 & 16GB Memory

Creating Apps for educational professionals, effective teaching and learning.

Randy Hengst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 157
Joined: Thu Jun 29, 2006 4:16 pm

Re: iOS6 / iPhone5 app crashes

Post by Randy Hengst » Thu Nov 08, 2012 10:15 pm

Dave,

I just heard my first concern today about the iPad 4... I have tested on the new big screen iPod and the apps work there... but, I don't own an iPad4 to test with. I also posted a question to the use list where the question also came up.

I've built with LC 5.5.1 and Xcode 4.4.1 ... all my apps work with iPads 1, 2, and 3 running iOS 5.1, 6.0, or 6.0.1

I'll be investigating... and trying to update LC and Xcode.

be well,
randy

Post Reply