1

我不知何故发现自己试图通过 bitrise 构建一个应用程序以部署到 testflight。我完全是个新手,所以为可能看起来很愚蠢的事情道歉。

Bitrise 设法构建了所有东西,但最终拒绝部署,在日志中引用以下内容:

[06:06:44]: [Transporter Error Output]: description length:10500450
[06:08:55]: [Transporter Error Output]: ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS 11.4 SDK. All iOS apps submitted to the App Store must be built with the iOS 11 SDK or later, included in Xcode 9 or later. Further, starting March 2019, all iOS apps submitted to the App Store must be built with the iOS 12.1 SDK or later, included in Xcode 10.1 or later."
[06:08:55]: Transporter transfer failed.
[06:08:55]: 
[06:08:55]: description length:10500450
ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS 11.4 SDK. All iOS apps submitted to the App Store must be built with the iOS 11 SDK or later, included in Xcode 9 or later. Further, starting March 2019, all iOS apps submitted to the App Store must be built with the iOS 12.1 SDK or later, included in Xcode 10.1 or later."

好吧,我想,我会克隆 repo,在 xcode 中打开项目,从而更新 sdk 版本。这似乎意味着更多的问题......当我尝试在 Xcode 中构建项目时,我遇到以下错误:

Users/[...]/ios/Pods/Target Support Files/Pods-x/Pods-x.debug.xxconfig: unable to open file (in target "x" in project "x")(in target 'x')

除此之外,还有一些问题,包括:

The file "Pods-x.release.xcconfig" couldn't be opened because there is no such file.

如果我忽略此错误,将其推送并在 bitrise 上重新构建,我会得到以下信息:

Resolving dependencies of `Podfile`
[!] CocoaPods could not find compatible versions for pod "DoubleConversion":
  In snapshot (Podfile.lock):
    DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
  In Podfile:
    DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
None of your spec sources contain a spec satisfying the dependencies: `DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`), DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)`.
You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

因此,看起来 CocoaPods 安装出现了严重问题。事实上,当我检查文件时,根本没有 Pods 文件夹——只有 Podfile 和 Podfile.lock。(我不知道没有这个之前它会如何构建得很好?)

pod install因此,我尝试通过从 iOS 文件夹中的终端运行将 CocoaPods 重新安装到项目中。我在终端中遇到同样的错误:No such file or directory @ rb_sysopen -- /Users/[...]DoubleConversion.podspecpod update产生相同的错误。此外,有人告诉我有一个新版本的 CocoaPods 可用。我使用 安装它sudo gem install cocoapods,它会在 ios 中生成一个带有子文件夹的 Pods 文件夹,但都是空的。

如你所知,我有点困惑。如果项目文件中缺少 CocoaPods 功能的固有部分,那么它之前是如何构建的?我猜这是由于 CocoaPods 被安装为 bitrise 工作流程的一部分(确实存在)——但是,如果是这样,那现在导致它在构建过程中失败怎么办?尝试打开项目以更新引入此问题的 SDK 是什么意思?

我敢肯定这一切似乎有点愚蠢(至少我希望如此)。感谢您的耐心等待,我们将不胜感激任何帮助。

4

0 回答 0