gpt4 book ai didi

ios - XCode 11.3、装有 iOS 13.2.2 的模拟器 iPhone X 和装有 watchOS 4.2 的 Apple Watch 42mm 时崩溃

转载 作者:行者123 更新时间:2023-12-01 15:46:27 26 4
gpt4 key购买 nike

Apple Watch 1 崩溃

dyld: lazy symbol binding failed: Symbol not found: _WKExtensionMain
Referenced from: /Users/User/Library/Developer/CoreSimulator/Devices/8C1ABCBE-4C0B-47BE-8169-0278C2BE766B/data/Containers/Bundle/Application/B0118FCC-A517-4339-8166-65A7D0D33217/Watch.app/PlugIns/Watch Extension.appex/Watch Extension
Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/watchOS 4.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/WatchKit.framework/WatchKit

dyld: Symbol not found: _WKExtensionMain
Referenced from: /Users/User/Library/Developer/CoreSimulator/Devices/8C1ABCBE-4C0B-47BE-8169-0278C2BE766B/data/Containers/Bundle/Application/B0118FCC-A517-4339-8166-65A7D0D33217/Watch.app/PlugIns/Watch Extension.appex/Watch Extension
Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/watchOS 4.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/WatchKit.framework/WatchKit

适用于 Apple Watch 2、3、4、5 的相同代码可以正常工作

谢谢你的帮助

最佳答案

Xcode 11 的发行说明说:

The WatchKit framework is no longer included in the iOS SDK. If you’re using WatchKit APIs from iOS, you need to remove this use. The WatchKit framework remains available on watchOS. If you’re using WatchKit APIs from iOS to infer availability of features on the paired Apple Watch, include information about your use case when you submit feedback to Feedback Assistant. (49707950)

https://developer.apple.com/documentation/xcode-release-notes/xcode-11-release-notes

您可以将build设置更改为旧版,以便现在可以使用。

PS:旧版设置在 Xcode 12b2 中已弃用

https://developer.apple.com/documentation/xcode-release-notes/xcode-12-beta-release-notes

我建议您不要使用旧版build设置。您缺少新构建系统的许多功能,并且在即将推出的 Xcode 版本中也已弃用

关于ios - XCode 11.3、装有 iOS 13.2.2 的模拟器 iPhone X 和装有 watchOS 4.2 的 Apple Watch 42mm 时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62812637/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com