[英]iOS App Crashes when installed remote/diawi but not if installed from xcode
I have an iOS app which, when submitted to Apple is crashing during usage when you try to go to a new view. 我有一个iOS应用程序,当您尝试转到新视图时,在提交给Apple时会崩溃。 This also occurs if i package up the application for enterprise distribution and then go to use the app. 如果我打包应用程序进行企业分发然后再使用该应用程序,也会发生这种情况。
If i just plug the phone in and run from xcode to the device though, it runs perfectly. 如果我只是插入手机并从xcode运行到设备,它运行完美。
Has anyone experienced this before and have any ideas what it could be? 有没有人经历过这个,并有任何想法可能是什么? Running latest xcode and ios, not using betas. 运行最新的xcode和ios,而不是使用beta。
EDIT - i've tested building straight to the device using both debug and release scehemes, and they both working, but again, only when the device is plugged into the computer and it's built straight to it. 编辑 - 我已经测试了使用调试和发布版本直接构建设备,它们都工作,但同样,只有当设备插入计算机并且它直接构建它。 packaging it in anyway and installing remotely causes it to crash on a particular screen. 无论如何将其打包并远程安装会导致它在特定屏幕上崩溃。 The error logs end up as a basically unreadable mess at this point. 在这一点上,错误日志最终成为一个基本上难以理解的混乱。
When we archive app it mostly builds with release mode on, and when we run build on devices simply by XCode it's with debug mode on. 当我们归档应用程序时,它主要是在启用发布模式的情况下构建的,当我们仅通过XCode在设备上运行构建时,它就启用了调试模式。 You can check these configuration by going 您可以通过访问来检查这些配置
Edit Scheme
-> Run -> Build configuration
, same you can check for Archive . Edit Scheme
- > 运行 - > Build configuration
,同样可以检查存档 。
Now for tracking the crash issue you can simply try changing Run's debug mode to release mode for time being. 现在,为了跟踪崩溃问题,您可以暂时尝试将Run的调试模式更改为释放模式。
I got the crash where I was doing configuration for firebase for production target which has different bundle identifier than dev build identifier. 我遇到了崩溃,我正在为生产目标配置firebase,它具有与dev构建标识符不同的bundle标识符。 You case may be different. 你的情况可能会有所不同。
哇,说实话,这真的很奇怪...如果你通过企业分发它真的不应该有这种影响...至于如何解决这个问题的任何想法:你确实在签名时添加了应用程序的权利企业吧?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.