[英]How do I extend the amount of time my provisioning certificate is valid for my iOS app?
Background背景
I've written an iOS app which is for "Home Use" at this time.我已经编写了一个 iOS 应用程序,它现在是“家庭使用”的。 I have a locally provisioned certificate in XCode for my app so I can install it on my devices.
我在 XCode 中为我的应用程序提供了本地配置的证书,因此我可以将其安装在我的设备上。 I've been running the app for 6 or 7 days on my local iPhone.
我已经在本地 iPhone 上运行该应用程序 6 或 7 天了。
App No Longer Available应用不再可用
Today I got the error "App No Longer Available" when I try to run it.今天,当我尝试运行它时,出现错误“应用程序不再可用”。 I found the SO Entry that lists reason why this might be happening , but I know why.
我找到了列出可能发生这种情况的原因的 SO 条目,但我知道原因。 I checked XCode and discovered that the provisioning cert only lasts 6 days.
我检查了 XCode,发现配置证书仅持续 6 天。 So annoying!!
很烦人!! 🤬
🤬
Provision App For Longer?提供应用程序更长时间?
However, I don't know how to provision the app for longer?但是,我不知道如何配置应用程序更长时间?
How do I set up the cert to last longer?如何设置证书以持续更长时间?
Can this only be done by having a full apple dev account?这只能通过拥有完整的苹果开发帐户来完成吗?
Really hope not.真希望不会。
Finally found the definitive answer at: iOS App says "No longer Available" after my license had been expired?终于在我的许可证过期后找到了明确的答案:iOS App 说“不再可用”? (Though it is not the answer to the other question there.)
(虽然这不是那里另一个问题的答案。)
If you don't have an official Apple Dev Account provisioning will only last for 1 week.如果您没有正式的 Apple 开发帐户,则配置只能持续 1 周。 The app will expire every 7 days (or less in some cases -- depending upon the day the initial certificate was created).
该应用程序将每 7 天到期(在某些情况下或更少 - 取决于创建初始证书的日期)。
You will be able to provision your app for up to 1 year.您将能够配置您的应用程序长达 1 年。
This is gleaned from other comments on the linked answer.这是从对链接答案的其他评论中收集的。 It may not be true any more.
这可能不再是真的了。
############################### ###############################
Here's a partial answer that I got to through a lot of searching.这是我通过大量搜索得到的部分答案。
I found out that in XCode, you can go to :我发现在 XCode 中,你可以去:
XCode => Preferences... XCode => 首选项...
A dialog will appear and then you should choose the Accounts
tab将出现一个对话框,然后您应该选择“
Accounts
”选项卡
There is a manage certificates button here.这里有一个管理证书按钮。 click it.
点击它。
You can click the small [+] button on the lower left but it is really unhelpful.您可以单击左下角的小 [+] 按钮,但这确实无济于事。
This adds a certificate, but notice that you cannot tell when the expiration date is and the Status
column shows no information at all.这会添加一个证书,但请注意,您无法判断到期日期是什么时候,并且“
Status
列根本不显示任何信息。
There is no way to select or edit any of the certs here.此处无法选择或编辑任何证书。
This is ridiculously complicated.这非常复杂。 I'm sure it is just to push devs to create an official apple account & pay the fee.
我敢肯定这只是推动开发者创建一个官方苹果帐户并支付费用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.