gpt4 book ai didi

iOS Build 在 Xcode 中运行良好,但 Appcenter.ms 失败

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:59:10 27 4
gpt4 key购买 nike

在 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: 473 duplicate symbols for architecture arm64clang: error: linker command failed with exit code 1 (use -v to see invocation)

** ARCHIVE FAILED **

有人知道我能做什么吗?这是一个link to my logs在添加的所有重复错误上。

最佳答案

转到您的build设置并搜索 No Common Blocks 并查看它的设置。如果设置为 YES,请尝试将其设置为 NO。某些版本的 xCode 默认为 YES。

关于iOS Build 在 Xcode 中运行良好,但 Appcenter.ms 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55657491/

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