显示的错误可能是由于使用错误版本的 Xcode 导致的

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

我有一个已经运行的react-native项目,还配置了

bitrise
fastlane
部署。 我曾经使用
xcode 12.5
版本构建应用程序,但是随着新的苹果更新,有必要升级xcode版本,因为应用程序开始不使用这个xcode版本构建。所以我将
bitrise
堆栈更改为与本地计算机上使用的相同
(xcode 13.2.1 on OSX BigSur)

但是现在,构建失败并显示以下消息:

[14:04:40]: Exit status: 65
[14:04:40]: 
[14:04:40]: Maybe the error shown is caused by using the wrong version of Xcode
[14:04:40]: Found multiple versions of Xcode in '/Applications/'
[14:04:40]: Make sure you selected the right version for your project
[14:04:40]: This build process was executed using '/Applications/Xcode-13.2.1.app'
[14:04:40]: If you want to update your Xcode path, either
[14:04:40]: 
[14:04:40]: - Specify the Xcode version in your Fastfile
[14:04:40]: ▸ xcversion(version: "8.1") # Selects Xcode 8.1.0
[14:04:40]: 
[14:04:40]: - Specify an absolute path to your Xcode installation in your Fastfile
[14:04:40]: ▸ xcode_select "/Applications/Xcode8.app"
[14:04:40]: 
[14:04:40]: - Manually update the path using
[14:04:40]: ▸ sudo xcode-select -s /Applications/Xcode.app
[14:04:40]: 

经过一段时间的研究,我找到了 fastlane 的

xcversion
插件,可以选择正确的
xcode
版本。并将以下行添加到我的
Fastfile

...
xcversion(version: "13.2.1")
...

并将以下

gem
添加到我的
Gemfile

...
gem "xcode-install"
...

但是即使进行了上述更改,也会发生同样的错误。有人遇到过这个问题吗?

xcode continuous-integration fastlane bitrise
1个回答
0
投票

您好,我遇到了同样的问题,这个问题解决了吗?如果是的话,请分享您的解决方案

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