2

打包iOS App并上架到TestFlight测试 - 南瓜慢说

 1 year ago
source link: https://www.cnblogs.com/larrydpk/p/17060086.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

开发者账号

首先需要注册一个开发者账号,不然什么都免谈。在手机Apple Developer上注册给钱就行了,个人开发者一年688元。

打包App

App开发好后,就可以通过XCode打包。打包前选好版本号,不要跟以前提交的一样,重复的Version和Build是无法提交的。当然第一次打包就不可能会重复了。

ios-build-and-testflight.build-info.png

在菜单栏选择Product,然后选Archive进行打包:

ios-build-and-testflight.product-archive.png

打包完成,会弹出以下对话框,就可以把应用上传到App Store Connect了。

ios-build-and-testflight.archive-list.png

上面这个对话框可以按下面的方式打开:

ios-build-and-testflight.open-archive-list

打包完后,点击Distribute App进行上传:

ios-build-and-testflight.distribute.png
ios-build-and-testflight.distribute-method
ios-build-and-testflight.distribute-way
ios-build-and-testflight.distribute-option
ios-build-and-testflight.distribute-sign
ios-build-and-testflight.distribute-ipa-info.png
ios-build-and-testflight.distribute-uploading.png

大概两三分钟,就上传完成了:

ios-build-and-testflight.distribute-uploaded

遇到的一些问题

上传后,App Store Connect还会有检验,比如我第一次上传就遇到以下问题:

946674-20230118160641880-172515627.png

因为我引用了一些库,它带有一些权限相关的接口,即使我实际没用上,但还是需要在Info.plist上添加相关说明。

<key>NSPhotoLibraryUsageDescription</key>
<string>This App no need</string>
<key>NSHealthShareUsageDescription</key>
<string>This App no need</string>
<key>NSHealthUpdateUsageDescription</key>
<string>This App no need</string>

参考: NSPhotoLibraryUsageDescription key must be present in Info.plist to use camera roll

同时打开通知推送,但实际不用。

946674-20230118160642338-40155047.png

解决以上问题并重新打包即可。

App Store Connect查看

上传成功后,可以登陆Connect查看:https://appstoreconnect.apple.com/apps

946674-20230118160642773-523744504.png

等待一段时间后,可能会出现下面的问题,这个小问题,只要在页面上填一下信息就好:

946674-20230118160643072-417482875.png

点击管理:

ios-build-and-testflight.connect-warn1
ios-build-and-testflight.connect-warn2
ios-build-and-testflight.connect-warn3
ios-build-and-testflight.connect-warn4

接着就是添加内测和外测群组。然后提交审核。内测不需要审核,外测需要:

ios-build-and-testflight.connect-reviewing

完成审核,就可以让外测人员测试了。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK