使用Xcode 13.3 -13.4启用比特码时,当项目使用异步/等待iOS 14时

发布于 2025-01-29 18:16:22 字数 651 浏览 4 评论 0原文

我的应用程序使用并发框架和目标iOS 14,并且所有带有启用比特代码的切换设置为“是”,在编译后显示了以下警告(使用SPM用于依赖项):

ld:警告:所有比特码将被丢弃,因为'/build/products/debug-iphonesimulator/firebasefirestore.o'构建了没有比特码。您必须使用启用比特码(Xcode设置enable_bitcode)重建它,从供应商获得更新的库,或禁用此目标的比特码。

Xcode 13.3发行说明:

已知问题:导出一个使用Swift的并发功能的应用程序中的档案库中的并发功能可能会在应用程序目标iOS 13.0 - iOS 14.7,WatchOS 6.0 - WatchOS 7.6或TVOS 13.0 - 13.0 - 14.7时失败。 (89271047) 解决方案:从档案中导出应用程序或禁用比特码(仅iOS)时,请取消选中盒子的重建。

在我看来,由于并发功能的向后兼容性,Xcode Force会禁用了比特码。 有没有一种方法来使用异步/等待并启用比特码?(Xcode 13.4没有解决问题)

My app uses a concurrency framework and targets iOS 14 and all toggles with Enable Bitcode in Build Settings are set to YES, after compiling it shows the following warnings (using SPM for dependencies):

ld: warning: all bitcode will be dropped because '/Build/Products/Debug-iphonesimulator/FirebaseFirestore.o' was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target.

Xcode 13.3 Release Notes:

Known Issues: Exporting an app that uses Swift’s concurrency features from an archive with bitcode might fail when the app targets iOS 13.0 – iOS 14.7, watchOS 6.0 – watchOS 7.6, or tvOS 13.0 – 14.7. (89271047)
Workaround: Either uncheck the box Rebuild from bitcode when exporting the app from an archive or disable bitcode (iOS only).

It seems to me that Xcode force disables bitcode because of the backward compatibility of the concurrency feature. Is there a way to use async/await and enable bitcode? (Xcode 13.4 didn't solve the issue)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

少女情怀诗 2025-02-05 18:16:22

今天,我将 adservices.framework 添加到与库构建阶段的链接二进制,现在我可以在存档时打开包含bitcode 切换。因此,问题必须不是Xcode

Today I added AdServices.framework to Link Binary With Libraries Build Phase and now I can switch on the Include Bitcode toggle when archiving. So the problem must be not with an Xcode

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文