简体   繁体   English

无法在 Xcode 中存档

[英]Cannot Archive in Xcode

When I press " Archive " from " Product " in Xcode to Archive in order to submit my app to the Appstore, I get the message:当我在 Xcode 中按“ Product ”中的“ Archive ”来存档以将我的应用程序提交到 Appstore 时,我收到以下消息:

unable to read input file '/Users/[my name]/Downloads/GoogleService-Info.plist': fopen(/Users/[my name]/Downloads/GoogleService-Info.plist, rb Name]/Downloads/GoogleService-Info.plist': fopen(/Users/[my name]/Downloads/GoogleService-Info.plist, rb): Operation not permitted (1) The error message "Operation not permitted (1) appears and fails. unable to read input file '/Users/[my name]/Downloads/GoogleService-Info.plist': fopen(/Users/[my name]/Downloads/GoogleService-Info.plist, rb Name]/Downloads/GoogleService-Info.plist': fopen(/Users/[my name]/Downloads/GoogleService-Info.plist, rb): Operation not permitted (1) The error message "Operation not permitted (1)并失败。

I am having trouble submitting my app to Apple because of this.因此,我无法将我的应用程序提交给 Apple。 This error message does not appear when I build in simulator or on a real device.当我在模拟器或真实设备上构建时,不会出现此错误消息。

Today I received an email from Google Cloud Platform saying " Your free trial has expired. " I got an email saying I got this error after upgrading my GCP account, so the problem may be related to that, but I don't know why.今天我收到一封来自谷歌云平台的电子邮件,说“ Your free trial has expired. ”我收到一封电子邮件,说我在升级我的 GCP 帐户后收到此错误,所以问题可能与此有关,但我不知道为什么。 The API key had changed with the upgrade, and I have updated the app to reflect the change. API 密钥已随升级而更改,我已更新应用程序以反映更改。

How can I fix this problem?我该如何解决这个问题?
Thank you in advance for your answer.预先感谢您的回答。

It's not related to GCP account and API keys.它与 GCP 帐户和 API 密钥无关。 API keys are just Strings for compiler without any expiry or other information. API 密钥只是编译器的Strings ,没有任何到期或其他信息。

As the error says " unable to read input file '/Users/[my name]/Downloads/GoogleService-Info.plist' ".正如错误所说“无法读取输入文件'/Users/[my name]/Downloads/GoogleService-Info.plist' ”。 The builder while building the archive is unable to find the file at that current location.构建存档时的构建器无法在该当前位置找到文件。 You have either deleted the file or moved to a new location.您已删除文件或移动到新位置。

To fix that, remove the old file from Xcode;要解决这个问题,请从 Xcode 中删除旧文件; re-download the plist file and drag drop to root of Xcode.重新下载 plist 文件并将其拖放到 Xcode 的根目录。 Make sure to check on Copy Items when dialog appears.确保在出现对话框时检查Copy Items

Try archiving the project again.再次尝试归档项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM