{"id":47291,"date":"2025-07-02T16:44:40","date_gmt":"2025-07-02T08:44:40","guid":{"rendered":"https:\/\/www.zhidianwl.com\/zhidian\/?p=47291"},"modified":"2025-07-02T16:44:40","modified_gmt":"2025-07-02T08:44:40","slug":"%e8%87%aa%e5%8a%a8%e6%89%93%e5%8c%85ipa%e6%8e%a8%e8%8d%90%e4%bd%bf%e7%94%a8%e4%b8%80%e9%97%a8%e6%89%93%e5%8c%85%e5%b9%b3%e5%8f%b0","status":"publish","type":"post","link":"https:\/\/www.zhidianwl.com\/zhidian\/2025\/47291\/","title":{"rendered":"\u81ea\u52a8\u6253\u5305ipa\u63a8\u8350\u4f7f\u7528\u4e00\u95e8\u6253\u5305\u5e73\u53f0"},"content":{"rendered":"

\u81ea\u52a8\u6253\u5305iOS\u5e94\u7528\u7684IPA\u6587\u4ef6\u662f\u6bcf\u4e2aiOS\u5f00\u53d1\u8005\u5728\u53d1\u5e03\u5e94\u7528\u65f6\u90fd\u5fc5\u987b\u638c\u63e1\u7684\u6280\u80fd\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u81ea\u52a8\u6253\u5305IPA\u6587\u4ef6\u7684\u539f\u7406\u548c\u6b65\u9aa4\u3002<\/p>\n

\u4e00\u3001\u81ea\u52a8\u6253\u5305IPA\u7684\u539f\u7406<\/p>\n

\u5728\u4ecb\u7ecd\u81ea\u52a8\u6253\u5305IPA\u7684\u6b65\u9aa4\u4e4b\u524d\uff0c\u6211\u4eec\u5148\u6765\u4e86\u89e3\u4e00\u4e0b\u81ea\u52a8\u6253\u5305IPA\u7684\u539f\u7406\u3002\u81ea\u52a8\u6253\u5305IPA\u5b9e\u9645\u4e0a\u662f\u5229\u7528\u4e86Xcode\u7684\u547d\u4ee4\u884c\u5de5\u5177xcodebuild\u6765\u5b8c\u6210\u7684\u3002xcodebuild\u662fXcode\u4e2d\u7684\u4e00\u4e2a\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u6765\u7f16\u8bd1\u3001\u6784\u5efa\u3001\u7b7e\u540d\u548c\u6253\u5305iOS\u5e94\u7528\u3002<\/p>\n

\u4e8c\u3001\u81ea\u52a8\u6253\u5305IPA\u7684\u6b65\u9aa4<\/p>\n

\u4e0b\u9762\u6211\u4eec\u6765\u9010\u6b65\u4ecb\u7ecd\u81ea\u52a8\u6253\u5305IPA\u7684\u6b65\u9aa4\u3002<\/p>\n

\u6b65\u9aa41\uff1a\u51c6\u5907\u5de5\u4f5c<\/p>\n

\u9996\u5148\uff0c\u4f60\u9700\u8981\u5728\u4f60\u7684\u7535\u8111\u4e0a\u5b89\u88c5\u597dXcode\uff0c\u5e76\u786e\u4fdd\u5df2\u7ecf\u5bfc\u5165\u4e86\u4f60\u8981\u6253\u5305\u7684iOS\u9879\u76ee\u3002\u53e6\u5916\uff0c\u4f60\u8fd8\u9700\u8981\u5b89\u88c5\u597dHomebrew\u548cGit\uff0c\u8fd9\u4e24\u4e2a\u5de5\u5177\u5c06\u5728\u540e\u9762\u7684\u6b65\u9aa4\u4e2d\u7528\u5230\u3002\u5982\u679c\u4f60\u8fd8\u6ca1\u6709\u5b89\u88c5\u8fd9\u4e24\u4e2a\u5de5\u5177\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5\uff1a<\/p>\n

“`<\/p>\n

\/bin\/bas<\/p>\n

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

h -c “$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)” \/\/ \u5b89\u88c5Homebrew<\/p>\n

brew install git \/\/ \u5b89\u88c5Git<\/p>\n

“`<\/p>\n

\u6b65\u9aa42\uff1a\u521b\u5efa\u4e00\u4e2a\u7a7a\u7684\u5de5\u4f5c\u76ee\u5f55<\/p>\n

\u5728\u4f60\u7684\u7535\u8111\u4e0a\u521b\u5efa\u4e00\u4e2a\u7a7a\u7684\u5de5\u4f5c\u76ee\u5f55\uff0c\u7528\u6765\u5b58\u653e\u81ea\u52a8\u6253\u5305\u7684\u76f8\u5173\u811a\u672c\u548c\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n

\u6b65\u9aa43\uff1a\u7f16\u5199\u6253\u5305\u811a\u672c<\/p>\n

\u5728\u5de5\u4f5c\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u540d\u4e3abuild.sh\u7684\u811a\u672c\u6587\u4ef6\u3002\u8fd9\u4e2a\u811a\u672c\u6587\u4ef6\u5c06\u5305\u542b\u81ea\u52a8\u6253\u5305\u7684\u76f8\u5173\u547d\u4ee4\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684build.sh\u7684\u793a\u4f8b\uff1a<\/p>\n

“`shell<\/p>\n

#!\/bin\/bash<\/p>\n

cd \/path\/to\/your\/project \/\/ \u8fdb\u5165\u4f60\u7684\u9879\u76ee\u76ee\u5f55<\/p>\n

xcodebuild clean \/\/ \u6e05\u7406\u9879\u76ee<\/p>\n

xcodebuild archive -workspace YourProject.xcworkspace -scheme YourScheme -configuration Release -archivePath build\/YourArchiveName.xcarchive \/\/ \u6784\u5efa\u9879\u76ee\u5e76\u751f\u6210\u5f52\u6863\u6587\u4ef6<\/p>\n

\u7f51\u7ad9\u600e\u4e48\u6253\u5305ipa<\/a><\/p>\n

xcodebuild -exportArchive -archivePath build\/YourArchiveName.xcarchive -exportPath build -exportOptionsPlist ExportOptions.plist -allowProvisioningUpdates \/\/ \u5bfc\u51faIPA\u6587\u4ef6<\/p>\n

“`<\/p>\n

\u5728\u4ee5\u4e0a\u793a\u4f8b\u4e2d\uff0c\u9700\u8981\u6ce8\u610f\u5c06”\/path\/to\/your\/project”\u66ff\u6362\u4e3a\u4f60\u5b9e\u9645\u7684\u9879\u76ee\u8def\u5f84\uff0c”YourProject.xcworkspace”\u548c”YourScheme”\u5206\u522b\u66ff\u6362\u4e3a\u4f60\u5b9e\u9645\u7684\u5de5\u4f5c\u7a7a\u95f4\u548cscheme\u540d\u79f0\uff0c”YourArchiveName”\u66ff\u6362\u4e3a\u4f60\u5e0c\u671b\u751f\u6210\u7684\u5f52\u6863\u6587\u4ef6\u7684\u540d\u79f0\u3002<\/p>\n

\u6b65\u9aa44\uff1a\u7f16\u5199\u5bfc\u51faIPA\u914d\u7f6e\u6587\u4ef6<\/p>\n

\u5728\u5de5\u4f5c\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u540d\u4e3aExportOptions.plist\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u5c06\u5305\u542b\u5bfc\u51faIPA\u65f6\u7684\u8be6\u7ec6\u914d\u7f6e\uff0c\u4f8b\u5982\u76ee\u6807\u8bbe\u5907\u3001\u5bfc\u51fa\u65b9\u6cd5\u3001\u7b7e\u540d\u7b49\u3002\u4e0b\u9762\u662f\u4e00\u4e2aExporipa\u683c\u5f0f\u8f6f\u4ef6\u6253\u5305<\/a>tOptions.plist\u7684\u793a\u4f8b\uff1a<\/p>\n

“`xml<\/p>\n<\/p>\n

\n

\n

method<\/p>\n

ad-hoc \/\/ \u5bfc\u51fa\u65b9\u6cd5\uff0c\u53ef\u4ee5\u9009\u62e9app-store\u3001enterprise\u3001ad-hoc\u7b49\uff0c\u6839\u636e\u5b9e\u9645\u9700\u6c42\u8fdb\u884c\u9009\u62e9<\/p>\n

teamID<\/p>\n

YourTeamID \/\/ \u5f00\u53d1\u8005\u56e2\u961fID<\/p>\n

signingStyle<\/p>\n

manual \/\/ \u7b7e\u540d\u65b9\u5f0f\uff0c\u53ef\u4ee5\u9009\u62e9automatic\u6216manual\uff0c\u6839\u636e\u5b9e\u9645\u9700\u6c42\u8fdb\u884c\u9009\u62e9<\/p>\n

provisioningProfiles<\/p>\n

\n

com.yourbundleidentifier \/\/ \u4f60\u7684\u5e94\u7528\u7684bundle identifier<\/p>\n

YourProvisioningProfileName \/\/ \u4f60\u7684\u5f00\u53d1\u8bc1\u4e66\u540d\u79f0<\/p>\n<\/p>\n

uploadBitcode<\/p>\n

\/\/ \u662f\u5426\u4e0a\u4f20Bitcode<\/p>\n<\/p>\n

“`<\/p>\n

\u5728\u4ee5\u4e0a\u793a\u4f8b\u4e2d\uff0c\u9700\u8981\u6ce8\u610f\u5c06”YourTeamID”\u66ff\u6362\u4e3a\u4f60\u7684\u5f00\u53d1\u8005\u56e2\u961fID\uff0c”com.yourbundleidentifier”\u66ff\u6362\u4e3a\u4f60\u7684\u5e94\u7528\u7684bundle identifier\uff0c”YourProvisioningProfileName”\u66ff\u6362\u4e3a\u4f60\u7684\u5f00\u53d1\u8bc1\u4e66\u540d\u79f0\u3002<\/p>\n

\u6b65\u9aa45\uff1a\u8fd0\u884c\u6253\u5305\u811a\u672c<\/p>\n

\u5728\u7ec8\u7aef\u4e2d\u5207\u6362\u5230\u5de5\u4f5c\u76ee\u5f55\uff0c\u5e76\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u6267\u884c\u6253\u5305\u811a\u672c\uff1a<\/p>\n

“`<\/p>\n

chmod +x build.sh \/\/ \u6dfb\u52a0\u6267\u884c\u6743\u9650<\/p>\n

.\/build.sh \/\/ \u8fd0\u884c\u6253\u5305\u811a\u672c<\/p>\n

“`<\/p>\n

\u811a\u672c\u6267\u884c\u5b8c\u6bd5\u540e\uff0c\u5c06\u5728\u5de5\u4f5c\u76ee\u5f55\u7684build\u6587\u4ef6\u5939\u4e2d\u751f\u6210\u4e00\u4e2a\u540d\u4e3aYourArchiveName.ipa\u7684IPA\u6587\u4ef6\uff0c\u5373\u4e3a\u81ea\u52a8\u6253\u5305\u751f\u6210\u7684IPA\u6587\u4ef6\u3002<\/p>\n

\u603b\u7ed3\uff1a<\/p>\n

\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9e\u73b0\u81ea\u52a8\u6253\u5305iOS\u5e94\u7528\u7684IPA\u6587\u4ef6\u3002\u501f\u52a9Xcode\u7684xcodebuild\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u6211\u4eec\u53ef\u4ee5\u7b80\u5316\u6253\u5305\u8fc7\u7a0b\uff0c\u5e76\u63d0\u9ad8\u6253\u5305\u6548\u7387\u3002\u5e0c\u671b\u672c\u6587\u80fd\u5bf9\u60a8\u4e86\u89e3\u81ea\u52a8\u6253\u5305IPA\u7684\u539f\u7406\u548c\u6b65\u9aa4\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u81ea\u52a8\u6253\u5305iOS\u5e94\u7528\u7684IPA\u6587\u4ef6\u662f\u6bcf\u4e2aiOS\u5f00\u53d1\u8005\u5728\u53d1\u5e03\u5e94\u7528\u65f6\u90fd\u5fc5\u987b\u638c\u63e1\u7684\u6280\u80fd\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u81ea\u52a8\u6253\u5305IPA\u6587\u4ef6\u7684\u539f\u7406\u548c\u6b65\u9aa4\u3002\u4e00\u3001\u81ea\u52a8\u6253\u5305IPA\u7684\u539f\u7406\u5728\u4ecb\u7ecd\u81ea\u52a8\u6253\u5305IPA\u7684\u6b65\u9aa4\u4e4b\u524d\uff0c\u6211\u4eec\u5148\u6765\u4e86\u89e3\u4e00\u4e0b\u81ea<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[34265,16698,5761,171,1066],"class_list":{"0":"post-47291","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-zuoapp","7":"tag-xcodeipa","9":"tag-5761","10":"tag-171","11":"tag-1066"},"_links":{"self":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/47291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/comments?post=47291"}],"version-history":[{"count":1,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/47291\/revisions"}],"predecessor-version":[{"id":47324,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/47291\/revisions\/47324"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/media?parent=47291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/categories?post=47291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/tags?post=47291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}