4.上传到App Store Connect 在“Archives”窗口中,选择我们刚刚生成的归档文件,点击右侧的“Distribute App”按钮。 选择“App Store Connect”作为分发目标,点击“Distribute”。接着选择“Upload”,因为我们是自动管理证书和签名,所以只需要确保账号对应。如果是手动配置证书选择合适的证书。 Xcode将进行一系列的自动验证(如证书、描述文件等),并在一切正常的情况下开始上传IPA文件。
5.等待上传完成 上传过程中,Xcode会显示上传进度。上传成功后,你可以在App Store Connect中查看到应用。 在App Store Connect的“TestFlight”或“分发”选项卡中,我们可以对应用进行测试或提交审核。 优缺点 优点:Xcode的方式最为直接,省去了复杂的配置步骤,适合各个阶段和规模的团队和以及不需要自动化流程的开发团队。 缺点:仅适用于macOS环境,依赖Xcode工具,不能上传现有IPA,并且对CI/CD支持较弱。 方案二:通过命令行工具(altool)上传IPA 适用场景 对于需要自动化部署或在CI/CD流水线中集成的开发团队来说,使用命令行工具上传IPA时一个高效的选择。通过altool,我们可以直接就爱那个IPA上传到App Store Connect,而无需依赖Xcode的图形页面。这个方案特别适合那些使用CI/CD工具链(如Jenkins、Fastlane等)来自动化上传和发布流程的开发者。
在 manifest.json 文件的 “App常用其它设置” 中可勾选开启(注意HBuilder X 2.4以上为默认勾选),需提交云端打包才会生效
在低版本的HBuilder是默认勾选,可以将这个勾选给去掉,重新打包后提交应用到AppStore。
Guideline 5.1.2 - Legal - Privacy - Data Use and Sharing
We noticed you do not use App Tracking Transparency to request the user's permission before tracking their activity across apps and websites. The app privacy information you provided in App Store Connect indicates you collect data in order to track the user, including Device ID and Precise Location.
Starting with iOS 14.5, apps on the App Store need to receive the user’s permission through the AppTrackingTransparency framework before collecting data used to track them. This requirement protects the privacy of App Store users.
Next Steps
Here are two ways to resolve this issue:
- You can remove the tracking functionality from your app and update your app privacy information in App Store Connect.
- If you decide to continue tracking users, you must implement App Tracking Transparency and request permission before collecting data used to track the user or device.
Resources
- See Frequently Asked Questions about the new requirements for apps that track users.
- Learn more about designing appropriate permission requests.
2、登录苹果开发者中心,假如你已经按照第一步注册并缴费成为开发者,会见到Certificates菜单. 点击Certificates菜单,点蓝色加号,创建证书,假如不知道苹果开发者中心在哪里,可以看第一步。 记得创建证书的时候一定要选择ios distribution app store and ad hoc类型的证书,可千万别选择了apple distribution类型或选择了develpment类型的证书,选择错了你后面打包就会失败。
证书类型说明:IOS开发选择apple development或者ios app development 类型 ios 发布选择 apple distribution或者 ios distribution (app store and ad hoc) 开发推送证书选择 apple push notification service ssl (sandbox) 发布推送证书选择 apple push notification service ssl (sandbox & production) 其他证书不是很常用,可以自行百度各种证书说明。
4.测试设备:如果选择的类型是ios app development 类型,则全部测试设备旁边必须有测试设备并且勾选上,如果没有显示测试设备,点击框框下面的添加测试,然后把测试设备的udid输入,把ios设备连接到当前pc,会自动获得设备的udid。 如果app编译后无法安装到设备,可能是因为设备的udid没有添加进入描述文件,则需要添加描述文件后重新编译。