Hi.
Sorry. I don't really know how to explain this. I have an app which is now in its fourth version. The latest has been in the app store for six months and no one has reported a problem. I have a copy on my iPad and until today it was working fine.
So, I needed to make some changes, but first I noticed my Provisioning Profile has expired so I created/downloaded a new one. (I think this is somehow relevant.)
I rebuilt the app with LC 7.0.1 and copied it to my iPad. When I open it, initially things seem fine, but as soon as I touch the screen the app crashes.
If I try to run it on the iPad simulator, it shows the splash screen image and then the app dies.
If I run it in the LC development environment it runs fine.
I mentioned the existence of earlier versions because I've tried those too, and they do the same thing. They were all working apps.
So, I've concluded it's probably nothing to do with my code, but I have NO IDEA where to start looking for a solution.
I tried to go back to LC 6.6, but it complains it doesn't have support for the latest SDK, and if I try to add Xcode 6.6.1, it says the chosen folder in not a valid iOS SDK... even tho that same folder is acceptable to LC 7.0.1. So, at the moment, I can't find a way to test this with any LC 6 version.
Maybe I don't need to, but I'm clutching at the proverbial straws.
Has anyone witnessed anything like this? Does anyone have any idea what might be causing the problem? Any help appreciated.
Thanks...
--paul
Working iPad app now crashes...
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Working iPad app now crashes...
Okay, I've tracked this down to the audioclip command.
All the buttons in my app have an optional sound associated with them. If the sound is off, the app doesn't crash.
I have the flwg code:
If the sound is on (i.e. the cpSetting of "GrpSound" is 1) the sound plays and then the app crashes.
If I go back as far as LC 6.5.2 everything works fine, so something's changed.
Can someone tell me how to make audioclips work please!!!
--paul
All the buttons in my app have an optional sound associated with them. If the sound is off, the app doesn't crash.
I have the flwg code:
Code: Select all
global gSoundDir
on mouseUp
put gSoundDir & "tap_button.wav" into tTapSound
if the cpSetting of grp "GrpSound" = 1 then
play audioClip tTapSound
end if
...
If I go back as far as LC 6.5.2 everything works fine, so something's changed.
Can someone tell me how to make audioclips work please!!!
--paul
Re: Working iPad app now crashes...
Hi paul,
audioclip is not supported on mobile.
"play file, play" and "mobilePlaySoundOnChannel" do work.
Simon
audioclip is not supported on mobile.
"play file, play" and "mobilePlaySoundOnChannel" do work.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Working iPad app now crashes...
Thanks Simon. That would explain it!
I never thought to check since it was working just fine in LC6.5. Now, as I mentioned, audioClip still works on LC7, but after playing the sound the app crashes.
Ah well. Time to make changes...
--paul
I never thought to check since it was working just fine in LC6.5. Now, as I mentioned, audioClip still works on LC7, but after playing the sound the app crashes.
Ah well. Time to make changes...
--paul
Re: Working iPad app now crashes...
Hmm, interestingly, "play file" does the same thing as "play audioClip file". The sound plays and then the app crashes.
That would suggest to me that "audioClip" is ignored if the device is mobile.
But mobilePlaySoundOnChannel works fine so I'm happy.
--paul
That would suggest to me that "audioClip" is ignored if the device is mobile.
But mobilePlaySoundOnChannel works fine so I'm happy.
--paul