App opens then immediately closes - iphone simulat

2019-07-19 02:38发布

When I "run" my app from XCode the simulator comes up and the app attempts to run, it animates to a black screen for a second and then the app closes immediately.

The app was running fine before and now suddenly won't work.

There is no output on the console, no errors or anything and the app isn't crashing (as far as I can tell).

I have tried deleting all my user specific files in the xcodeproj package, but this hasn't changed anything.

Is there any other reason why this would happen? How do I fix this?

Thank you.

ADDITION: NSLog(@"something"); in the application:didFinishLaunchingWithOptions method doesn't show up on the console.

2条回答
放荡不羁爱自由
2楼-- · 2019-07-19 03:01

A reboot of my Mac seems to have fixed it. Thanks guys for your help. :)

查看更多
Explosion°爆炸
3楼-- · 2019-07-19 03:10

if you are using a new Xcode(4+) and previously 3, there may be issue. Try setting the Architectures (Target -> Build Settings -> Architectures) to support armv6 too, presently it supports armv7(standard) only. If my memory is not deceiving me I guess I had such an issue.

查看更多
登录 后发表回答