{"id":40250,"date":"2025-11-05T12:32:39","date_gmt":"2025-11-05T04:32:39","guid":{"rendered":"https:\/\/app.60day.cn\/appday\/?p=40250"},"modified":"2025-11-05T12:32:39","modified_gmt":"2025-11-05T04:32:39","slug":"ios%e5%91%bd%e4%bb%a4%e8%a1%8c%e8%87%aa%e5%8a%a9%e6%89%93%e5%8c%85%e6%96%b9%e6%b3%95%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/app.60day.cn\/appday\/kaifaapp\/40250\/","title":{"rendered":"ios\u547d\u4ee4\u884c\u81ea\u52a9\u6253\u5305\u65b9\u6cd5\u4ecb\u7ecd"},"content":{"rendered":"<p>iOS\u547d\u4ee4\u884c\u81ea\u52a9\u6253\u5305\u662f\u4e00\u79cd\u901a\u8fc7\u7ec8\u7aef\u547d\u4ee4\u884c\u64cd\u4f5c\u5b8c\u6210iOS\u5e94\u7528\u7684\u81ea\u52a8\u6253\u5305\u8fc7\u7a0b\u3002\u76f8\u6bd4\u4e8e\u4f7f\u7528Xcode\u56fe\u5f62\u754c\u9762\u6765\u8fdb\u884c\u6253\u5305\uff0c\u547d\u4ee4\u884c\u81ea\u52a9\u6253\u5305\u66f4\u52a0\u4fbf\u6377\u5feb\u901f\uff0c\u7279\u522b\u9002\u7528\u4e8e\u81ea\u52a8\u5316\u6784\u5efa\u548c\u6301\u7eed\u96c6\u6210\u7b49\u573a\u666f\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdiOS\u547d\u4ee4\u884c\u81ea\u52a9\u6253\u5305\u7684\u539f\u7406\u548c\u5177\u4f53\u64cd\u4f5c\u6b65\u9aa4\u3002<\/p>\n<p>\u4e00\u3001\u539f\u7406\u4ecb\u7ecd<\/p>\n<p>iOS\u547d\u4ee4\u884c\u81ea\u52a9\u6253\u5305\u7684\u6838\u5fc3\u539f\u7406\u662f\u4f7f\u7528xcodebuild\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u8be5\u5de5\u5177\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u73af\u5883\u4e0b\u6267\u884cXcode\u9879\u76ee\u7684\u6784\u5efa\u64cd\u4f5c\u3002\u901a\u8fc7\u914d\u7f6e\u6253\u5305\u811a\u672c\uff0c\u6211\u4eec\u53ef\u4ee5\u6307\u5b9a\u9700\u8981\u6253\u5305\u7684Xcode\u9879\u76ee\u8def\u5f84\u3001Scheme\u3001\u914d\u7f6e\u6587\u4ef6\u4ee5\u53ca\u5bfc\u51fa\u7684ipa\u6587\u4ef6\u8def\u5f84\u7b49\u4fe1\u606f\uff0c\u7136\u540e\u6267\u884c\u6253\u5305\u547d\u4ee4\uff0cxcodebuild\u5de5\u5177\u5c06\u81ea\u52a8\u5b8c\u6210\u9879\u76ee\u6784\u5efa\u3001\u7f16\u8bd1\u3001\u7b7e\u540d\u548c\u5bfc\u51faipa\u7b49\u64cd\u4f5c\uff0c\u6700\u7ec8\u751f\u6210\u53ef\u5b89\u88c5\u7684ipa\u6587\u4ef6\u3002<\/p>\n<p>\u4e8c\u3001\u5177\u4f53\u64cd\u4f5c\u6b65\u9aa4<\/p>\n<p>\u4e0b\u9762\u662fiOS\u547d\u4ee4\u884c\u81ea\u52a9\u6253\u5305\u7684\u5177\u4f53\u64cd\u4f5c\u6b65\u9aa4\uff1a<\/p>\n<p>1. \u6253\u5f00\u7ec8\u7aef\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>2. \u8fdb\u5165Xcode\u9879\u76ee\u7684\u6839\u76ee\u5f55\uff0c\u4f7f\u7528cd\u547d\u4ee4\u5207\u6362\u5230\u9879\u76ee\u76ee\u5f55\u4e0b\u3002<\/p>\n<p>3. \u521b\u5efa\u4e00\u4e2a.sh\u6587\u4ef6\uff0c\u7528\u6765\u7f16\u5199\u6253\u5305\u811a\u672c\u3002\u53ef\u4ee5\u4f7f\u7528touch\u547d\u4ee4\u521b\u5efa\u8be5\u6587\u4ef6\uff0c\u6bd4\u5982touch build.sh\u3002<\/p>\n<p>4. \u5728build.sh\u6587\u4ef6\u4e2d\u7f16\u5199\u6253\u5305\u811a\u672c\uff0c\u5177\u4f53\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<p>&#8220;`shell<\/p>\n<p># \u8bbe\u7f6e\u5de5\u7a0b\u8def\u5f84<\/p>\n<p>project_path=&#8221;Your Project Path&#8221;<\/p>\n<p># \u8bbe\u7f6escheme\u540d\u79f0<\/p>\n<p>scheme_name=&#8221;Your Scheme Name&#8221;<\/p>\n<p># \u8bbe\u7f6e\u6253\u5305\u914d\u7f6e\u540d<\/p>\n<p>configuration=&#8221;Rel<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.myapp.ltd\/ag\/100\/ios\/35.jpg\" \/><\/figure>\n<\/p>\n<p>ease&#8221;<\/p>\n<p># \u8bbe\u7f6e\u5bfc\u51faipa\u6587\u4ef6\u8def\u5f84<\/p>\n<p>export_path=&#8221;Your Export Path&#8221;<\/p>\n<p># \u6267\u884c\u6253\u5305\u547d\u4ee4<\/p>\n<p>xcodebuild -project $project_path -scheme $scheme_name -configuration $configuration clean archiv<a href=\"https:\/\/www.applebyme.ltd\/ios-dabao-174.html\">h5\u6253\u5305ios\u4e0a\u67b6<\/a>e -archivePath build\/$scheme_name.xcarchive<\/p>\n<p>xcodebuild -exportArchive -archivePath build\/$scheme_name.xcarchive -exportPath $export_path -exportOptionsPlist exportOptions.plist<\/p>\n<p>&#8220;`<\/p>\n<p>\u5176\u4e2d\uff0c\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u4fee\u6539\u4e0a\u8ff0\u4ee3\u7801\u4e2d\u7684\u53c2\u6570\u503c\uff0c\u66ff\u6362\u6210\u5b9e\u9645\u7684\u9879\u76ee\u8def\u5f84\u3001Scheme\u540d\u79f0\u3001\u914d\u7f6e\u540d\u548c\u5bfc\u51fa\u8def\u5f84\u7b49\u3002<\/p>\n<p>5. \u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u811a\u672c\u547d\u4ee4\uff0c\u6bd4\u5982\u6267\u884c.\/build.sh\u3002<\/p>\n<p>6. \u7b49\u5f85\u811a\u672c\u6267\u884c\u5b8c\u6210\uff0c\u5373\u53ef\u5728\u5bfc\u51fa\u8def\u5f84\u4e2d\u627e\u5230\u751f\u6210\u7684ipa\u6587\u4ef6\u3002<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5728\u6267\u884c\u6253\u5305\u811a\u672c\u4e4b\u524d\uff0c\u9700\u8981\u4fdd\u8bc1\u9879\u76ee\u6587\u4ef6\u7684\u6b63\u786e\u6027\uff0c\u5305\u62ec\u4f9d\u8d56\u9879\u3001\u8bc1\u4e66\u914d\u7f6e\u7b49\u3002\u53e6\u5916\uff0c\u5728\u5bfc\u51faipa\u6587\u4ef6\u4e4b\u524d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539exportOptions.plist\u6587\u4ef6\u6765\u81ea\u5b9a\u4e49ipa\u7684\u5bfc\u51fa\u914d\u7f6e\uff0c\u6bd4\u5982\u662f\u5426\u5305\u542b\u7b26\u53f7\u8868\u3001\u662f\u5426\u81ea\u52a8\u7b7e\u540d\u7b49\u3002<\/p>\n<p>\u4e09\u3001\u6ce8\u610f\u4e8b\u9879<\/p>\n<p>\u5728\u4f7f\u7528iOS\u547d\u4ee4\u884c\u81ea\u52a9\u6253\u5305\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6709\u4e00\u4e9b\u5e38\u89c1\u7684\u6ce8\u610f\u4e8b\u9879\u9700\u8981\u6ce8\u610f\uff1a<\/p>\n<p>1. \u786e\u4fdd\u9879\u76ee\u6587\u4ef6\u7684\u6b63\u786e\u6027\uff0c\u5305\u62ec\u4f9d\u8d56\u9879\u7684\u5b89\u88c5\u3001\u5de5\u7a0b\u914d\u7f6e\u7684\u6b63\u786e\u6027\u7b49\u3002\u53ef\u4ee5\u901a\u8fc7Xcode\u56fe\u5f62\u754c\u9762\u8fdb\u884c\u68c0\u67e5\u548c\u8c03\u8bd5\u3002<\/p>\n<p>2. \u786e\u4fdd\u9879\u76ee\u7684\u7b7e\u540d\u914d\u7f6e\u6b63\u786e\uff0c\u5305\u62ec\u8bc1\u4e66\u7684\u9009\u62e9\u3001Provisioning Profile\u7684\u914d\u7f6e\u7b49\u3002\u53ef\u4ee5\u901a\u8fc7Xcode\u56fe\u5f62\u754c\u9762\u8fdb\u884c\u8bbe\u7f6e\u548c\u9a8c\u8bc1\u3002<\/p>\n<p>3. \u5bfc\u51faip<a href=\"https:\/\/www.applebyme.ltd\/ios-dabao-1295.html\">ios\u5f00\u53d1\u73af\u5883\u8bc1\u4e66\u6253\u5305\u88c5\u5230\u771f\u673a<\/a>a\u6587\u4ef6\u65f6\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u6765\u4fee\u6539exportOptions.plist\u6587\u4ef6\uff0c\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u5bfc\u51fa\u914d\u7f6e\u8981\u6c42\u3002<\/p>\n<p>4. \u5728\u6267\u884c\u6253\u5305\u547d\u4ee4\u4e4b\u524d\uff0c\u6700\u597d\u5148\u8fdb\u884c\u4e00\u6b21\u8bd5\u8fd0\u884c\uff0c\u786e\u4fdd\u811a\u672c\u7684\u6b63\u786e\u6027\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<p>\u7efc\u4e0a\u6240\u8ff0\uff0ciOS\u547d\u4ee4\u884c\u81ea\u52a9\u6253\u5305\u662f\u4e00\u79cd\u4fbf\u6377\u5feb\u901f\u7684iOS\u5e94\u7528\u6253\u5305\u65b9\u5f0f\uff0c\u901a\u8fc7xcodebuild\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u4ee5\u5b9e\u73b0\u9879\u76ee\u7684\u81ea\u52a8\u6784\u5efa\u548c\u6253\u5305\u64cd\u4f5c\u3002\u9700\u8981\u6ce8\u610f\u914d\u7f6e\u6b63\u786e\u7684\u9879\u76ee\u6587\u4ef6\u548c\u7b7e\u540d\u4fe1\u606f\uff0c\u5e76\u4e14\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u8fdb\u884c\u5bfc\u51fa\u914d\u7f6e\u7684\u4fee\u6539\u3002\u5e0c\u671b\u672c\u6587\u80fd\u591f\u5e2e\u52a9\u5230\u5bf9iOS\u547d\u4ee4\u884c\u81ea\u52a9\u6253\u5305\u611f\u5174\u8da3\u7684\u8bfb\u8005\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>iOS\u547d\u4ee4\u884c\u81ea\u52a9\u6253\u5305\u662f\u4e00\u79cd\u901a\u8fc7\u7ec8\u7aef\u547d\u4ee4\u884c\u64cd\u4f5c\u5b8c\u6210iOS\u5e94\u7528\u7684\u81ea\u52a8\u6253\u5305\u8fc7\u7a0b\u3002\u76f8\u6bd4\u4e8e\u4f7f\u7528Xcode\u56fe\u5f62\u754c\u9762\u6765\u8fdb\u884c\u6253\u5305\uff0c\u547d\u4ee4\u884c\u81ea\u52a9\u6253\u5305\u66f4\u52a0\u4fbf\u6377\u5feb\u901f\uff0c\u7279\u522b\u9002\u7528\u4e8e\u81ea\u52a8\u5316\u6784\u5efa\u548c\u6301\u7eed\u96c6\u6210\u7b49\u573a\u666f\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdiO<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[35474,1008,35473,132,728],"topic":[],"class_list":{"0":"post-40250","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-kaifaapp","7":"tag-ios","8":"tag-1008","10":"tag-132","11":"tag-728"},"_links":{"self":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts\/40250","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\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/comments?post=40250"}],"version-history":[{"count":1,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts\/40250\/revisions"}],"predecessor-version":[{"id":40282,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts\/40250\/revisions\/40282"}],"wp:attachment":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/media?parent=40250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/categories?post=40250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/tags?post=40250"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/topic?post=40250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}