{"id":29012,"date":"2024-07-02T11:56:11","date_gmt":"2024-07-02T03:56:11","guid":{"rendered":"https:\/\/www.zhidianwl.net\/zhidianwl\/?p=29012"},"modified":"2024-07-02T11:56:11","modified_gmt":"2024-07-02T03:56:11","slug":"%e5%b0%81%e8%a3%85ipa%e6%9c%89%e5%93%aa%e4%ba%9b%e6%ad%a5%e9%aa%a4%e5%91%a2","status":"publish","type":"post","link":"https:\/\/www.zhidianwl.net\/zhidianwl\/2024\/07\/02\/%e5%b0%81%e8%a3%85ipa%e6%9c%89%e5%93%aa%e4%ba%9b%e6%ad%a5%e9%aa%a4%e5%91%a2\/","title":{"rendered":"\u5c01\u88c5ipa\u6709\u54ea\u4e9b\u6b65\u9aa4\u5462?"},"content":{"rendered":"

\u5728iOS\u5f00\u53d1\u4e2d\uff0cIPA\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u5e94\u7528\u5206\u53d1\u683c\u5f0f\uff0c\u5b83\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u3001\u8d44\u6e90\u6587\u4ef6\u3001\u7b7e\u540d\u6587\u4ef6\u7b49\uff0c\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7iTunes\u6216\u8005\u5176\u4ed6\u5206\u53d1\u5de5\u5177\u5b89\u88c5\u5230iOS\u8bbe\u5907\u4e0a\u3002\u90a3\u4e48\uff0c\u5982\u4f55\u5c01\u88c5\u4e00\u4e2aIPA\u5462\uff1f<\/p>\n

\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u4e86\u89e3\u4e00\u4e0bIPA\u7684\u7ed3\u6784\u3002IPA\u6587\u4ef6\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u538b\u7f29\u6587\u4ef6\uff0c\u5176\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n

“`<\/p>\n

Payload\/<\/p>\n

MyApp.app\/<\/p>\n

Info.plist<\/p>\n

MyApp<\/p>\n

…<\/p>\n

…<\/p>\n

“`<\/p>\n

\u5176\u4e2d\uff0c`Payload`\u6587\u4ef6\u5939\u4e0b\u662f\u4e00\u4e2a\u4e2a\u5e94\u7528\u7a0b\u5e8f\uff0c\u6bcf\u4e2a\u5e94\u7528\u7a0b\u5e8f\u90fd\u662f\u4ee5`.app`\u7ed3\u5c3e\u7684\u6587\u4ef6\u5939\uff0c\u91cc\u9762\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u3001\u8d44\u6e90\u6587\u4ef6\u7b49\u3002`Info.plist`\u662f\u4e00\u4e2aXML\u683c\u5f0f\u7684\u6587\u4ef6\uff0c\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u4e00\u4e9b\u57fa\u672c\u4fe1\u606f\uff0c\u4f8b\u5982\u5e94\u7528\u7a0b\u5e8f\u7684\u540d\u79f0\u3001\u7248\u672c\u53f7\u3001\u56fe\u6807\u7b49\u3002`MyApp`\u662f\u5e94\u7528\u7a0b\u5e8f\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002<\/p>\n

\u90a3\u4e48\uff0c\u5982\u4f55\u751f\u6210\u4e00\u4e2aIPA\u5462\uff1f\u4e00\u822c\u6765\u8bf4\uff0c\u6709\u4e24\u79cd\u65b9\u6cd5\uff1a\u624b\u52a8\u6253\u5305\u548c\u81ea\u52a8\u5316\u6253\u5305\u3002<\/p>\n

\u624b\u52a8\u6253\u5305\u7684\u8fc7\u7a0b\u6bd4\u8f83\u7e41\u7410\uff0c\u9700\u8981\u8fdb\u884c\u4e00\u7cfb\u5217\u7684\u64cd\u4f5c\uff0c\u5305\u62ec\u7f16\u8bd1\u4ee3\u7801\u3001\u6253\u5305\u8d44\u6e90\u3001\u751f\u6210\u7b7e\u540d\u6587\u4ef6\u7b49\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u624b\u52a8\u6253\u5305\u7684\u6d41\u7a0b\uff1a<\/p>\n

1. \u521b\u5efa\u4e00\u4e2a\u65b0\u7684Xcode\u5de5\u7a0b\uff0c\u5e76\u8bbe\u7f6e\u597d\u5e94\u7528\u7a0b\u5e8f\u7684\u57fa\u672c\u4fe1\u606f\uff0c\u4f8b\u5982\u5e94\u7528\u7a0b\u5e8f\u7684\u540d\u79f0\u3001Bundle Identifier\u3001\u7248\u672c\u53f7\u7b49\u3002<\/p>\n

2. \u5728Xcode\u4e2d\u7f16\u5199\u4ee3\u7801\uff0c\u5e76\u5c06\u8d44\u6e90\u6587\u4ef6\u6dfb\u52a0\u5230\u5de5\u7a0b\u4e2d\u3002<\/p>\n

3. \u9009\u62e9`Product -> Archive`\uff0cXcode\u4f1a\u81ea\u52a8\u7f16\u8bd1\u4ee3\u7801\uff0c\u5e76\u751f\u6210\u4e00\u4e2a`.xcarchive`\u6587\u4ef6\u3002<\/p>\n

4. \u5728`Organizer`\u4e2d\u9009\u62e9\u751f\u6210\u7684`.xcarchive`ios app<\/a>\u6587\u4ef6\uff0c\u70b9\u51fb`Export`\uff0c\u9009\u62e9`Save for Ad Hoc Deployment`\uff0c\u7136\u540e\u9009\u62e9\u4e00\u4e2a\u63cf\u8ff0\u6587\u4ef6\uff08\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u7b7e\u540d\u4fe1\u606f\uff09\uff0c\u5e76\u4fdd\u5b58\u4e3a\u4e00\u4e2a`.ipa`\u6587\u4ef6\u3002<\/p>\n

\u81ea\u52a8\u5316\u6253\u5305\u5219\u53ef\u4ee5\u901a\u8fc7\u811a\u672c\u6765\u5b9e\u73b0\uff0c\u53ef\u4ee5\u5927\u5927\u7b80\u5316\u6253\u5305\u7684\u8fc7\u7a0b\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u81ea\u52a8\u5316\u6253\u5305\u7684\u6d41\u7a0b\uff1a<\/p>\n

1. \u521b\u5efa\u4e00\u4e2a\u811a\u672c\u6587\u4ef6\uff0c\u4f8b\u5982`build.sh`\u3002<\/p>\n

2. \u5728\u811a\u672c\u4e2d\u8bbe\u7f6e\u597d\u5e94\u7528\u7a0b\u5e8f\u7684\u57fa\u672c\u4fe1\u606f\uff0c\u4f8b\u5982\u5e94\u7528\u7a0b\u5e8f\u7684\u540d\u79f0\u3001Bundle Identifier\u3001\u7248\u672c\u53f7\u7b49\u3002<\/p>\n

3. \u7f16\u8bd1\u4ee3\u7801\uff0c\u5e76\u5c06\u8d44\u6e90\u6587\u4ef6\u6dfb\u52a0\u5230\u5de5\u7a0b\u4e2d\u3002<\/p>\n

4. \u4f7f\u7528`xcodebuild`\u547d\u4ee4\u751f\u6210\u4e00\u4e2a`.xcarchive`\u6587\u4ef6\u3002<\/p>\n

“`<\/p>\n

xcodebuild -scheme MyApp -archivePath MyApp.xcarchive archive<\/p>\n

“`<\/p>\n

5. \u4f7f\u7528`xcodebuild`\u547d\u4ee4\u5bfc\u51fa\u4e00\u4e2a`.ipa`\u6587\u4ef6\u3002<\/p>\n

“`<\/p>\n

xcodebuild -exportArchive -archivePath MyApp.xcarchive -exportPath MyApp.ipa -exportOptionsPlist ExportOptions.plist<\/p>\n

“`<\/p>\n

\u5176\u4e2d\uff0c`ExportOptions.plist`\u662f\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u7528\u4e8e\u8bbe\u7f6e\u5bfc\u51fa`.ipa`\u6587\u4ef6\u7684\u9009\u9879\uff0c\u4f8b\u5982\u63cf\u8ff0\u6587\u4ef6\u7684\u8def\u5f84\u3001\u5bfc\u51fa\u7c7b\u578b\u7b49\u3002<\/p>\n

\u603b\u7684\u6765\u8bf4\uff0c\u5c01\u88c5\u4e00\u4e2aIPA\u6587\u4ef6\u7684\u8fc7\u7a0b\u6bd4\u8f83\u7e41\u7410\uff0c\u4f46\u662f\u53ea\u9700\u8981\u638c\u63e1\u4e00\u6b21\uff0c\u4e4b\u540e\u5c31\u53ef\u4ee5\u5feb\u901f\u5730\u8fdb\u884c\u6253\u5305\u4e86\u3002\u901a\u8fc7\u81ea\u52a8\u5316\u6253\u5305\u7684\u65b9\u5f0f\uff0c\u53ef<\/p>\n

<\/figure>\n<\/p>\n

\u4ee5\u5927\u5927\u63d0\u9ad8\u6253\u5305\u7684\u6548\u7387\uff0c\u51cf\u5c11\u51fa\u9519\u7684\u53ef\u80fd\u6027\u3002<\/p>\n

\u7075\u654f\u5ea6\u8f6f\u4ef6app\u751f\u6210\u5668<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728iOS\u5f00\u53d1\u4e2d\uff0cIPA\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u5e94\u7528\u5206\u53d1\u683c\u5f0f\uff0c\u5b83\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u3001\u8d44\u6e90\u6587\u4ef6\u3001\u7b7e\u540d\u6587\u4ef6\u7b49\uff0c\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7iTunes\u6216\u8005\u5176\u4ed6\u5206\u53d1\u5de5\u5177\u5b89\u88c5\u5230iOS\u8bbe\u5907\u4e0a\u3002\u90a3\u4e48\uff0c\u5982\u4f55\u5c01\u88c5\u4e00\u4e2aIPA\u5462\uff1f\u9996\u5148\uff0c\u6211\u4eec<\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26636,116,12,849,26637],"topic":[],"class_list":["post-29012","post","type-post","status-publish","format-standard","hentry","category-kaifaapp","tag-app","tag-116","tag-12","tag-849","tag--app"],"_links":{"self":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/29012","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/comments?post=29012"}],"version-history":[{"count":1,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/29012\/revisions"}],"predecessor-version":[{"id":29025,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/29012\/revisions\/29025"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/media?parent=29012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/categories?post=29012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/tags?post=29012"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/topic?post=29012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}