iOS 13 SwiftUI:应用在真实设备上启动时崩溃 [英] iOS 13 SwiftUI: app crashes upon launch on real device
问题描述
在SwiftUI和Apple的新Beta(macOS 10.15,iOS 13和Xcode 11)发布之后,我开始开发基于新技术的应用程序.
After the releases of SwiftUI and Apple’s new betas (macOS 10.15, iOS 13, and Xcode 11), I began developing an application built on the new technologies.
考虑到所涉及的所有软件和系统均为beta版,因此开发进行得很顺利.但是,尝试在实际设备(运行iOS 13 beta 2的iPhone 8 Plus)上运行基于SwiftUI的应用程序时,该应用程序拒绝启动,而是在启动时由于简单的(lldb)
而崩溃在Xcode调试器中.该应用程序已在模拟器中正常运行,并且Xcode没有提供有关该应用程序为何无法在真实设备上运行的有用信息.
Development had gone smoothly, considering all the software and systems involved were in beta. However, upon trying to run the SwiftUI-based app on a real device (iPhone 8 Plus, running iOS 13 beta 2), the application refused to start, instead crashing on launch with a simple (lldb)
in the Xcode debugger. The app had worked properly in the simulator, and Xcode has provided no helpful messages as to why the app will not run on a real device.
tl; dr 在iOS 13模拟器中成功运行后,SwiftUI应用在真正的iOS 13设备上启动时崩溃.
tl;dr after running successfully in the iOS 13 simulator, SwiftUI app crashes on launch on real iOS 13 device.
提前谢谢!
推荐答案
感谢 matt !
事实证明,问题只是Xcode 11 beta 1中的一个错误,阻止了基于SwiftUI的应用程序在真实设备上进行测试.升级到Xcode 11 beta 2可以解决此问题.
It turns out the issue was just a bug in Xcode 11 beta 1, preventing SwiftUI-based apps from being testing on real devices. Upgrading to Xcode 11 beta 2 resolved the issue.
这篇关于iOS 13 SwiftUI:应用在真实设备上启动时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!