{"id":46147,"date":"2025-11-21T17:48:32","date_gmt":"2025-11-21T09:48:32","guid":{"rendered":"https:\/\/h5app.yimenapp.cn\/h5app\/?p=46147"},"modified":"2025-11-21T17:48:32","modified_gmt":"2025-11-21T09:48:32","slug":"ios%e8%87%aa%e5%8a%a8%e5%8c%96%e6%89%93%e5%8c%85%e8%87%aa%e5%8a%a8%e7%ad%be%e5%90%8d%e6%8e%a8%e8%8d%90","status":"publish","type":"post","link":"https:\/\/h5app.yimenapp.cn\/h5app\/2025\/sjapp\/46147\/","title":{"rendered":"ios\u81ea\u52a8\u5316\u6253\u5305\u81ea\u52a8\u7b7e\u540d\u63a8\u8350"},"content":{"rendered":"<p>iOS\u81ea\u52a8\u5316\u6253\u5305\u81ea\u52a8\u7b7e\u540d\u662f\u4e00\u79cd\u901a\u8fc7\u811a\u672c\u81ea\u52a8\u5316\u5b8c\u6210iOS\u5e94\u7528\u6253\u5305\u548c\u7b7e\u540d\u7684\u65b9\u5f0f\u3002\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u5f00\u53d1\u8005\u7684\u5de5\u4f5c\u6548\u7387\uff0c\u540c\u65f6\u4e5f\u53ef\u4ee5\u51cf\u5c11\u51fa\u9519\u7684\u6982\u7387\u3002\u672c\u6587\u5c06\u5bf9iOS\u81ea\u52a8\u5316\u6253\u5305\u81ea\u52a8\u7b7e\u540d\u7684\u539f\u7406\u548c\u8be6\u7ec6\u4ecb\u7ecd\u8fdb\u884c\u9610\u8ff0\u3002<\/p>\n<p>\u4e00\u3001iOS\u81ea\u52a8\u5316\u6253\u5305\u81ea\u52a8\u7b7e\u540d\u7684\u539f\u7406<\/p>\n<p>iOS\u81ea\u52a8\u5316\u6253\u5305\u81ea\u52a8\u7b7e\u540d\u7684\u539f\u7406\u662f\u901a\u8fc7\u811a\u672c\u6765\u81ea\u52a8\u5316\u5b8c\u6210\u76f8\u5173\u64cd\u4f5c\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u5b83\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a<\/p>\n<p>1. \u6e05\u7406\u9879\u76ee<\/p>\n<p>\u5728\u8fdb\u884c\u6253\u5305\u4e4b\u524d\uff0c\u9700\u8981\u5148\u6e05\u7406\u9879\u76ee\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u53ef\u4ee5\u901a\u8fc7xcodebuild\u547d\u4ee4\u6765\u5b8c\u6210\u3002<\/p>\n<p>2. \u7f16\u8bd1\u9879\u76ee<\/p>\n<p>\u6e05\u7406\u5b8c\u9879\u76ee\u4e4b\u540e\uff0c\u9700\u8981\u8fdb\u884c\u7f16\u8bd1\u3002\u540c\u6837\u53ef\u4ee5\u901a\u8fc7xcodebuild\u547d\u4ee4\u6765\u5b8c\u6210\u3002<\/p>\n<p>3. \u6253\u5305<\/p>\n<p>\u7f16\u8bd1\u5b8c\u6210\u540e\uff0c\u9700\u8981\u8fdb\u884c\u6253\u5305\u3002\u6253\u5305\u53ef\u4ee5\u901a\u8fc7xcodebuild\u547d\u4ee4\u6765\u5b8c\u6210\u3002\u5728\u8fdb\u884c\u6253\u5305\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u6307\u5b9a\u6253\u5305\u7c7b\u578b\u548c\u8f93\u51fa\u8def\u5f84\u3002<\/p>\n<p>4. <\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.yimenyun.net\/2023-03\/22\/10\/16899531875.jpg\" \/><\/figure>\n<\/p>\n<p>\u81ea\u52a8\u7b7e\u540d<\/p>\n<p>\u6253\u5305\u5b8c\u6210\u540e\uff0c\u9700\u8981\u8fdb\u884c\u81ea\u52a8\u7b7e\u540d\u3002\u81ea\u52a8\u7b7e\u540d\u53ef\u4ee5\u901a\u8fc7fastlane\u5de5\u5177\u6765\u5b8c\u6210\u3002fastlane\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u81ea\u52a8\u5316\u5b8c\u6210iOS\u548cAndroid\u5e94\u7528\u7684\u6253\u5305\u3001\u6d4b\u8bd5\u3001\u90e8\u7f72\u7b49\u64cd\u4f5c\u3002\u5728\u8fdb\u884c\u81ea\u52a8\u7b7e\u540d\u65f6\uff0c\u9700\u8981\u63d0\u4f9b\u76f8\u5173\u8bc1\u4e66\u548c\u63cf\u8ff0\u6587\u4ef6\u3002<\/p>\n<p>5<a href=\"https:\/\/appdabao.yimenapp.com\/jiage-1643.html\">app\u6253\u5305\u7b2c\u4e09\u65b9\u5e73\u53f0<\/a>. \u5bfc\u51faipa\u5305<\/p>\n<p>\u81ea\u52a8\u7b7e\u540d\u5b8c\u6210\u540e\uff0c\u9700\u8981\u5c06ipa\u5305\u5bfc\u51fa\u3002ipa\u5305\u53ef\u4ee5\u901a\u8fc7xcodebuild\u547d\u4ee4\u6765\u5b8c\u6210\u3002\u5728\u8fdb\u884c\u5bfc\u51fa\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u6307\u5b9a\u8f93\u51fa\u8def\u5f84\u548c\u5bfc\u51fa\u7c7b\u578b\u3002<\/p>\n<p>\u4e8c\u3001iOS\u81ea\u52a8\u5316\u6253\u5305\u81ea\u52a8\u7b7e\u540d\u7684\u8be6\u7ec6\u4ecb\u7ecd<\/p>\n<p>1. \u51c6\u5907\u5de5\u4f5c<\/p>\n<p>\u5728\u8fdb\u884ciOS\u81ea\u52a8\u5316\u6253\u5305\u81ea\u52a8\u7b7e\u540d\u4e4b\u524d\uff0c\u9700\u8981\u8fdb\u884c\u4e00\u4e9b\u51c6\u5907\u5de5\u4f5c\u3002\u8fd9\u4e9b\u51c6\u5907\u5de5\u4f5c\u5305\u62ec\uff1a<\/p>\n<p>1.1 \u51c6\u5907\u8bc1\u4e66\u548c\u63cf\u8ff0\u6587\u4ef6<\/p>\n<p>\u5728\u8fdb\u884c\u81ea\u52a8\u7b7e\u540d\u65f6\uff0c\u9700\u8981\u63d0\u4f9b\u76f8\u5173\u8bc1\u4e66\u548c\u63cf\u8ff0\u6587\u4ef6\u3002\u8bc1\u4e66\u548c\u63cf\u8ff0\u6587\u4ef6\u53ef\u4ee5\u901a\u8fc7Apple Developer\u7f51\u7ad9\u6765\u83b7\u53d6\u3002<\/p>\n<p>1.2 \u5b89\u88c5fastlane<\/p>\n<p>\u81ea\u52a8\u7b7e\u540d\u53ef\u4ee5\u901a\u8fc7fastlane\u5de5\u5177\u6765\u5b8c\u6210\u3002\u56e0\u6b64\uff0c\u9700\u8981\u5148\u5b89\u88c5fastlane\u3002\u5b89\u88c5fastlane\u53ef\u4ee5\u901a\u8fc7RubyGems\u6765\u5b8c\u6210\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5fastlane\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>sudo gem install fastlane -NV<\/p>\n<p>&#8220;`<\/p>\n<p>1.3 \u521b\u5efa\u9879\u76ee<\/p>\n<p>\u521b\u5efa\u4e00\u4e2aiOS\u9879\u76ee\uff0c\u5e76\u8fdb\u884c\u76f8\u5173\u914d\u7f6e\uff0c\u5305\u62ec\uff1a<\/p>\n<p>&#8211; \u8bbe\u7f6eBundle Identifier<\/p>\n<p>&#8211; \u6dfb\u52a0\u8bc1\u4e66\u548c\u63cf\u8ff0\u6587\u4ef6<\/p>\n<p>&#8211; \u8bbe\u7f6eCode Signing Identity<\/p>\n<p>&#8211; \u8bbe\u7f6eProvisioning Profile<\/p>\n<p>2. \u7f16\u5199\u811a\u672c<\/p>\n<p>\u5728\u8fdb\u884ciOS\u81ea\u52a8\u5316\u6253\u5305\u81ea\u52a8\u7b7e\u540d\u65f6\uff0c\u9700\u8981\u7f16\u5199\u811a\u672c\u3002\u811a\u672c\u53ef\u4ee5\u901a\u8fc7Shell\u811a\u672c\u6216Ruby\u811a\u672c\u6765\u7f16\u5199\u3002\u4e0b\u9762\u662f\u4e00\u4e2aShell\u811a\u672c\u7684\u793a\u4f8b\uff1a<\/p>\n<p>&#8220;`shell<\/p>\n<p>#!\/bin\/sh<\/p>\n<p># \u6e05\u7406\u9879\u76ee<\/p>\n<p>xcodebuild clean -project MyApp.xcodeproj -scheme MyApp -configuration Release<\/p>\n<p># \u7f16\u8bd1\u9879\u76ee<\/p>\n<p>xcodebuild build -project MyApp.xcodeproj -scheme MyApp -configuration Release<\/p>\n<p># \u6253\u5305<\/p>\n<p>xcodebuild archive -project MyApp.xcodeproj -scheme MyApp -configuration Release -archivePath .\/build\/MyApp.xcarchive<\/p>\n<p># \u81ea\u52a8\u7b7e\u540d<\/p>\n<p>fastlane sigh &#8211;adhoc &#8211;skip_certificate_verification<\/p>\n<p># \u5bfc\u51faipa\u5305<\/p>\n<p>xcodebuild -exportArchive -archivePath .\/build\/MyApp.xcarchive -exportPath .\/build -exportOptionsPlist .\/exportOptions.plist<\/p>\n<p>&#8220;`<\/p>\n<p>3. \u8fd0\u884c\u811a\u672c<\/p>\n<p>\u5728\u7f16\u5199\u5b8c\u811a\u672c\u4e4b\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u7ec8\u7aef\u8fd0\u884c\u811a\u672c\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u8fd0\u884c\u811a\u672c\uff1a<\/p>\n<p>&#8220;`shell<\/p>\n<p>sh build.sh<\/p>\n<p>&#8220;`<\/p>\n<p>\u8fd0\u884c\u811a\u672c\u4e4b\u540e\uff0c\u5c06\u81ea\u52a8\u5b8c\u6210iOS\u5e94\u7528\u7684\u6253\u5305\u548c\u7b7e\u540d\u3002<\/p>\n<p>\u603b\u7ed3\uff1a<\/p>\n<p>iOS\u81ea\u52a8\u5316\u6253\u5305\u81ea\u52a8\u7b7e\u540d\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u81ea\u52a8\u5316\u5b8c\u6210iOS\u5e94\u7528\u7684\u6253\u5305\u548c\u7b7e\u540d\u3002\u901a\u8fc7\u811a\u672c\u81ea\u52a8\u5316\u5b8c\u6210\u76f8\u5173\u64cd\u4f5c\uff0c\u53ef\u4ee5\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\uff0c\u51cf\u5c11\u51fa<a href=\"https:\/\/appdabao.yimenapp.com\/jiage-2713.html\">\u5b89\u5353apk\u5206\u6790\u5de5\u5177<\/a>\u9519\u7684\u6982\u7387\u3002\u5728\u8fdb\u884ciOS\u81ea\u52a8\u5316\u6253\u5305\u81ea\u52a8\u7b7e\u540d\u65f6\uff0c\u9700\u8981\u8fdb\u884c\u4e00\u4e9b\u51c6\u5907\u5de5\u4f5c\uff0c\u5305\u62ec\u51c6\u5907\u8bc1\u4e66\u548c\u63cf\u8ff0\u6587\u4ef6\u3001\u5b89\u88c5fastlane\u3001\u521b\u5efa\u9879\u76ee\u7b49\u3002\u540c\u65f6\uff0c\u9700\u8981\u7f16\u5199\u811a\u672c\uff0c\u5e76\u901a\u8fc7\u7ec8\u7aef\u6765\u8fd0\u884c\u811a\u672c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>iOS\u81ea\u52a8\u5316\u6253\u5305\u81ea\u52a8\u7b7e\u540d\u662f\u4e00\u79cd\u901a\u8fc7\u811a\u672c\u81ea\u52a8\u5316\u5b8c\u6210iOS\u5e94\u7528\u6253\u5305\u548c\u7b7e\u540d\u7684\u65b9\u5f0f\u3002\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u5f00\u53d1\u8005\u7684\u5de5\u4f5c\u6548\u7387\uff0c\u540c\u65f6\u4e5f\u53ef\u4ee5\u51cf\u5c11\u51fa\u9519\u7684\u6982\u7387\u3002\u672c\u6587\u5c06\u5bf9iOS\u81ea\u52a8\u5316\u6253\u5305\u81ea\u52a8\u7b7e\u540d\u7684\u539f\u7406\u548c\u8be6\u7ec6\u4ecb\u7ecd\u8fdb\u884c\u9610\u8ff0<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[35399,982,35398,30159,507],"topic":[],"class_list":["post-46147","post","type-post","status-publish","format-standard","hentry","category-sjapp","tag-apk","tag-982","tag-ipa","tag-30159","tag-507"],"_links":{"self":[{"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/posts\/46147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/comments?post=46147"}],"version-history":[{"count":1,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/posts\/46147\/revisions"}],"predecessor-version":[{"id":46161,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/posts\/46147\/revisions\/46161"}],"wp:attachment":[{"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/media?parent=46147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/categories?post=46147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/tags?post=46147"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/topic?post=46147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}