简体   繁体   English

iOS应用程序在安装远程/ diawi时崩溃,但如果从xcode安装则不会崩溃

[英]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.

相关问题 如果通过 Xcode 安装,iOS 应用程序运行良好,但通过 TestFlight 安装时在一个特定的视图控制器上崩溃 - iOS app runs fine if installed through Xcode, but crashes on one particular view controller when installed through TestFlight 在AppStore中更新时,iOS App崩溃,但在Xcode中安装时,iOS崩溃 - iOS App crashes when it's updated in the AppStore, but not when it's installed in Xcode iOS:通过Xcode或IPA安装应用程序时,图像大小不同 - iOS: Different image sizes when app is installed via Xcode or IPA 从testflight安装时,我的IOS应用程序崩溃 - My IOS application crashes when installed from testflight XCode:在 iOS 设备上安装应用程序时,sqlite 文件从哪里复制 - XCode: Where are sqlite files copied from when app is installed on iOS device 从 xcode 10.1 安装到 iOS 12+ 时,应用程序在启动屏幕上冻结 - App freezes on launch screen when installed from xcode 10.1 to iOS 12+ 直接从Xcode安装时,iOS应用程序能否包含其调试符号(dSYM文件)? - Can an iOS app include its debug symbols (dSYM file) when installed directly from Xcode? 获取在iOS上安装的“我的应用”的Xcode文件 - Get the Xcode File of My App Installed on iOS 从App Store安装的应用程序在大型iPhone上的升级行为与通过Xcode安装时不同。 - App installed from the App Store behaves differently with upscaling on larger iPhones than when installed through Xcode OpenGL:glGetUniformLocation上的应用程序崩溃(但仅当未通过XCode安装时) - OpenGL: App crashes on glGetUniformLocation (but only if not installed through XCode)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM