我正在使用 Bitrise 构建一个 Ionic 应用程序。如何轻松为苹果开发者完成复杂的代码签名部分,以便将应用程序部署到 iOS?
2 回答
将您的 Apple ID 添加到 Xcode
启动 Xcode
单击 Xcode > 首选项
在窗口顶部选择帐户。
点击左下角的+并选择添加Apple ID...
将出现一个对话框。添加您的 Apple ID 和密码,然后选择登录。
(如果您没有帐户,您可以通过选择创建 Apple ID 来创建 Apple ID)
导出您的 Apple ID 证书
单击 Xcode > 首选项
选择您的 Apple ID 和您的团队
单击管理证书
右键单击每个证书,然后单击导出证书
通过将平台添加到 Ionic 项目来创建 Xcode 应用程序
克隆您的 Ionic 应用程序
在终端中打开克隆的项目文件夹
跑ionic cordova platform add ios
添加平台后进入项目文件夹,然后:platforms/ios/PROJECTNAME.xcodeproj
双击项目以在 Xcode 中打开它
使用 Apple 创建 AppID
转到:https ://developer.apple.com/account/ios/identifier/bundle
创建一个新的应用程序
重启 Xcode
单击 Xcode 中的顶级项目名称
在“签名”部分中,单击“团队”并选择一个团队
使用 Apple 创建配置文件
转到:https ://developer.apple.com/account/ios/profile/create
创建配置文件
使用 Xcode 下载配置文件
选择 Xcode > 首选项菜单。
在窗口顶部选择帐户。
选择您的 Apple ID 和您的团队,然后选择下载手动描述文件。
转到 ~/Library/MobileDevice/Provisioning Profiles/ 你的配置文件应该在那里。
值得一提的是,一旦你生成了 Xcodeionic cordova platform add ios
项目( //blog.bitrise.io/ios-auto-provision-step