11iOS 打包
22===
33
4- iOS项目打包前,需要先准备 ` 开发者账号 ` 、 ` 需要上线的项目 ` 及 ` mac电脑和xcode ` 。
4+ > 🚧 ` 打包前需要准备工具 ` <!-- rehype:style=color: white; background: #1c7bd0;-->
5+ > 1 . 🪲 iOS项目打包前,需要先准备 ` 开发者账号 ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6--> 、` 需要打包的项目 ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6--> 及 ` mac电脑和Xcode ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6--> 。
6+ > 2 . 📦 如果没有开发者账号,可进入[ Developer苹果开发者官网] ( https://developer.apple.com ) ,点击“Account”登录/注册会员。
7+ <!--rehype:style=border-left: 8px solid #ffe564;background-color: #ffe56440;padding: 12px 16px;-->
58
6- ## 一. 开发者账号
7-
8- 打包前需要有一个苹果开发者账号,要是没有,可进入[ Developer苹果开发者官网] ( https://developer.apple.com ) ,点击“Account”登录/注册会员。
9-
10- ## 二. 配置iOS证书
9+ ## 一. 配置iOS证书
1110### ` 配置证书 ` <!-- rehype:style=color: white; background: #1c7bd0;-->
1211
13- 登陆成功后,登录开发者账号,进入` Certificates ` , ` Identifiers & Profiles ` ,选择` Certificates ` 新建。
12+ 登陆成功后,登录开发者账号,进入` Certificates ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6 --> , ` Identifiers & Profiles ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6 --> ,选择` Certificates ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6 --> 新建。
1413
1514![ ] ( ./img/01.png ) <!-- rehype:style=max-width: 650px;width: 100%;-->
1615
@@ -26,12 +25,79 @@ iOS项目打包前,需要先准备 `开发者账号` 、 `需要上线的项
2625
2726![ ] ( ./img/03.png ) <!-- rehype:style=max-width: 650px;width: 100%;-->
2827
29- 进入钥匙串访问,通过` 证书助理 ` - 选择` 从证书颁发机构请求 ` 申请证书。
28+ 进入钥匙串访问,通过` 证书助理 ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6 --> - 选择` 从证书颁发机构请求 ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6 --> 申请证书。
3029
3130![ ] ( ./img/04.png ) <!-- rehype:style=max-width: 650px;width: 100%;-->
3231
33- 本地证书生成后,回到 ` Certificates, Identifiers & Profiles ` - ` Create a New Certificate ` 选择该文件即可进入下一步,选择已生成的本地证书创建新的证书 。
32+ 填写常用邮箱及姓名,选择 ` 保存到磁盘 ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6 --> ,生成本地证书文件 。
3433
3534![ ] ( ./img/05.png ) <!-- rehype:style=max-width: 650px;width: 100%;-->
3635
37- 文档正在建设中...
36+ 本地证书生成后,回到` Certificates, Identifiers & Profiles ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6--> -` Create a New Certificate ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6--> 选择该文件即可进入下一步,选择已生成的本地证书创建新的证书。
37+
38+ ![ ] ( ./img/06.png ) <!-- rehype:style=max-width: 650px;width: 100%;-->
39+
40+ ### ` 创建APP IP ` <!-- rehype:style=color: white; background: #1c7bd0;-->
41+
42+ 如果没有可用的APP IP,可参考[ 发布iOS应用商店] ( https://uimjs.github.io/#/docs/app-store/ios ) 中第一章节创建新的 AppID,。
43+
44+ > 开发者账号注册完成,相关证书及配置完成之后,即可准备用` Xcode ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6--> 对项目进行打包。
45+ <!--rehype:style=border-left: 8px solid #ffe564;background-color: #ffe56440;padding: 12px 16px;-->
46+
47+ ## 二. Xcode配置iOS证书和打包环境
48+
49+ ### ` Xcode打开需要打包的项目 ` <!-- rehype:style=color: white; background: #1c7bd0;-->
50+
51+ 项目打开后,首先需要选择` Xcode ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6--> 中的` Preferences ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6--> 中登录已注册好的开发者账号。
52+
53+ ![ ] ( ./img/07.png ) <!-- rehype:style=max-width: 650px;width: 100%;-->
54+
55+ 账号登录成功后,确保是否存在已配置好的打包证书,证书配置完成可进行之后的设置。
56+
57+ ![ ] ( ./img/08.png ) <!-- rehype:style=max-width: 650px;width: 100%;-->
58+
59+ ### ` 配置provisioning profile与证书 ` <!-- rehype:style=color: white; background: #1c7bd0;-->
60+
61+ 确保` General ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6--> 中,项目` Bundle Identifier ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6--> 与申请的证书APP IDs、描述文件的Bundle Identifier相同。
62+
63+ ![ ] ( ./img/09.png ) <!-- rehype:style=max-width: 650px;width: 100%;-->
64+
65+ 点击` Signing & Capabilities ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6--> 中,选择` 项目开发证书 ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6--> 及填写Bundle Identifier。
66+
67+ ![ ] ( ./img/10.png ) <!-- rehype:style=max-width: 650px;width: 100%;-->
68+
69+ > 打包之前,现将模式调整为` Generic IOS Device ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6--> 模式
70+ <!--rehype:style=border-left: 8px solid #ffe564;background-color: #ffe56440;padding: 12px 16px;-->
71+
72+ ![ ] ( ./img/11.png ) <!-- rehype:style=max-width: 650px;width: 100%;-->
73+
74+ ### ` 开始打包 ` <!-- rehype:style=color: white; background: #1c7bd0;-->
75+
76+ 点击` Product ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6--> 中,选择` Archive ` <!-- rehype:style=color: #1c7bd0; background: ##E6E6E6--> 进行打包。
77+
78+ ![ ] ( ./img/12.png ) <!-- rehype:style=max-width: 650px;width: 100%;-->
79+
80+ ### ` 打包完成输出包 ` <!-- rehype:style=color: white; background: #1c7bd0;-->
81+
82+ 打包完成后自动弹出输出选择框。
83+
84+ ![ ] ( ./img/13.png ) <!-- rehype:style=max-width: 650px;width: 100%;-->
85+
86+ > 🚧 企业证书打包 选Enterprise,一版测试打包选择第二项,可直接上传到蒲公英进行发布。
87+ <!--rehype:style=border-left: 8px solid #ffe564;background-color: #ffe56440;padding: 12px 16px;-->
88+
89+ ![ ] ( ./img/14.png ) <!-- rehype:style=max-width: 650px;width: 100%;-->
90+
91+
92+ 选择自己的开发证书。
93+
94+ ![ ] ( ./img/15.png ) <!-- rehype:style=max-width: 650px;width: 100%;-->
95+
96+ 之后一直点击下一步即可。
97+
98+ ![ ] ( ./img/16.png ) <!-- rehype:style=max-width: 650px;width: 100%;-->
99+ ![ ] ( ./img/17.png ) <!-- rehype:style=max-width:300px;width: 100%;-->
100+
101+ > 🚧 输出完成后即可在所选的保存路径看到安装包。
102+ <!--rehype:style=border-left: 8px solid #ffe564;background-color: #ffe56440;padding: 12px 16px;-->
103+
0 commit comments