美文网首页
Xcode11后如何上传ipa

Xcode11后如何上传ipa

作者: 择一城终老_347e | 来源:发表于2020-12-10 17:44 被阅读0次

    背景说明

    Xcode11之前可以直接使用Application Loader 上传ipa

    从Xcode11开始,发现Application Loader不见了,那么如何上传ipa呢

    1. 创建密钥

    访问权限选择App管理即可

    创建后保存密钥(AuthKey_***.p8 仅可下载一次,下载后妥善保存)

    2. 将p8文件复制到指定文件夹

    将p8文件拷贝到 /Users/当前用户/.private_keys 目录下

    如果.private_keys文件夹不存在,请创建: mkdir .private_keys

    3. 在命令行中使用xcrun检验ipa

    xcrun altool --validate-app -f ipa包路径 -t ios --apiKey 密钥ID --apiIssuer Issuer ID --verbose

    成功后会有提示

    No errors validating archive at '/Users/ios/Desktop/doushou_ipa/ds.ipa'.

    2020-12-10 17:05:58.877 altool[24870:846958] ‘IosApplicationArchiveExpander’, cleanupDestinationDirectory: ‘/var/folders/ry/nqxys0jn6z0kgrd47mc2f5w0000gn/T/ds-1.ipa’

    2020-12-10 17:05:58.899 altool[24870:846958] ‘IosApplicationArchiveExpander’, cleanupDestinationDirectory: ‘/var/folders/ry/nqxys0jn6zq0kgrd47mc2f5w0000gn/T/ds.ipa’

    4. 使用命令行上传ipa

    参数同上:

    xcrun altool --upload-app -f xxx -t ios --apiKey xxx --apiIssuer xxx --verbose

    成功后会有提示

    020-12-10 17:13:08.873 altool[25232:848718] Package Summary:

    2020-12-10 17:13:08.874 altool[25232:848718] 

    2020-12-10 17:13:08.874 altool[25232:848718] 1 packages were uploaded successfully:

    2020-12-10 17:13:08.874 altool[25232:848718] /var/folders/ry/nqxys0jn6zq0kgrd47mc2f5w0000gn/T/17ED6C5E-BA72-4044-A82F-B0C22ED9672B/1540891223.itmsp

    2020-12-10 17:13:08.912 altool[25232:848718] [2020-12-10 17:13:08 CST] <main> DBG-X: Returning 0

    No errors uploading '/Users/ios/Desktop/doushou_ipa/ds.ipa'

    2020-12-10 17:13:09.044 altool[25232:848718] ‘IosApplicationArchiveExpander’, cleanupDestinationDirectory: ‘/var/folders/ry/nqxys0jn6zq0kgrd47mc2f5w0000gn/T/ds.ipa’

    2020-12-10 17:13:09.060 altool[25232:848718] Cleaning up files.…

    2020-12-10 17:13:09.070 altool[25232:848718] Deleted temporary package at ‘/var/folders/ry/nqxys0jn6zq0kgrd47mc2f5w0000gn/T/17ED6C5E-BA72-4044-A82F-B0C22ED9672B/1540891223.itmsp’.

    2020-12-10 17:13:09.070 altool[25232:848718] -[ITunesTransporter dealloc] <ITunesTransporter: 0x7f95e2d9b110>

    2020-12-10 17:13:09.072 altool[25232:848718] Deallocating <ITunesSoftwareServiceWorkSeriesFactory: 0x7f95e2f130c0>

    相关文章

      网友评论

          本文标题:Xcode11后如何上传ipa

          本文链接:https://www.haomeiwen.com/subject/txsrgktx.html