AppCenter 反应本机 ios 构建失败:"The following build commands failed: CopyPlistFile"
AppCenter react native ios build fails:"The following build commands failed: CopyPlistFile"
我的应用是用 React Native 构建的。
我使用 Xcode 11 进行开发,使用 App Center 进行构建。
当我在我的 mac.
上本地构建应用程序时,我设法构建+存档该应用程序(并且 运行 它在我的设备上)
但是,当我在 App Center 上构建应用程序时,出现以下错误:
The following build commands failed:
CopyPlistFile /Users/runner/Library/Developer/Xcode/DerivedData/MyApp-glnwmpshuhlwezeyiaupgnbnizsy/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp.app/GoogleService-Info.plist /Users/runner/runners/2.160.1/work/1/GoogleService-Info.plist
(1 failure)
[error]Error: /usr/bin/xcodebuild failed with return code: 65
我确定我在 App Center 上使用旧版构建系统(就像在本地一样)。
添加对 "GoogleService-Info.plist" 文件的引用是不够的。您还必须确保它位于文件夹中。
你应该把文件复制到项目的根目录下(这样你就可以在根目录下的finder中看到了),然后删除之前对该文件的引用,重新添加文件(右键+添加文件)来自 xcode).
我的应用是用 React Native 构建的。
我使用 Xcode 11 进行开发,使用 App Center 进行构建。
当我在我的 mac.
上本地构建应用程序时,我设法构建+存档该应用程序(并且 运行 它在我的设备上)
但是,当我在 App Center 上构建应用程序时,出现以下错误:
The following build commands failed: CopyPlistFile /Users/runner/Library/Developer/Xcode/DerivedData/MyApp-glnwmpshuhlwezeyiaupgnbnizsy/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp.app/GoogleService-Info.plist /Users/runner/runners/2.160.1/work/1/GoogleService-Info.plist (1 failure) [error]Error: /usr/bin/xcodebuild failed with return code: 65
我确定我在 App Center 上使用旧版构建系统(就像在本地一样)。
添加对 "GoogleService-Info.plist" 文件的引用是不够的。您还必须确保它位于文件夹中。
你应该把文件复制到项目的根目录下(这样你就可以在根目录下的finder中看到了),然后删除之前对该文件的引用,重新添加文件(右键+添加文件)来自 xcode).