VSTS Build Generation无法正常工作 [英] VSTS Build Generation not working

查看:1132
本文介绍了VSTS Build Generation无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要为测试人员生成构建,我们在项目中使用VSTS。当我们签出并使用xcode在我们的Mac中运行分支时,它工作正常。
但是当我尝试通过VSTS发布构建时,它会抛出如下错误并且构建失败。

To generate builds to testers we use VSTS in our project. When we checkout and run the branch in our mac with xcode, it works fine. But when i try to release a build through VSTS it throws error as below and the build fails.


ld:不能bitcode bundle中的重新分析对象文件:'无效的bitcode
版本(生产者:'902.0.39.2_0'Reader:'900.0.39.2_0')',使用
libLTO版本'LLVM版本9.0.0,( clang-900.0.39.2)'for
architecture arm64

ld: could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '902.0.39.2_0' Reader: '900.0.39.2_0')', using libLTO version 'LLVM version 9.0.0, (clang-900.0.39.2)' for architecture arm64

我明白这个问题可能是因为那里的事实是两个不同版本的编译器。我正在使用Xcode 9.2,构建上传源代码的服务器也有Xcode 9.2。还有一件事是,在过去我已经将beta Xcode版本9.4提交到分支机构。这可能会产生问题,或者是我在这里缺少的其他东西。

I understand that the issue might be because of the fact that there are two different versions of the compiler hanging around. I am using Xcode 9.2 and the server which builds the source code to upload also has Xcode 9.2. One more thing is, in past i have made a commit with beta Xcode version 9.4 to the branch. Can that create an issue or is it something else that i am missing here.

此外,我听到一些堆栈溢出和git建议,更新Xcode将解决问题。我很好,但是想把这个选项作为最后一个,因为有一些服务器和构建在服务器中排队,比如android和WebApp构建,我们已经通过VSTS自动化,这将暂时停止。

Also i hear from some stack-overflow and git suggestions that updating Xcode will fix the issue. I am fine with that but want to have that option as last because there are some servers and builds queued in the server like android and WebApp build which we have automated through VSTS which will be stopped momentarily.

非常感谢任何帮助或指示。

Any help or pointers are much appreciated.

推荐答案

当我试图创建一个使用二进制框架的项目存档(在我的案例中为Crashlytics / Fabric)。该框架是使用Xcode 9.4编译的,但我使用的是Xcode 9.2(看起来像900.0.39.2_0是Xcode 9.2而902.0.39.2_0是Xcode 9.4)。我通过在构建设置中暂时将启用Bitcode 设置为来解决此问题。

It happened to me when I was trying to create an archive of a project with a binary framework (in my case Crashlytics/Fabric). The framework was compiled using Xcode 9.4, but I was using Xcode 9.2 (looks like 900.0.39.2_0 is Xcode 9.2 and 902.0.39.2_0 is Xcode 9.4). I solved it by temporarily setting Enable Bitcode to No in Build Settings.

另一种解决方案是将二进制框架降级为旧版本(使用兼容版本的Xcode构建)。

Another solution would be to downgrade the binary framework to an older version (built with a compatible version of Xcode).

这篇关于VSTS Build Generation无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆