The latest application process for ios listing and certificate

The latest application process for ios listing and certificate

When developing apps using uniapp frameworks such as hbuilderx or apicloud, you need an Android certificate or an ios certificate. If you are developing an ios application, after packaging it into an ipa package, you also need to put the ipa on the app store.

Among the methods recommended by Apple's official website, generating ios certificates and listing ipa requires the use of Apple computers and xcode. Purchasing an Apple computer and installing xcode is too troublesome and cumbersome for developers developing uniapp or html 5+ applications.

Therefore, our article focuses on how to apply for an iOS certificate through a Windows computer and how to put it on the shelves through a Windows computer.

First of all, applying for an iOS certificate and listing requires an Apple developer account. If you don’t have an iOS Apple developer account yet, you can refer to this article to apply for a developer account at the Apple Developer Center:

https://blog.csdn.net/weixin_48914851/article/details/128963761

After opening a developer account, you can create an ios certificate.

The application process for Apple p12 certificate is as follows:

1. Log in to the Apple Developer Center, enter the Certificates menu in the console, and click the blue plus sign on the right to start creating a cer certificate.

When creating a certificate, it will ask us to choose the type of certificate. Here we choose the ios distribution ad hoc and app store type. Be careful not to choose the apple type or development type.

  1. Then during the process of creating the cer certificate, it will pop up this interface asking us to upload a csr file.

3. Since generating the cer file requires a Mac computer, we do not use a Mac computer here. We use the domestic Banana Cloud Editor to create this CSR file. The address of Banana Cloud Editor:

香蕉云编:https://www.yunedit.com

Log in to the console of Banana Cloud Editor, click on the ios certificate generation menu, you can see the new CSR file function, you can create a csr file, and then download the csr file to our local computer.

4. Go back to the Apple Developer Center and upload the csr file to generate the cer certificate file. After generating the cer file, download the cer certificate file to our local computer.

5. Return to Banana Cloud Editor and upload this cer file to generate a p12 certificate.

好了,通过上述的流程,即可生成p12证书。注意,这个p12证书,是可以同一个开发者账号的多个应用共同使用的(不同的应用证书profile文件不同即可)

下面,我们讲述下如何生成证书profile文件,因为打包除了需要证书外,还需要证书profile文件:

  1. 登录苹果开发者中心,点击Identifiers(appId),查看appId有没有被创建,假如没有创建,则创建一个appId,注意这个appId要跟我们再uniapp打包时填写的包名一致。比如:com.test.xxx.app

  1. 点击profiles菜单,开始创建最简单的profile文件,由于创建app store类型(发版类型)最简单,这里创建的时候,我们先选择app store类型,先学会生成app store类型的profile。创建的过程中是需要选择appId和cer证书的,这里千万别选错哦,这里假如你有两个cer证书,很多人会选错,后面打包就会提示profile和证书不匹配。

3. 通过上面两步即可生成profile文件,但是这个profile文件只能打包上架的ipa。假如我们要上架前放到自己的手机去测试,则需要创建ad hoc类型的profile文件,创建这种类型的profile文件需要我们提供测试设备(手机)的udid,我们可以使用香蕉云编右上角工具栏提供的获取udid的工具扫码去获取udid。

好了,通过上面的步骤,我们已经可以生成p12证书和证书profile文件了,我们现在已经可以打包出ipa文件了。

下面,就是讲述如何将ipa文件上架了。

ipa文件上架的流程如下:

  1. 登录苹果开发者中心,在控制台首页进入app store connect,进入app管理界面,查看app有没有创建。假如还没创建app,要先创建app,app的bundle ID需要跟上面描述文件绑定的appId一致

  1. 创建完app后,点击app,进入app详情,填写各种上架资料,其中有一项是提供各种尺寸手机的app截图,假如你没有这么多尺寸的真机截图,你可以使用香蕉云编的合成图片功能来合成各种尺寸的截图。

  1. 填写app资料的上架资料的过程中,还有一项是上传构建版本的需求。

原本这个上传是需要mac电脑安装xcode来上传的,这里我们可以借助上面提到的香蕉云编这个工具来上传,界面如下:

在上传的过程中,它会要求我们提供苹果开发者账号的用户名和上传专用密码,注意,这个专用密码并不是登录密码,这个专用密码的设置方法可以参考香蕉云编密码输入框下面的教程来设置/获取.

大概经过10多分钟的等待,即可在香蕉云编看到上传成功。然后大概再过30分钟,就可以在app store的构建版本里看到上传的应用了。然后再在app store里填完其他的资料,提交上架人工审核即可。

好了,证书的创建和上架流程全说完了,谢谢大家。

Guess you like

Origin blog.csdn.net/h5xiaoyu/article/details/129054119