dyld`__abort_with_payload: With no error message

2019-01-16 17:48发布

When i start my app with XCode, i have a crash but no error

App is just stopping on this thread

enter image description here

What can i do to have more informations about the issue ?

标签: ios xcode xcode8
17条回答
对你真心纯属浪费
2楼-- · 2019-01-16 18:26

I have fixed my error in my project.
1. Check other threads when error happened.I found my error is about camera.

enter image description here

  1. Add the Camera privacy in Info.plist file.
    1)Open the info.plist file.
    2)Add a new key called "Privacy - Camera Usage Description" and enter a string that describes why the app need camera.The describes will display when your app need to use the privacy.

enter image description here

查看更多
▲ chillily
3楼-- · 2019-01-16 18:27

I fixed the error in my project just now!
If you are using swift framework in Object-C project, I advice you to change the build settings.
Always Embed Swift Standard Libraries option to YES. like this: enter image description here

hope this was useful to you.

查看更多
混吃等死
4楼-- · 2019-01-16 18:27

I had just missed applying the "Privacy - Camera Usage Description" in the info.plist.

Don't know if this info helps anybody else though...

查看更多
相关推荐>>
5楼-- · 2019-01-16 18:28

If you are using custom frameworks, you need to put it inside the "Embedded Binaries" section located in the Xcode project under the tab Target / General.

查看更多
放荡不羁爱自由
6楼-- · 2019-01-16 18:39

Finally solved!

What worked for me was to make the framework "optional" instead of "required".

Hope that helps!

查看更多
一夜七次
7楼-- · 2019-01-16 18:39

To answer the original question "What can i do to have more informations about the issue ?", this Apple forum thread provides a very simple tip: simply run your crashing app outside XCode (i.e. stop it from XCode, then run it manually on your device). This will produce a crash log containing more details about what happened. You can then review this log from XCode Window menu / Devices and Simulators -> View Device Logs.

查看更多
登录 后发表回答