The application runs on the simulator, but not on the device

I have an application that uses open source PSStackedView to implement an interface similar to a tweeter. The application works fine on the simulator, but when I run it on the device, as soon as I try to add the view controller to the stack, the application crashes and selects viewController.view.height = [self screenHeight]; this line as Thread 1: breakpoint 1.1

Then the application just freezes on the device. I tried to debug with zombies turned on, but nothing shows problems.

I am sick of this, because I finally understood everything on the device, I invested so much time in this application! Any advice would be greatly appreciated.

+4
source share
1 answer

Your application does not hang - it just gets to a breakpoint on this line, which, most likely, you installed by accident. Scroll to the line where your code is stopped, and press Cmd + \ to disable the breakpoint. You can also press Ctrl + Cmd + Y to continue the application after the breakpoint. There are other keyboard shortcuts and commands that you can try in the Xcode Debug menu.

+5
source

Source: https://habr.com/ru/post/1413652/


All Articles