简体   繁体   English

iPhone 5s 设备上的“dyld`__abort_with_payload”错误

[英]“dyld`__abort_with_payload” error on iPhone 5s device

I'm trying to run my app on device (iphone 5s) and I got this error when the device tries to run my app.我正在尝试在设备 (iphone 5s) 上运行我的应用程序,当设备尝试运行我的应用程序时出现此错误。 Then it only shows white screen.然后它只显示白屏。 What's wrong with my device?我的设备有什么问题? My code works fine when I use simulator.当我使用模拟器时,我的代码工作正常。

Any help would be appreciated!任何帮助,将不胜感激!

在此处输入图片说明

I tried everything whatever I can do.我尝试了我能做的一切。 Finally I solved it by disabling "Enable guard Malloc" from diagnostics.最后我通过从诊断中禁用“启用保护 Malloc”来解决它。 Now I can able to run the app on device.现在我可以在设备上运行该应用程序了。

项目清理帮助了我

I solved it! 我解决了! I did everything mentioned by Faisal Sabri in THIS LINK . 我在这个链接中做了费萨尔萨布里提到的一切。 Then in my case I had to delete the old *.entitlements file as well.. and everythings worked fine! 然后在我的情况下,我不得不删除旧的* .entitlements文件..并且每个事情都运行良好!

在此输入图像描述

确保自定义 Frmaeworks/libs 也包含在嵌入式二进制文件部分(在常规选项卡下)以及构建阶段。

I ran into this problem when I changed the iPhone developer Keychain in my Mac from default to always trust.当我将 Mac 中的 iPhone 开发人员钥匙串从默认更改为始终信任时,我遇到了这个问题。 Coming back to system default work回到系统默认工作

在此处输入图片说明

Possibly there are more sources for this stack trace on a crash but one cause is not including a reason description, post-iOS10, when attempting to use a camera or microphone or other similar device.崩溃时此堆栈跟踪可能有更多来源,但一个原因不包括在 iOS10 之后尝试使用相机或麦克风或其他类似设备时的原因描述。

In working with an app that had not been updated past iOS9 I found this error when trying to use the microphone to make a recording.在使用未更新过 iOS9 的应用程序时,我在尝试使用麦克风进行录音时发现了此错误。 Adding NSMicrophoneUsageDescription in Info.plist fixed the problem.Info.plist添加NSMicrophoneUsageDescription解决了这个问题。 There are similar keys required for other devices;其他设备也需要类似的密钥; see Technical Q&A 1937 for a list of required keys.有关所需密钥的列表,请参阅技术问答 1937

(iTunes Connect will reject an app that does not include a required key also.) (iTunes Connect 也会拒绝不包含所需密钥的应用程序。)

I had a similar crash.我有过类似的崩溃。 It happened only if I had 3 UITextFields in this order: email, password, password.只有当我按以下顺序有 3 个 UITextField 时才会发生这种情况:电子邮件、密码、密码。 For password fields property isSecureTextEntry is set to true.对于密码字段,isSecureTextEntry 属性设置为 true。 For make it crash I changed the focus to one of the password fields, switched to the main screen and back to the app.为了让它崩溃,我将焦点更改为密码字段之一,切换到主屏幕并返回到应用程序。 Sometimes it happened on second or third switching between main screen and app.有时它发生在主屏幕和应用程序之间的第二次或第三次切换。

So, in my case the reason was Firebase/Performance pod.所以,就我而言,原因是 Firebase/Performance pod。 I've removed it for a while — this fixed the bug.我已经删除了一段时间 - 这修复了错误。

I had a similar issue when running my app on a new target iOS version.在新的目标 iOS 版本上运行我的应用程序时,我遇到了类似的问题。 I updated my pods and the issue was fixed.我更新了我的豆荚,问题得到了解决。 This can be done by navigating to the project folder including the Podfile and running 'pod update'.这可以通过导航到包含 Podfile 的项目文件夹并运行“pod update”来完成。

In my case, I did three things.就我而言,我做了三件事。

  1. disabling "Enable guard Malloc" from diagnostics从诊断中禁用“启用保护 Malloc”
  2. clean build folder and rebuild.清理构建文件夹并重建。
  3. Then it showed me more specific error messages basically telling me that I forgot to put usage description for accessing the camera.然后它向我显示了更具体的错误消息,基本上告诉我我忘记了访问相机的使用说明。 So after adding the description message, it worked.所以在添加描述消息后,它起作用了。

我遇到了同样的问题,在设备上更新 iOS 解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM