iOS Build在Xcode中表现不错,但Appcenter.ms失败了

问题描述 投票:2回答:1

在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架构arm64 clang的重复符号:错误:链接器命令失败,退出代码为1(使用-v查看调用)

**存档失败**

有没有人对我能做什么有任何想法?这是关于所有重复错误的link to my logs

ios xcode
1个回答
0
投票

转到“构建设置”并搜索“无公共块”并查看其设置。如果设置为YES,请尝试将其设置为NO。某些版本的xCode默认为YES。

© www.soinside.com 2019 - 2024. All rights reserved.