{"id":6969,"date":"2026-01-16T16:42:27","date_gmt":"2026-01-16T08:42:27","guid":{"rendered":"https:\/\/t.n-years.com\/?p=6969"},"modified":"2026-01-16T16:42:27","modified_gmt":"2026-01-16T08:42:27","slug":"%e7%a7%bb%e5%8a%a8%e7%ab%af%e6%b5%81%e6%b0%b4%e7%ba%bf%e5%8f%82%e6%95%b0%e5%88%86%e5%b1%82%e6%b2%bb%e7%90%86%e6%9e%b6%e6%9e%84","status":"publish","type":"post","link":"https:\/\/t.n-years.com\/?p=6969","title":{"rendered":"\u79fb\u52a8\u7aef\u6d41\u6c34\u7ebf\u53c2\u6570\u5206\u5c42\u6cbb\u7406\u67b6\u6784"},"content":{"rendered":"<p>\u9488\u5bf9\u6d41\u6c34\u7ebf\u53c2\u6570\u6df7\u4e71\u7684\u95ee\u9898\uff0c\u6838\u5fc3\u89e3\u51b3\u601d\u8def\u662f<strong>\u201c\u804c\u8d23\u5206\u79bb\u201d<\/strong>\u3002\u53c2\u6570\u5e94\u8be5\u6839\u636e\u5176<strong>\u751f\u547d\u5468\u671f<\/strong>\u548c<strong>\u53d8\u66f4\u9891\u7387<\/strong>\u5b58\u653e\u5728\u4e0d\u540c\u7684\u4f4d\u7f6e\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e3a\u4f60\u5236\u5b9a\u7684\u6307\u5bfc\u89c4\u5219\uff0c\u5c06\u53c2\u6570\u5212\u5206\u4e3a\u56db\u4e2a\u5c42\u7ea7\uff1a<\/p>\n<hr \/>\n<h2>\ud83c\udfd7 \u79fb\u52a8\u7aef\u6d41\u6c34\u7ebf\u53c2\u6570\u5206\u5c42\u6cbb\u7406\u67b6\u6784<\/h2>\n<h3>1. \u4ed3\u5e93\u5185\u7f6e\u914d\u7f6e (In-Repo Config)<\/h3>\n<p><strong>\u539f\u5219\uff1a<\/strong> \u51e1\u662f\u4ee3\u7801\u8fd0\u884c\u4f9d\u8d56\u7684\u3001\u4e14\u4e0e\u7279\u5b9a\u6784\u5efa\u8fc7\u7a0b\u65e0\u5173\u7684\u914d\u7f6e\uff0c\u5fc5\u987b\u968f\u4ee3\u7801\u8d70\u3002<\/p>\n<ul>\n<li>\n<p><strong>\u9002\u7528\u5185\u5bb9\uff1a<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u6784\u5efa\u811a\u672c\uff1a<\/strong> <code>Podfile<\/code>\u3001<code>Cartfile<\/code>\u3001<code>package.json<\/code>\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5de5\u7a0b\u5b9a\u4e49\uff1a<\/strong> <code>project.pbxproj<\/code>\u3001<code>Entitlements<\/code>\u3001<code>Info.plist<\/code>\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7248\u672c\u58f0\u660e\uff1a<\/strong> <code>.xcode-version<\/code>\uff08\u6307\u5b9a Xcode \u7248\u672c\uff09\u3001<code>.ruby-version<\/code>\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u9759\u6001\u914d\u7f6e\uff1a<\/strong> \u57cb\u70b9 Schema \u5b9a\u4e49\u3001\u591a\u8bed\u8a00\u9759\u6001\u6587\u4ef6\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4f18\u70b9\uff1a<\/strong> \u4fdd\u8bc1\u4e86\u4ee3\u7801\u5728\u4efb\u4f55\u673a\u5668\u4e0a\u56de\u6eaf\u6784\u5efa\u65f6\uff0c\u7ed3\u679c\u662f\u4e00\u81f4\u7684\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>2. \u5e94\u7528\u8fd0\u884c\u65f6\u914d\u7f6e (App Runtime Config)<\/h3>\n<p><strong>\u539f\u5219\uff1a<\/strong> \u5f71\u54cd App \u8fd0\u884c\u903b\u8f91\u3001\u4f46\u5728\u7f16\u8bd1\u540e\u4ecd\u53ef\u52a8\u6001\u8c03\u6574\u7684\u5f00\u5173\u3002<\/p>\n<ul>\n<li>\n<p><strong>\u9002\u7528\u5185\u5bb9\uff1a<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u73af\u5883\u5207\u6362\uff1a<\/strong> <code>project_prerelease<\/code> (\u9884\u53d1\u5f00\u5173)\u3001\u7f51\u5173\u5730\u5740\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8c03\u8bd5\u5de5\u5177\uff1a<\/strong> <code>jrdebug<\/code>\u3001<code>debugEnable<\/code>\u3001\u65e5\u5fd7\u7b49\u7ea7\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u529f\u80fd\u964d\u7ea7\uff1a<\/strong> \u67d0\u4e9b\u4e1a\u52a1 Feature \u7684\u5f00\u5173\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7ba1\u7406\u65b9\u5f0f\uff1a<\/strong> \u653e\u5165 <strong>DebugMenu<\/strong> \u6216 <strong>\u914d\u7f6e\u4e2d\u5fc3 (Apollo\/Switch)<\/strong>\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u6d41\u6c34\u7ebf\u804c\u8d23\uff1a<\/strong> \u6d41\u6c34\u7ebf\u4ec5\u901a\u8fc7\u4e00\u4e2a <code>BuildType<\/code> \u51b3\u5b9a\u662f\u5426\u5c06\u8fd9\u4e9b\u8c03\u8bd5\u5de5\u5177\u6253\u5305\u8fdb\u53bb\uff0c\u800c\u4e0d\u51b3\u5b9a\u5b83\u4eec\u7684\u5177\u4f53\u5f00\u5173\u72b6\u6001\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>3. \u539f\u5b50\u9ed8\u8ba4\u53c2\u6570 (Atomic Task Config)<\/h3>\n<p><strong>\u539f\u5219\uff1a<\/strong> \u5c5e\u4e8e\u6d41\u6c34\u7ebf\u63d2\u4ef6\uff08\u539f\u5b50\uff09\u5185\u90e8\u7684\u903b\u8f91\uff0c\u5bf9 90% \u7684\u7528\u6237\u900f\u660e\uff0c\u4ec5\u5728\u7279\u6b8a\u60c5\u51b5\u4e0b\u5f00\u653e\u4fee\u6539\u3002<\/p>\n<ul>\n<li>\n<p><strong>\u9002\u7528\u5185\u5bb9\uff1a<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u5de5\u5177\u7248\u672c\uff1a<\/strong> <code>cocoaPodsVersion<\/code>\u3001<code>nodeVersion<\/code>\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u6027\u80fd\u4f18\u5316\uff1a<\/strong> \u662f\u5426\u5f00\u542f\u589e\u91cf\u7f16\u8bd1\u3001\u662f\u5426\u4e0a\u4f20\u7b26\u53f7\u8868\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8d28\u91cf\u626b\u63cf\uff1a<\/strong> <code>analyzePackageResource<\/code> \u7684\u9608\u503c\u3001Lint \u7684\u7ea7\u522b\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7ba1\u7406\u65b9\u5f0f\uff1a<\/strong> \u5728\u6d41\u6c34\u7ebf\u5e73\u53f0\u5b9a\u4e49\u4e3a<strong>\u201c\u9ad8\u7ea7\u9009\u9879\u201d<\/strong>\u6216<strong>\u201c\u9690\u85cf\u53c2\u6570\u201d<\/strong>\uff0c\u63d0\u4f9b\u9ed8\u8ba4\u503c\uff0c\u4ec5\u9650\u7ba1\u7406\u5458\u6216\u7279\u5b9a\u9700\u6c42\u65f6\u4fee\u6539\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>4. \u6d41\u6c34\u7ebf\u8f93\u5165\u53c2\u6570 (Pipeline Manual Params)<\/h3>\n<p><strong>\u539f\u5219\uff1a<\/strong> \u4ec5\u4fdd\u7559<strong>\u5fc5\u987b\u7531\u4eba\u5de5\u51b3\u7b56<\/strong>\u6216<strong>\u63cf\u8ff0\u672c\u6b21\u6784\u5efa\u610f\u56fe<\/strong>\u7684\u52a8\u6001\u53c2\u6570\u3002<\/p>\n<ul>\n<li><strong>\u9002\u7528\u5185\u5bb9\uff1a<\/strong><\/li>\n<li><strong>\u6784\u5efa\u76ee\u6807\uff1a<\/strong> <code>scheme<\/code>\u3001<code>branch\/tag<\/code>\u3001<code>repos<\/code> (\u7ec4\u4ef6\u7248\u672c\u7ec4)\u3002<\/li>\n<li><strong>\u6784\u5efa\u573a\u666f\uff1a<\/strong> <code>buildType<\/code> (Debug\/Release\/Coverage)\u3002<\/li>\n<li><strong>\u5206\u53d1\u6e20\u9053\uff1a<\/strong> <code>channel<\/code> (AppStore\/TestFlight\/Enterprise)\u3002<\/li>\n<li><strong>\u5173\u8054\u5c5e\u6027\uff1a<\/strong> <code>devErps<\/code> (\u89e6\u53d1\u4eba)\u3001<code>planNo<\/code> (\u5982\u679c\u4e0d\u7b26\u5408\u547d\u540d\u89c4\u8303\u9700\u624b\u52a8\u586b\u65f6)\u3002<\/li>\n<\/ul>\n<hr \/>\n<h2>\ud83d\udcca \u53c2\u6570\u653e\u7f6e\u51b3\u7b56\u77e9\u9635<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u53c2\u6570\u7c7b\u578b<\/th>\n<th>\u653e\u7f6e\u4f4d\u7f6e<\/th>\n<th>\u4fee\u6539\u9891\u7387<\/th>\n<th>\u8c01\u6765\u7ba1\u7406<\/th>\n<th>\u5178\u578b\u4f8b\u5b50<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>\u5f3a\u4f9d\u8d56\u914d\u7f6e<\/strong><\/td>\n<td>\u4ed3\u5e93 (Git)<\/td>\n<td>\u6781\u4f4e<\/td>\n<td>\u5f00\u53d1\u4eba\u5458<\/td>\n<td><code>Xcode Version<\/code>, <code>Podfile<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>\u539f\u5b50\u903b\u8f91<\/strong><\/td>\n<td>\u6d41\u6c34\u7ebf\u539f\u5b50<\/td>\n<td>\u4f4e<\/td>\n<td>\u67b6\u6784\/\u8fd0\u7ef4<\/td>\n<td><code>Cocoapods Version<\/code>, <code>SkipLint<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>\u8fd0\u884c\u4e1a\u52a1<\/strong><\/td>\n<td>DebugMenu\/\u914d\u7f6e\u4e2d\u5fc3<\/td>\n<td>\u4e2d<\/td>\n<td>\u4ea7\u54c1\/\u6d4b\u8bd5<\/td>\n<td><code>PreReleaseMode<\/code>, <code>GatewayURL<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>\u6784\u5efa\u610f\u56fe<\/strong><\/td>\n<td>\u6d41\u6c34\u7ebf\u542f\u52a8\u9875<\/td>\n<td>\u9ad8<\/td>\n<td>\u5f00\u53d1\u4eba\u5458<\/td>\n<td><code>Branch<\/code>, <code>BuildType<\/code>, <code>Repos<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2>\ud83d\udca1 \u6cbb\u7406\u5efa\u8bae\uff08\u907f\u5751\u6307\u5357\uff09<\/h2>\n<ol>\n<li><strong>\u6d88\u9664\u5197\u4f59\u7684\u5e03\u5c14\u503c<\/strong>\uff1a<br \/>\n\u4e0d\u8981\u8bbe\u7f6e <code>isSimulator<\/code>\u3001<code>isArm64<\/code>\u3001<code>isTF<\/code> \u8fd9\u79cd\u4e92\u65a5\u53c2\u6570\u3002\u7edf\u4e00\u7528\u4e00\u4e2a <code>destination<\/code> (Simulator\/Device) \u548c <code>buildType<\/code> (Debug\/Release) \u81ea\u52a8\u63a8\u5bfc\u3002<\/li>\n<li><strong>\u63a8\u884c\u201c\u914d\u7f6e\u5373\u4ee3\u7801\u201d (CaC)<\/strong>\uff1a<br \/>\n\u5bf9\u4e8e\u590d\u6742\u7684 <code>repos<\/code> \u53c2\u6570\u7ec4\uff0c\u5efa\u8bae\u652f\u6301\u5728\u4ed3\u5e93\u6839\u76ee\u5f55\u653e\u4e00\u4e2a <code>build.json<\/code>\u3002\u6d41\u6c34\u7ebf\u542f\u52a8\u65f6\u8bfb\u53d6\u8be5\u6587\u4ef6\u4f5c\u4e3a\u9ed8\u8ba4\u503c\uff0c\u800c\u4e0d\u662f\u8ba9\u7528\u6237\u5728\u7f51\u9875\u4e0a\u586b\u51e0\u5341\u4e2a\u8f93\u5165\u6846\u3002<\/li>\n<li><strong>\u539f\u5b50\u53c2\u6570\u9690\u8eab\u5316<\/strong>\uff1a<br \/>\n\u6bd4\u5982 <code>analyzePackageResource<\/code>\uff0c\u5982\u679c\u5b83\u6267\u884c\u5f88\u5feb\uff0c\u5c31\u4e0d\u5e94\u8be5\u4f5c\u4e3a\u4e00\u4e2a\u53c2\u6570\u51fa\u73b0\u5728\u542f\u52a8\u9875\u9762\uff0c\u800c\u662f\u4f5c\u4e3a\u6d41\u6c34\u7ebf\u7684<strong>\u5185\u7f6e\u5f3a\u5236\u6b65\u9aa4<\/strong>\uff0c\u53ea\u6709\u5931\u8d25\u65f6\u624d\u5f39\u51fa\u901a\u77e5\u3002<\/li>\n<li><strong>\u73af\u5883\u4e0a\u4e0b\u6587\u81ea\u52a8\u83b7\u53d6<\/strong>\uff1a<br \/>\n<code>planNo<\/code> (\u96c6\u6210\u5355\u53f7) \u5e94\u8be5\u901a\u8fc7 <code>git_branch_name<\/code> \u914d\u5408\u6b63\u5219\u8868\u8fbe\u5f0f\u81ea\u52a8\u63d0\u53d6\uff0c\u53ea\u6709\u6b63\u5219\u5339\u914d\u5931\u8d25\u65f6\uff0c\u624d\u5c55\u793a\u8f93\u5165\u6846\u8ba9\u7528\u6237\u8865\u5168\u3002<\/li>\n<\/ol>\n<p><strong>\u60a8\u76ee\u524d\u7684\u6d41\u6c34\u7ebf\u5e73\u53f0\u652f\u6301\u53c2\u6570\u95f4\u7684\u8054\u52a8\u5417\uff1f\uff08\u4f8b\u5982\u9009\u4e86 Release \u81ea\u52a8\u9690\u85cf\u9884\u53d1\u5f00\u5173\uff09\u6211\u53ef\u4ee5\u6839\u636e\u6b64\u529f\u80fd\u7ed9\u60a8\u5177\u4f53\u7684 UI \u5e03\u5c40\u5efa\u8bae\u3002<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9488\u5bf9\u6d41\u6c34\u7ebf\u53c2\u6570\u6df7\u4e71\u7684\u95ee\u9898\uff0c\u6838\u5fc3\u89e3\u51b3\u601d\u8def\u662f\u201c\u804c\u8d23\u5206\u79bb\u201d\u3002\u53c2\u6570\u5e94\u8be5\u6839\u636e\u5176\u751f\u547d\u5468\u671f\u548c\u53d8\u66f4\u9891\u7387\u5b58\u653e\u5728\u4e0d\u540c\u7684\u4f4d\u7f6e\u3002 \u4ee5\u4e0b&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/t.n-years.com\/?p=6969\">\u9605\u8bfb\u66f4\u591a<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[159],"tags":[],"class_list":["post-6969","post","type-post","status-publish","format-standard","hentry","category-159"],"_links":{"self":[{"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/posts\/6969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/t.n-years.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6969"}],"version-history":[{"count":1,"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/posts\/6969\/revisions"}],"predecessor-version":[{"id":6970,"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/posts\/6969\/revisions\/6970"}],"wp:attachment":[{"href":"https:\/\/t.n-years.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/t.n-years.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/t.n-years.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}