找不到 SwiftUI 符号:_$s7SwiftUI9TextFieldVAA4ViewAAMc Xcode 11 beta 3 [英] SwiftUI Symbol not found: _$s7SwiftUI9TextFieldVAA4ViewAAMc Xcode 11 beta 3
问题描述
我正在开发一个简单的基于 SwiftUI 的应用程序.我只有十几个 UI 元素.当我尝试在设备上启动时,应用程序中止并显示以下内容:
I've got a simple SwiftUI-based app I'm working on. I just have a dozen or so UI elements. When I try to launch on device, the app aborts with the following:
dyld: Symbol not found: _$s7SwiftUI9TextFieldVAA4ViewAAMc
构建/运行环境:
Xcode 11.0 测试版 2 (11M337n)
Xcode 11.0 beta 2 (11M337n)
macOS Catalina 10.15 测试版 (19A501i)
macOS Catalina 10.15 Beta (19A501i)
设备是运行 iOS 13.0 (17A5522f)(beta 3)的 iPhone XS Max.
Device is iPhone XS Max running iOS 13.0 (17A5522f), which is beta 3.
我认为这是我的项目所特有的,所以我从模板中创建了一个新模板——因此您可以复制以下内容:
I thought this was something specific to my project, so I created a new one from the template -- so here's how you can reproduce:
1. Open Xcode
2. File -> New -> Project
3. From the iOS tab, choose Single View App
4. Enter a Product Name, and make sure "Use SwiftUI" is checked.
5. Next, save the project
6. Build and run
同样的问题.除了上面的行,没有其他错误输出.
Same issue. There's no additional error output other than the line above.
推荐答案
您无法在装有 iOS13 beta 3 的设备上运行使用 Xcode beta 2 编译的应用.将您的 Xcode 升级到 beta 3,一切都应该没问题.
You cannot run an app compiled with Xcode beta 2, on a device with iOS13 beta 3. Upgrade your Xcode to beta 3 and all should be good.
这篇关于找不到 SwiftUI 符号:_$s7SwiftUI9TextFieldVAA4ViewAAMc Xcode 11 beta 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!