{"id":71081,"date":"2026-08-03T09:30:26","date_gmt":"2026-08-03T01:30:26","guid":{"rendered":"https:\/\/www.yimenapp.net\/knowledge\/appup-71081.html"},"modified":"2026-08-03T09:30:26","modified_gmt":"2026-08-03T01:30:26","slug":"vue%e6%89%93%e5%8c%85app%e8%8b%b9%e6%9e%9c%e4%b8%8a%e6%9e%b6%e6%93%8d%e4%bd%9c%e5%8a%9e%e6%b3%95%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.yimenapp.net\/knowledge\/appup-71081.html","title":{"rendered":"vue\u6253\u5305app\u82f9\u679c\u4e0a\u67b6\u64cd\u4f5c\u529e\u6cd5\u4ecb\u7ecd"},"content":{"rendered":"<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.yimenyun.net\/2023-03\/31\/11\/31367165133.jpg\" \/><\/figure>\n<\/p>\n<p>     Vue\u6253\u5305APP\u82f9\u679c\u4e0a\u67b6\u5168\u653b\u7565\uff1a\u4ece\u5f00\u53d1\u5230\u6210\u529f\u4e0a\u67b6\u7684\u5173\u952e\u6b65\u9aa4<\/p>\n<p>\u5728\u79fb\u52a8\u5e94\u7528\u5f00\u53d1\u9886\u57df\uff0cVue.js\u56e0\u5176\u7b80\u6d01\u7684\u8bed\u6cd5\u548c\u9ad8\u6548\u7684\u6027\u80fd\uff0c\u6210\u4e3a\u4f17\u591a\u5f00\u53d1\u8005\u7684\u9996\u9009\u6846\u67b6\u3002\u7136\u800c\uff0c\u5f53Vue\u5e94\u7528\u5f00\u53d1\u5b8c\u6210\u540e\uff0c\u5982\u4f55\u5c06\u5176\u6253\u5305\u6210\u539f\u751fAPP\u5e76\u6210\u529f\u4e0a\u67b6\u82f9\u679cApp Store\uff0c\u5374\u8ba9\u4e0d\u5c11\u5f00\u53d1\u8005\u611f\u5230\u56f0\u60d1\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdVue\u6253\u5305APP\u82f9\u679c\u4e0a\u67b6\u7684\u5168\u8fc7\u7a0b\uff0c\u5e2e\u52a9\u60a8\u987a\u5229\u5b8c\u6210\u5e94\u7528\u53d1\u5e03\u3002<\/p>\n<p>\u4e00\u3001Vue\u5e94\u7528\u6253\u5305\u524d\u7684\u51c6\u5907\u5de5\u4f5c<\/p>\n<ol>\n<li>\n<p><strong>\u9009\u62e9\u5408\u9002\u7684\u6253\u5305\u5de5\u5177<\/strong>\uff1a\u5bf9\u4e8eVue\u9879\u76ee\uff0c\u5e38\u7528\u7684\u6253\u5305\u5de5\u5177\u6709Cordova\u3001Capacitor\u548cNativeScript\u7b49\u3002\u5176\u4e2d\uff0cCapacitor\u56e0\u5176\u73b0\u4ee3\u5316\u67b6\u6784\u548c\u5bf9Vue\u7684\u826f\u597d\u652f\u6301\uff0c\u6210\u4e3a\u63a8\u8350\u9009\u62e9\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5\u5fc5\u8981\u4f9d\u8d56<\/strong>\uff1a\u5728\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Capacitor\uff1a<\/p>\n<pre><code>npm install @capacitor\/core @capacitor\/cli\nnpx cap init\n<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6e\u9879\u76ee\u4fe1\u606f<\/strong>\uff1a\u5728capacitor.config.json\u4e2d\u914d\u7f6e\u5e94\u7528\u7684\u57fa\u672c\u4fe1\u606f\uff0c\u5305\u62ecappId\u3001appName\u7b49\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u4e8c\u3001Vue\u9879\u76ee\u6253\u5305\u6210iOS\u5e94\u7528<\/p>\n<ol>\n<li>\n<p><strong>\u6784\u5efaVue\u9879\u76ee<\/strong>\uff1a\u9996\u5148\u9700\u8981\u5c06Vue\u9879\u76ee\u6784\u5efa\u4e3a\u9759\u6001\u8d44\u6e90\uff1a<\/p>\n<pre><code>npm run build\n<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>\u6dfb\u52a0iOS\u5e73\u53f0\u652f\u6301<\/strong>\uff1a<\/p>\n<pre><code>npx cap add ios\nnpx cap sync\n<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>Xcode\u9879\u76ee\u914d\u7f6e<\/strong>\uff1a\u6253\u5f00\u751f\u6210\u7684iOS\u9879\u76ee\uff08\u4f4d\u4e8eios\/App\u76ee\u5f55\uff09\uff0c\u5728Xcode\u4e2d\u8fdb\u884c\u5fc5\u8981\u7684\u914d\u7f6e\uff1a<\/p>\n<ul>\n<li>\u8bbe\u7f6eBundle Identifier<\/li>\n<li>\u914d\u7f6e\u5e94\u7528\u56fe\u6807\u548c\u542f\u52a8\u753b\u9762<\/li>\n<li>\u8bbe\u7f6e\u6743\u9650\u8bf7\u6c42\u63cf\u8ff0<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u4e09\u3001\u82f9\u679c\u5f00\u53d1\u8005\u8d26\u53f7\u51c6\u5907<\/p>\n<ol>\n<li>\n<p><strong>\u6ce8\u518c\u82f9\u679c\u5f00\u53d1\u8005\u8d26\u53f7<\/strong>\uff1a\u9700\u8981\u652f\u4ed8\u5e74\u8d3999\u7f8e\u5143\uff0c\u6ce8\u518c\u5730\u5740\uff1adeveloper.apple.com<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efaApp ID<\/strong>\uff1a\u5728\u5f00\u53d1\u8005\u8d26\u53f7\u4e2d\u4e3a\u60a8\u7684\u5e94\u7528\u521b\u5efa\u552f\u4e00\u7684App ID<\/p>\n<\/li>\n<li>\n<p><strong>\u51c6\u5907\u8bc1\u4e66\u548c\u63cf\u8ff0\u6587\u4ef6<\/strong>\uff1a<\/p>\n<ul>\n<li>\u5f00\u53d1\u8bc1\u4e66\uff08Development Certificate\uff09<\/li>\n<li>\u5206\u53d1\u8bc1\u4e66\uff08Distribution Certificate\uff09<\/li>\n<li>\u5f00\u53d1\u63cf\u8ff0\u6587\u4ef6\uff08Development Provisioning Profile\uff09<\/li>\n<li>\u5206\u53d1\u63cf\u8ff0\u6587\u4ef6\uff08Distribution Provisioning Profile\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u56db\u3001\u5e94\u7528\u63d0\u4ea4\u524d\u7684\u5173\u952e\u68c0\u67e5<\/p>\n<ol>\n<li>\n<p><strong>\u5e94\u7528\u5143\u6570\u636e\u51c6\u5907<\/strong>\uff1a<\/p>\n<ul>\n<li>\u5e94\u7528\u540d\u79f0\uff08\u4e0d\u8d85\u8fc730\u4e2a\u5b57\u7b26\uff09<\/li>\n<li>\u5173\u952e\u8bcd\uff08\u4e0d\u8d85\u8fc7100\u4e2a\u5b57\u7b26\uff09<\/li>\n<li>\u63cf\u8ff0\uff08\u6e05\u6670\u8bf4\u660e\u5e94\u7528\u529f\u80fd\uff09<\/li>\n<li>\u622a\u56fe\uff085.5\u82f1\u5bf8\u548c6.5\u82f1\u5bf8\u8bbe\u5907\u5404\u4e00\u5957\uff09<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u9690\u79c1\u653f\u7b56<\/strong>\uff1a\u5fc5\u987b\u63d0\u4f9b\u53ef\u8bbf\u95ee\u7684\u9690\u79c1\u653f\u7b56URL<\/p>\n<\/li>\n<li>\n<p><strong>\u5e94\u7528\u5e74\u9f84\u5206\u7ea7<\/strong>\uff1a\u6839\u636e\u5e94\u7528\u5185\u5bb9\u9009\u62e9\u9002\u5f53\u7684\u5206\u7ea7<\/p>\n<\/li>\n<\/ol>\n<p>\u4e94\u3001\u63d0\u4ea4\u5e94\u7528\u5230App Store\u5ba1\u6838<\/p>\n<ol>\n<li>\n<p><strong>\u6784\u5efa\u5f52\u6863\u6587\u4ef6<\/strong>\uff1a\u5728Xcode\u4e2d\u9009\u62e9&quot;Product &gt; Archive&quot;\u751f\u6210\u5f52\u6863\u6587\u4ef6<\/p>\n<\/li>\n<li>\n<p><strong>\u4e0a\u4f20\u5230App Store Connect<\/strong>\uff1a\u901a\u8fc7Xcode\u6216Transporter\u5de5\u5177\u4e0a\u4f20<\/p>\n<\/li>\n<li>\n<p><strong>\u586b\u5199\u5ba1\u6838\u4fe1\u606f<\/strong><a href=\"https:\/\/appshangjia.yimenapp.com\/shangjia-766.html\">ios\u4e0a\u67b6app\u652f\u4ed8\u65b9\u5f0f<\/a>\uff1a\u5728App Store Connect\u4e2d\u5b8c\u5584\u6240\u6709\u5fc5\u8981\u4fe1\u606f<\/p>\n<\/li>\n<li>\n<p><strong>\u63d0\u4ea4\u5ba1\u6838<\/strong>\uff1a\u786e\u8ba4\u65e0\u8bef\u540e\u63d0\u4ea4\u5e94\u7528\u8fdb\u884c\u5ba1\u6838<\/p>\n<\/li>\n<\/ol>\n<p>\u516d\u3001\u5e38\u89c1\u88ab\u62d2\u539f\u56e0\u53ca\u89e3\u51b3\u65b9\u6848<\/p>\n<ol>\n<li>\n<p><strong>\u5143\u6570\u636e\u88ab\u62d2<\/strong>\uff1a\u786e\u4fdd\u622a\u56fe\u771f\u5b9e\u53cd\u6620\u5e94\u7528\u529f\u80fd\uff0c\u63cf\u8ff0\u4e0d\u542b\u8bef\u5bfc\u6027\u5185\u5bb9<\/p>\n<\/li>\n<li>\n<p><strong>\u529f\u80fd\u95ee\u9898<\/strong>\uff1a\u786e\u4fdd\u6240\u6709\u529f\u80fd\u6b63\u5e38\u5de5\u4f5c\uff0c\u65e0\u5d29\u6e83\u60c5\u51b5<\/p>\n<\/li>\n<li>\n<p><strong>\u8bbe\u8ba1\u95ee\u9898<\/strong>\uff1a\u9075\u5faa\u82f9\u679c\u4eba\u673a\u754c\u9762\u6307\u5357\uff0c\u63d0\u4f9b\u826f\u597d\u7684\u7528\u6237\u4f53\u9a8c<\/p>\n<\/li>\n<li>\n<p><strong>\u9690\u79c1\u95ee\u9898<\/strong>\uff1a\u6b63\u786e\u58f0\u660e\u6570\u636e\u6536\u96c6\u884c\u4e3a\uff0c\u63d0\u4f9b\u9690\u79c1\u653f\u7b56<\/p>\n<\/li>\n<\/ol>\n<p>\u4e03\u3001\u5ba1\u6838\u901a\u8fc7\u540e\u7684\u53d1\u5e03<\/p>\n<ol>\n<li>\n<p><strong>\u9009\u62e9\u53d1\u5e03\u65b9\u5f0f<\/strong>\uff1a\u624b\u52a8\u53d1\u5e03\u6216\u81ea\u52a8\u53d1\u5e03<\/p>\n<\/li>\n<li>\n<p><strong>\u76d1\u63a7\u5e94\u7528\u8868\u73b0<\/strong>\uff1a\u5173\u6ce8\u4e0b\u8f7d\u91cf\u3001\u8bc4\u5206\u548c\u8bc4\u8bba<\/p>\n<\/li>\n<li>\n<p><strong>\u53ca\u65f6\u66f4\u65b0<\/strong>\uff1a\u6839\u636e\u7528\u6237\u53cd\u9988\u5b9a\u671f\u66f4\u65b0\u5e94\u7528<\/p>\n<\/li>\n<\/ol>\n<p>\u5bf9\u4e8e\u5e0c\u671b\u7b80\u5316\u4e0a\u67b6\u6d41\u7a0b\u7684\u5f00\u53d1\u8005\uff0c\u53ef\u4ee5\u8003\u8651\u4e13\u4e1a\u7684\u4e0a\u67b6\u670d\u52a1\u3002\u4e00\u95e8APP\u4ee3\u4e0a\u67b6\u5e73\u53f0\u4e13\u6ce8APP\u4e0a\u67b6\u670d\u52a110\u5e74\uff0c\u63d0\u4f9bAPP\u4e0a\u67b6\u5168\u6d41\u7a0b\u670d\u52a1\uff0c\u5305\u62ecAPP\u5f00\u53d1\u8005\u8d44\u8d28\u534f\u52a9\uff0cAPP\u8f6f\u8457\u7533\u8bf7\uff0cAPP\u5907\u6848\u534f\u52a9\uff0cAPP\u9884\u5ba1\uff0cAPP\u88ab\u62d2\u89e3\u51b3\u65b9\u6848\u7b49\uff1b\u5305\u6210\u529f\uff0cAPP\u6ca1\u4e0a\u67b6\u6210\u529f\u5168\u989d\u9000\u6b3e\u4e0a\u67b6\u670d\u52a1\u8d39\u3002\u8ba9\u60a8\u7684APP\u8f7b\u677e\u5feb\u6377\u53d1\u5e03\u5230\u8c37\u6b4c\u5546\u5e97\uff0c\u82f9\u679cAPPstore\uff0c\u4ee5\u53ca\u56fd\u5185\u4e3b\u6d41\u5b89\u5353\u5546\u5e97\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vue\u6253\u5305APP\u82f9\u679c\u4e0a\u67b6\u5168\u653b\u7565\uff1a\u4ece\u5f00\u53d1\u5230\u6210\u529f\u4e0a\u67b6\u7684\u5173\u952e\u6b65\u9aa4<br \/>\n\u5728\u79fb\u52a8\u5e94\u7528\u5f00\u53d1\u9886\u57df\uff0cVue.js\u56e0\u5176\u7b80\u6d01\u7684\u8bed\u6cd5\u548c\u9ad8\u6548\u7684\u6027\u80fd\uff0c\u6210\u4e3a\u4f17\u591a\u5f00\u53d1\u8005\u7684\u9996\u9009\u6846\u67b6\u3002\u7136\u800c\uff0c\u5f53Vue\u5e94\u7528\u5f00\u53d1\u5b8c\u6210\u540e\uff0c\u5982\u4f55\u5c06\u5176\u6253\u5305\u6210\u539f\u751fAP<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[673,209,89],"topic":[],"class_list":["post-71081","post","type-post","status-publish","format-standard","hentry","category-appup","tag-673","tag-209","tag-89"],"_links":{"self":[{"href":"https:\/\/www.yimenapp.net\/knowledge\/wp-json\/wp\/v2\/posts\/71081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenapp.net\/knowledge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenapp.net\/knowledge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenapp.net\/knowledge\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenapp.net\/knowledge\/wp-json\/wp\/v2\/comments?post=71081"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenapp.net\/knowledge\/wp-json\/wp\/v2\/posts\/71081\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenapp.net\/knowledge\/wp-json\/wp\/v2\/media?parent=71081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenapp.net\/knowledge\/wp-json\/wp\/v2\/categories?post=71081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenapp.net\/knowledge\/wp-json\/wp\/v2\/tags?post=71081"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenapp.net\/knowledge\/wp-json\/wp\/v2\/topic?post=71081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}