{"id":58838,"date":"2024-05-30T12:45:29","date_gmt":"2024-05-30T04:45:29","guid":{"rendered":"https:\/\/www.yimenapp.com\/kb-yimen\/?p=58838"},"modified":"2024-05-30T12:45:29","modified_gmt":"2024-05-30T04:45:29","slug":"uniapp-%e8%8b%b9%e6%9e%9c%e5%95%86%e5%ba%97%e4%b8%8a%e6%9e%b6%e6%93%8d%e4%bd%9c%e6%ad%a5%e9%aa%a4%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.yimenapp.com\/kb-yimen\/58838\/","title":{"rendered":"uniapp \u82f9\u679c\u5546\u5e97\u4e0a\u67b6\u64cd\u4f5c\u6b65\u9aa4\u4ecb\u7ecd"},"content":{"rendered":"<p>Uni<span class=\"wpcom_keyword_link\"><a href=\"https:\/\/www.yimenapp.com\" target=\"_blank\" title=\"\u5f00\u53d1app\u4ece\u4e00\u95e8\u5f00\u59cb\">app<\/a><\/span> \u662f\u4e00\u79cd\u8de8\u5e73\u53f0\u7684\u5f00\u53d1\u6846\u67b6\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e00\u6b21\u7f16\u5199\uff0c\u591a\u7aef\u8fd0\u884c\u7684\u6548\u679c\uff0c\u5305\u62ec i<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.yimenyun.net\/2023-03\/31\/13\/12367807565.jpg\" \/><\/figure><\/p>\n<p>OS\u3001Android\u3001Web \u7b49\u591a\u4e2a\u5e73\u53f0\u3002\u5728 Uniapp \u4e0a\u5f00\u53d1\u7684<span class=\"wpcom_tag_link\"><a href=\"https:\/\/www.yimenapp.com\/kb-yimen\/tag\/%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/\" title=\"\u5e94\u7528\u7a0b\u5e8f\" target=\"_blank\">\u5e94\u7528\u7a0b\u5e8f<\/a><\/span>\u53ef\u4ee5\u901a\u8fc7\u82f9\u679c\u5546\u5e97\u8fdb\u884c<span class=\"wpcom_tag_link\"><a href=\"https:\/\/www.yimenapp.com\/kb-yimen\/tag\/shangjia\/\" title=\"\u4e0a\u67b6\" target=\"_blank\">\u4e0a\u67b6<\/a><\/span>\uff0c\u4e0b\u9762\u5c06\u5bf9\u5176\u539f\u7406\u548c\u8be6\u7ec6\u4ecb\u7ecd\u8fdb\u884c\u8bf4\u660e\u3002<\/p>\n<p>\u4e00\u3001\u539f\u7406<\/p>\n<p>Uniapp \u662f\u57fa\u4e8e Vue.js \u6846\u67b6\u7684\uff0c\u5b83\u901a\u8fc7\u5c01\u88c5\u539f\u751f\u7684\u7ec4\u4ef6\u548c API\uff0c\u63d0\u4f9b\u4e86\u4e00\u5957\u8de8\u5e73\u53f0\u7684\u5f00\u53d1\u65b9\u6848\u3002\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0cUniapp \u4f1a\u6839\u636e\u4e0d\u540c\u5e73\u53f0\u7684\u7279\u70b9\u8fdb\u884c\u9002\u914d\uff0c\u5e76\u5c06\u4ee3\u7801\u7f16\u8bd1\u4e3a\u539f\u751f\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u5728 iOS \u5e73\u53f0\u4e0a\uff0cUniapp \u4f1a\u5c06\u4ee3\u7801\u7f16\u8bd1\u4e3a Objective-C \u8bed\u8a00\uff0c\u7136\u540e\u901a\u8fc7 Xcode \u8fdb\u884c\u6253\u5305\u548c\u4e0a\u67b6\u3002<\/p>\n<p>\u4e8c\u3001\u8be6\u7ec6\u4ecb\u7ecd<\/p>\n<p>1. \u73af\u5883\u51c6\u5907<\/p>\n<p>\u5728\u8fdb\u884c\u4e0a\u67b6\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u51c6\u5907\u597d\u4ee5\u4e0b\u73af\u5883\uff1a<\/p>\n<p>&#8211; Xcode\uff1a\u7528\u4e8e\u6253\u5305\u548c\u4e0a\u67b6\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>&#8211; Apple \u5f00\u53d1\u8005\u8d26\u53f7\uff1a\u7528\u4e8e\u521b\u5efa App ID\u3001<span class=\"wpcom_tag_link\"><a href=\"https:\/\/www.yimenapp.com\/kb-yimen\/tag\/%e8%af%81%e4%b9%a6\/\" title=\"\u8bc1\u4e66\" target=\"_blank\">\u8bc1\u4e66<\/a><\/span>\u548c Provisioning Profile\u3002<\/p>\n<p>&#8211; Uniapp \u5f00\u53d1\u73af\u5883\uff1a\u7528\u4e8e\u5f00\u53d1\u548c\u7f16\u8bd1\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>2. \u521b\u5efa App ID<\/p>\n<p>\u5728 Apple \u5f00\u53d1\u8005\u4e2d\u5fc3\u521b\u5efa\u4e00\u4e2a App ID\uff0c\u5373\u4e00\u4e2a\u552f\u4e00\u7684\u5e94\u7528\u7a0b\u5e8f\u6807\u8bc6\u7b26\uff0c\u7528\u4e8e\u533a\u5206\u4e0d\u540c\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u521b\u5efa\u8fc7\u7a0b\u4e2d\u9700\u8981\u586b\u5199\u5e94\u7528\u7a0b\u5e8f\u7684\u540d\u79f0\u3001Bundle ID \u548c\u652f\u6301\u7684\u8bbe\u5907\u7b49\u4fe1\u606f\u3002<\/p>\n<p>3. \u521b\u5efa\u8bc1\u4e66<\/p>\n<p>\u8bc1\u4e66\u7528\u4e8e\u8bc1\u660e\u5f00\u53d1\u8005\u7684\u8eab\u4efd\u548c\u5e94\u7528\u7a0b\u5e8f\u7684\u5408\u6cd5\u6027\uff0c\u9700\u8981\u5728 Apple \u5f00\u53d1\u8005\u4e2d\u5fc3\u8fdb\u884c\u521b\u5efa\u3002\u5728\u521b\u5efa\u8bc1\u4e66\u4e4b\u524d\uff0c\u9700\u8981\u5148\u521b\u5efa\u4e00\u4e2a\u8bc1\u4e66\u7b7e\u540d\u8bf7\u6c42\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u4e0a\u4f20\u5230\u5f00\u53d1\u8005\u4e2d\u5fc3\u3002\u7136\u540e\u518d\u521b\u5efa\u5f00\u53d1\u8bc1\u4e66\u6216\u53d1\u5e03\u8bc1\u4e66\uff0c\u7528\u4e8e\u5f00\u53d1\u6216\u4e0a\u67b6\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>4. \u521b\u5efa Provisioning Profile<\/p>\n<p>Provisioning Profile \u662f\u7528\u4e8e\u6388\u6743\u5e94\u7528\u7a0b\u5e8f\u5728\u7279\u5b9a\u8bbe\u5907\u4e0a\u8fd0\u884c\u7684\u6587\u4ef6\uff0c\u9700\u8981\u5728 Apple \u5f00\u53d1\u8005\u4e2d\u5fc3\u8fdb\u884c\u521b\u5efa\u3002\u5728\u521b\u5efa\u8fc7\u7a0b\u4e2d\u9700\u8981\u9009\u62e9\u5e94\u7528\u7a0b\u5e8f\u7684 App ID\u3001\u8bc1\u4e66\u548c\u652f\u6301\u7684\u8bbe\u5907\u7b49\u4fe1\u606f\u3002<\/p>\n<p>5. \u7f16\u8bd1\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>\u5728\u5b8c\u6210\u4ee5\u4e0a\u6b65\u9aa4\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 Uniapp \u5f00\u53d1\u73af\u5883\u8fdb\u884c\u5e94\u7528\u7a0b\u5e8f\u7684\u7f16\u8bd1\u3002\u5728\u7f16\u8bd1\u8fc7\u7a0b\u4e2d\uff0c\u9700\u8981\u9009\u62e9\u5e94\u7528\u7a0b\u5e8f\u7684\u5e73\u53f0\u548c\u6253\u5305\u7c7b\u578b\uff0c\u5e76\u586b\u5199\u5e94\u7528\u7a0b\u5e8f\u7684\u57fa\u672c\u4fe1\u606f\u548c\u56fe\u6807\u7b49\u4fe1\u606f\u3002<\/p>\n<p>6. \u6253\u5305\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>\u5728\u7f16\u8bd1\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u5f97\u5230\u4e00\u4e2a\u7b26\u5408 iOS \u5e73\u53f0\u7684\u5e94\u7528\u7a0b\u5e8f\u5305\uff0c\u53ef\u4ee5\u901a\u8fc7 Xcode \u8fdb\u884c\u6253\u5305\u548c\u4e0a\u67b6\u3002\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u9700\u8981\u9009\u62e9\u6b63\u786e\u7684\u8bc1\u4e66\u3001Provisioning Profile \u548c\u5e94\u7528\u7a0b\u5e8f\u5305\uff0c\u5e76\u586b\u5199\u5e94\u7528\u7a0b\u5e8f\u7684\u57fa\u672c\u4fe1\u606f\u548c\u56fe\u6807\u7b49\u4fe1\u606f\u3002<\/p>\n<p>7. \u4e0a\u67b6\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>\u5728\u5b8c\u6210\u6253\u5305\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u5e94\u7528\u7a0b\u5e8f\u4e0a\u4f20\u5230\u82f9\u679c\u5546\u5e97\u8fdb\u884c\u4e0a\u67b6\u3002\u5728\u4e0a\u67b6\u8fc7\u7a0b\u4e2d\uff0c\u9700\u8981\u586b\u5199\u5e94\u7528\u7a0b\u5e8f\u7684\u57fa\u672c\u4fe1\u606f\u3001\u4ef7\u683c\u548c\u9690\u79c1\u653f\u7b56\u7b49\u4fe1\u606f\uff0c\u5e76\u8fdb\u884c\u5ba1\u6838\u548c\u53d1\u5e03\u3002<\/p>\n<p>\u603b\u4e4b\uff0cUniapp \u662f\u4e00\u79cd\u975e\u5e38\u65b9\u4fbf\u7684\u8de8\u5e73\u53f0\u5f00\u53d1\u6846\u67b6\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e00\u6b21\u7f16\u5199\uff0c\u591a\u7aef\u8fd0\u884c\u7684\u6548\u679c\u3002\u5728\u8fdb\u884c iOS \u5e73\u53f0\u7684\u4e0a\u67b6\u65f6\uff0c\u9700\u8981\u8fdb\u884c\u4e00\u7cfb\u5217\u7684\u51c6\u5907\u5de5\u4f5c\uff0c\u5e76\u9075\u5faa\u82f9\u679c\u5546\u5e97\u7684\u89c4\u5b9a\u548c\u5ba1\u6838\u8981\u6c42\u3002<\/p>\n<p><a href=\"https:\/\/www.applebyme.cn\/shop\/Detail\/55\">\u817e\u8baf\u4e0a\u67b6<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Uniapp \u662f\u4e00\u79cd\u8de8\u5e73\u53f0\u7684\u5f00\u53d1\u6846\u67b6\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e00\u6b21\u7f16\u5199\uff0c\u591a\u7aef\u8fd0\u884c\u7684\u6548\u679c\uff0c\u5305\u62ec iOS\u3001Android\u3001Web \u7b49\u591a\u4e2a\u5e73\u53f0\u3002\u5728 Uniapp \u4e0a\u5f00\u53d1\u7684\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u901a\u8fc7\u82f9\u679c\u5546\u5e97\u8fdb\u884c\u4e0a\u67b6\uff0c\u4e0b\u9762\u5c06\u5bf9\u5176\u539f\u7406\u548c<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[549,14184,2445,36700,3560],"special":[],"attr":[],"class_list":["post-58838","post","type-post","status-publish","format-standard","hentry","category-appsj","tag-shangjia","tag-app","tag-2445","tag-36700","tag-3560","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/58838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/comments?post=58838"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/58838\/revisions"}],"predecessor-version":[{"id":58976,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/58838\/revisions\/58976"}],"wp:attachment":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/media?parent=58838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/categories?post=58838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/tags?post=58838"},{"taxonomy":"special","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/special?post=58838"},{"taxonomy":"attr","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/attr?post=58838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}