【发布时间】:2019-04-12 18:16:17
【问题描述】:
在 Xcode 中运行、存档和构建我的应用程序给了我一个 multiple commands produced 错误。
所以我发现了这个Github Link,他们说要在其中添加以下内容:
post_install do |installer|
installer.pods_project.targets.each do |target|
# The following is needed to ensure the "archive" step works in XCode.
# It removes React & Yoga from the Pods project, as it is already included in the main project.
# Without this, you'd see errors when you archive like:
# "Multiple commands produce ... libReact.a"
# "Multiple commands produce ... libyoga.a"
targets_to_ignore = %w(React yoga)
if targets_to_ignore.include? target.name
target.remove_from_project
end
end
end
这让我可以归档我的应用程序并通过 XCode 在设备上成功运行它。但是,当尝试在 Appcenter.ms 上构建它时,我收到以下错误,老实说,我不知道该怎么做,因为它在 XCode 上运行良好,所以我无法针对它进行测试。
ld:架构 arm64 的 473 个重复符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
** 存档失败 **
有人对我能做什么有任何想法吗?这是一个link to my logs,用于添加所有重复的错误。
【问题讨论】: