{"id":46568,"date":"2026-09-16T12:32:20","date_gmt":"2026-09-16T04:32:20","guid":{"rendered":"https:\/\/app.60day.cn\/appday\/?p=46568"},"modified":"2026-09-16T12:32:20","modified_gmt":"2026-09-16T04:32:20","slug":"ios%e5%bc%80%e5%8f%91%e6%80%8e%e4%b9%88%e6%89%b9%e9%87%8f%e6%89%93%e5%8c%85%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/app.60day.cn\/appday\/kaifaapp\/46568\/","title":{"rendered":"ios\u5f00\u53d1\u600e\u4e48\u6279\u91cf\u6253\u5305\uff1f"},"content":{"rendered":"<p>\u5728iOS\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u6279\u91cf\u6253\u5305\u662f\u4e00\u4e2a\u5f88\u5e38\u89c1\u7684\u9700\u6c42\u3002\u5b83\u80fd\u591f\u52a0\u5feb\u5f00\u53d1\u8005\u7684\u5de5\u4f5c\u6548\u7387\uff0c\u51cf\u5c11\u91cd\u590d\u52b3\u52a8\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5c06\u4e3a\u60a8\u4ecb\u7ecd\u6279\u91cf\u6253\u5305\u7684\u539f\u7406\u548c\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4\u3002<\/p>\n<p>1. \u6279\u91cf\u6253\u5305\u7684\u539f\u7406<\/p>\n<p>\u6279\u91cf\u6253\u5305\u662f\u901a\u8fc7\u811a\u672c\u6216\u81ea\u52a8\u5316\u5de5\u5177\u5b9e\u73b0\u7684\uff0c\u5b83\u53ef\u4ee5\u6839\u636e\u4e00\u7cfb\u5217\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u81ea\u52a8\u5316\u5730\u8fdb\u884c\u6253\u5305\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u6279\u91cf\u6253\u5305\u7684\u539f\u7406\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a<\/p>\n<p>(1) \u83b7\u53d6\u5f85\u6253\u5305\u7684\u5de5\u7a0b\u5217\u8868<\/p>\n<p>(2) \u904d\u5386\u5de5\u7a0b\u5217\u8868\uff0c\u6839\u636e\u914d\u7f6e\u6587\u4ef6\u8fdb\u884c\u6253\u5305\u8bbe\u7f6e<\/p>\n<p>(3) \u4f7f\u7528xcodebuild\u547d\u4ee4\u884c\u5de5\u5177\u8fdb\u884c\u7f16\u8bd1\u6253\u5305<\/p>\n<p>(4) \u5c06\u751f\u6210\u7684ipa\u6587\u4ef6\u5bfc\u51fa\u4fdd\u5b58<\/p>\n<p>2. \u6279\u91cf\u6253\u5305\u7684\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4<\/p>\n<p>\u4e0b\u9762\uff0c\u6211\u5c06\u4e3a\u60a8\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u8fdb\u884c\u6279\u91cf\u6253\u5305\u3002<\/p>\n<p>\u6b65\u9aa41\uff1a\u521b\u5efa\u6253\u5305\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>\u5728\u8fdb\u884c\u6279\u91cf\u6253\u5305\u4e4b\u524d\uff0c\u6211\u4eec\u9996\u5148\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u6253\u5305\u914d\u7f6e\u6587\u4ef6\u3002\u8be5\u914d\u7f6e\u6587\u4ef6\u5305\u62ec\u4e86\u9700\u8981\u6253\u5305\u7684\u5de5\u7a0b\u8def\u5f84\u3001\u914d\u7f6e\u540d\u79f0\u3001scheme\u3001\u7248\u672c\u53f7\u3001\u8bc1\u4e66\u7b49\u4fe1\u606f\u3002<\/p>\n<p>\u6b65\u9aa42\uff1a\u521b\u5efa\u6253\u5305\u811a\u672c<\/p>\n<p>\u521b\u5efa\u4e00\u4e2aShell\u811a\u672c\u6587\u4ef6\uff0c\u6bd4\u5982build.sh\u3002\u5728\u8be5\u811a\u672c\u6587\u4ef6\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u8fdb\u884c\u6253\u5305\u914d\u7f6e\u7684\u8bfb\u53d6\u548c\u89e3\u6790\uff0c\u5e76\u4f7f\u7528xcodebuild\u547d\u4ee4\u884c\u5de5\u5177\u8fdb\u884c\u6253\u5305\u64cd\u4f5c\u3002<\/p>\n<p>\u6b65\u9aa43\uff1a\u7f16\u5199\u6253\u5305\u811a\u672c\u4ee3\u7801<\/p>\n<p>\u5728build.sh\u6587\u4ef6\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Shell\u811a\u672c\u8bed\u8a00\u7f16\u5199\u6253\u5305\u811a\u672c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u811a\u672c\u7684\u4ee3\u7801\uff1a<\/p>\n<p>&#8220;`shell<\/p>\n<p>#!\/bin\/bash<\/p>\n<p>while read line<\/p>\n<p>do<\/p>\n<p>projectPath=$(echo $line | tr -d &#8216;\\n&#8217;)<\/p>\n<p>echo &#8220;\u5f00\u59cb\u6253\u5305 $projectPath&#8221;<\/p>\n<p>xcodebuild -workspace $projectPath.xcworkspace -scheme $scheme -configuration $configuration -destin<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.myapp.ltd\/ag\/100\/ios\/19.jpg\" \/><\/figure>\n<\/p>\n<p>ation generic\/platform=iOS -archivePath &#8220;$outputPath\/$projectName.xcarchive&#8221; clean archive<\/p>\n<p>xcodebuild -exportArchive -archivePath &#8220;$outputPath\/$projectName.xcarchive&#8221; -exportPath &#8220;$outputPath\/$projectName&#8221; -exportOptionsPlist &#8220;$exportOptionsPath&#8221;<\/p>\n<p>echo &#8220;\u6253\u5305\u5b8c\u6210 $outputPath\/$proje<a href=\"https:\/\/www.applebyme.ltd\/ios-dabao-1415.html\">ios\u7b7e\u540d\u6253\u5305\u9700\u8981\u8fbe\u5230\u54ea\u4e9b\u6761\u4ef6<\/a>ctName.ipa&#8221;<\/p>\n<p>done <\/p>\n<p>&#8220;`<\/p>\n<p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7\u5faa\u73af\u904d\u5386\u5de5\u7a0b\u5217\u8868\u6587\u4ef6\uff0c\u8bfb\u53d6\u6bcf\u4e2a\u5de5\u7a0b\u7684\u8def\u5f84\uff0c\u7136\u540e\u4f7f\u7528xcodebuild\u547d\u4ee4\u8fdb\u884c\u7f16\u8bd1\u6253\u5305\u64cd\u4f5c\u3002\u6700\u540e\uff0c\u5c06\u751f\u6210\u7684ipa\u6587\u4ef6\u5bfc\u51fa\u5230\u6307\u5b9a\u8def\u5f84\u3002<\/p>\n<p>\u6b65\u9aa44\uff1a\u8fd0\u884c\u6279\u91cf\u6253\u5305\u811a\u672c<\/p>\n<p>\u5c06\u5de5\u7a0b\u5217\u8868\u6587\u4ef6\u3001\u6253\u5305\u914d\u7f6e\u6587\u4ef6\u3001\u6253\u5305\u811a\u672c\u6587\u4ef6\u653e\u7f6e\u5728\u540c\u4e00\u4e2a\u76ee\u5f55\u4e0b\u3002\u7136\u540e\uff0c\u5728\u7ec8\u7aef\u4e2d\u8fdb\u5165\u8be5\u76ee\u5f55\uff0c\u5e76\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>&#8220;`shell<\/p>\n<p>chmod +x build.sh<\/p>\n<p>.\/build.sh<\/p>\n<p>&#8220;`<\/p>\n<p>\u8fd9\u6837\uff0c\u6279\u91cf\u6253\u5305\u811a\u672c\u5c31\u4f1a\u5f00\u59cb\u6267\u884c\uff0c\u81ea\u52a8\u5316\u5730\u8fdb\u884c\u5de5\u7a0b\u7684\u7f16\u8bd1\u548c\u6253\u5305\u64cd\u4f5c\u3002\u751f\u6210\u7684ipa\u6587\u4ef6\u5c06\u4fdd\u5b58\u5728\u6307\u5b9a<a href=\"https:\/\/www.applebyme.ltd\/ios-dabao-965.html\">ios\u6253\u5305\u7b7e\u540d\u8981\u600e\u4e48\u64cd\u4f5c<\/a>\u7684\u8f93\u51fa\u8def\u5f84\u4e2d\u3002<\/p>\n<p>\u603b\u7ed3<\/p>\n<p>\u901a\u8fc7\u6279\u91cf\u6253\u5305\uff0c\u6211\u4eec\u53ef\u4ee5\u5feb\u901f\u3001\u81ea\u52a8\u5316\u5730\u8fdb\u884ciOS\u5de5\u7a0b\u7684\u6253\u5305\u64cd\u4f5c\uff0c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u6279\u91cf\u6253\u5305\u7684\u539f\u7406\u548c\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4\uff0c\u5e0c\u671b\u80fd\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\u3002\u5982\u679c\u60a8\u8fd8\u6709\u4efb\u4f55\u7591\u95ee\uff0c\u6b22\u8fce\u968f\u65f6\u5411\u6211\u63d0\u95ee\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728iOS\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u6279\u91cf\u6253\u5305\u662f\u4e00\u4e2a\u5f88\u5e38\u89c1\u7684\u9700\u6c42\u3002\u5b83\u80fd\u591f\u52a0\u5feb\u5f00\u53d1\u8005\u7684\u5de5\u4f5c\u6548\u7387\uff0c\u51cf\u5c11\u91cd\u590d\u52b3\u52a8\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5c06\u4e3a\u60a8\u4ecb\u7ecd\u6279\u91cf\u6253\u5305\u7684\u539f\u7406\u548c\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4\u30021. \u6279\u91cf\u6253\u5305\u7684\u539f\u7406\u6279\u91cf\u6253\u5305\u662f\u901a\u8fc7\u811a\u672c\u6216\u81ea\u52a8\u5316\u5de5\u5177\u5b9e\u73b0\u7684<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[33952,38085,11530,132,694],"topic":[],"class_list":["post-46568","post","type-post","status-publish","format-standard","hentry","category-kaifaapp","tag-iosxcodeipa","tag-unityios","tag-11530","tag-132","tag-694"],"_links":{"self":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts\/46568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/comments?post=46568"}],"version-history":[{"count":1,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts\/46568\/revisions"}],"predecessor-version":[{"id":46573,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts\/46568\/revisions\/46573"}],"wp:attachment":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/media?parent=46568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/categories?post=46568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/tags?post=46568"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/topic?post=46568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}