gpt4 book ai didi

ios - Xcode 运行成功但归档时出错

转载 作者:搜寻专家 更新时间:2023-11-01 05:39:10 25 4
gpt4 key购买 nike

我的应用程序由 Swift 和 Objective -C 文件编写。运行应用程序时一切正常,但是当我归档应用程序时,出现如下图的错误(错误文件是 Objective C 文件,它使用 Swift 代码): enter image description here

编辑:经过多次研究和尝试,然后流畅的步骤帮助我修复它:

  • 将build设置中的启用位码设置为“否”(它需要 Apple Watch 应用程序,但可选配 iPhone 应用程序)
  • 在build设置Preprocessor Macros -> Release中添加与目标名称匹配的目标名称到错误文件中

最佳答案

在我的 Swift 项目中,将 use_frameworks! 添加到 Podfile 中就可以了。 I answered this in another post.

关于ios - Xcode 运行成功但归档时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32816683/

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