• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

iOS Build 在 Xcode 中很好,但 Appcenter.ms 失败

[复制链接]
菜鸟教程小白 发表于 2022-12-11 22:41:55 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题

在 Xcode 中运行、存档和构建我的应用程序给了我一个 multiple commands generated 错误。

所以我找到了 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 arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

** ARCHIVE FAILED **

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



Best Answer-推荐答案


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

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

回复

使用道具 举报

懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注0

粉丝2

帖子830918

发布主题
阅读排行 更多
广告位

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap