Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

App crash on iPhone
Started by giandemarch Aug 01 2019 02:42 AM

1 reply to this topic
iphone crash ios app composer physics

Best Answer giandemarch , 04 August 2019 - 08:15 AM

I solved the problem:  In "scene:hide" I had to use physics.pause() instead of physics.stop()... Android doesn't care about this but iOS actually does.

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

giandemarch

[GLOBAL: userInfoPane.html]
giandemarch
  • Observer

  • 8 posts
  • Corona SDK

Hi!

 

I'm developing a video game using Composer library and Physics library. On Android devices it works very well. On iOS when I press the button to play again or the button to go back to menu, instead of changing scene, the app crashes. (On the Corona simulator it works fine). On iOS version I'm using Appodeal plugin and Game Network Plugin and they work. However I tried to not include them but the problem persists.

In "hide will" phase in composer scenes I stopped all timers, transitions and Runtime Listener, all audios are stopped and disposed. All the graphic elements are inserted in sceneGroup.

 

Here I post the console errors captured from xCode (just updated) while running the App downloaded from testFlight on my iPhone 5s. I tested it in iPhone 6s Plus and iPhone SE too, and it crash anyway. 

I'm using Corona 2019.3510.



[TOPIC: post.html]
#2

giandemarch

[GLOBAL: userInfoPane.html]
giandemarch
  • Observer

  • 8 posts
  • Corona SDK

  Best Answer

I solved the problem:  In "scene:hide" I had to use physics.pause() instead of physics.stop()... Android doesn't care about this but iOS actually does.




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: iphone, crash, ios, app, composer, physics