{"id":2967,"date":"2023-08-16T12:33:45","date_gmt":"2023-08-16T04:33:45","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=2967"},"modified":"2023-08-16T12:33:45","modified_gmt":"2023-08-16T04:33:45","slug":"hbuilerx%e6%89%93%e5%8c%85ios%e6%ad%a5%e9%aa%a4%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/2967\/","title":{"rendered":"hbuilerx\u6253\u5305ios\u6b65\u9aa4\u4ecb\u7ecd"},"content":{"rendered":"

HBuilderX\u662f\u4e00\u6b3e\u57fa\u4e8eTypeScript\u548cVue.js\u5f00\u53d1\u7684\u8de8\u5e73\u53f0\u5f00\u53d1\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u5f00\u53d1\u591a\u4e2a\u5e73\u53f0\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5305\u62eciOS\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5c06\u4e3a\u4f60\u4ecb\u7ecdHBuilderX\u6253\u5305iOS\u5e94\u7528\u7a0b\u5e8f\u7684\u539f\u7406\u548c\u8be6\u7ec6\u6b65\u9aa4\u3002<\/p>\n

HBuilderX\u6253\u5305iOS\u5e94\u7528\u7a0b\u5e8f\u7684\u539f\u7406\u662f\u901a\u8fc7\u5c06Vue.js\u4ee3\u7801\u7f16\u8bd1\u4e3a\u539f\u751fiOS\u5e94\u7528\u7a0b\u5e8f\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u5b89\u88c5\u5230iOS\u8bbe\u5907\u4e0a\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u6b65\u9aa4<\/p>\n

<\/figure>\n<\/p>\n

\uff1a<\/p>\n

1. \u5b89\u88c5\u5fc5\u8981\u7684\u8f6f\u4ef6\u548c\u5de5\u5177\uff1a<\/p>\n

\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u5b89\u88c5Xcode\u548cHBuilderX\uff0c\u4ee5\u53caiOS\u6a21\u62df\u5668\u548c\u8bbe\u5907\u7684\u652f\u6301\u3002\u4f60\u53ef\u4ee5\u4eceApp Store\u4e0a\u4e0b\u8f7d\u5e76\u5b89\u88c5Xcode\uff0c\u5e76\u4eceHBuilderX\u5b98\u65b9\u7f51\u7ad9\u4e0a\u4e0b\u8f7d\u5e76\u5b89\u88c5HBuilderX\u3002<\/p>\n

2. \u521b\u5efa\u4e00\u4e2aVue.js\u9879\u76ee\uff1a<\/p>\n

\u5728HBuilderX\u4e2d\uff0c\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2aVue.js\u9879\u76ee\u3002\u9009\u62e9”\u6587\u4ef6” -> “\u65b0\u5efa” -> “\u9879\u76ee”\uff0c\u7136\u540e\u9009\u62e9Vue.js\u6a21\u677f\uff0c\u8f93\u5165\u9879\u76ee\u540d\u79f0\u5e76\u786e\u5b9a\u3002HBuilderX\u5c06\u81ea\u52a8\u751f\u6210\u4e00\u4e2a\u57fa\u672c\u7684Vue.js\u9879\u76ee\u7ed3\u6784\u3002<\/p>\n

3. \u914d\u7f6eiOS\u6784\u5efa\u73af\u5883\uff1a<\/p>\n

\u5728Vue.js\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\uff0c\u4f60\u53ef\u4ee5\u627e\u5230”manifest.json”\u6587\u4ef6\u3002\u7f16\u8f91\u6b64\u6587\u4ef6\uff0c\u786e\u4fdd\u4ee5\u4e0b\u5c5e\u6027\u8bbe\u7f6e\u6b63\u786e\uff1a<\/p>\n

– “uni-app” -> “name”: \u8bbe\u7f6e\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u540d\u79f0\u3002<\/p>\n

– “uni-ap\u514d\u8d8a\u72f1\u514d\u7b7e\u540d\u7684\u82f9\u679ciosapp\u6253\u5305<\/a>p” -> “app-plus” -> “ios” -> “bundleIdentifier”: \u8bbe\u7f6e\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u7684Bundle Identifier\uff0c\u5b83\u5728Xcode\u4e2d\u552f\u4e00\u6807uniapp\u6253\u5305ios\u4e0d\u4e0a\u67b6<\/a>\u8bc6\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

4. \u8fd0\u884c\u548c\u8c03\u8bd5\u5e94\u7528\u7a0b\u5e8f\uff1a<\/p>\n

\u5728HBuilderX\u4e2d\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9”\u8fd0\u884c” -> “\u8fd0\u884c\u5230iOS\u6a21\u62df\u5668”\u6765\u5728\u6a21\u62df\u5668\u4e2d\u8fd0\u884c\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u5982\u679c\u4e00\u5207\u6b63\u5e38\uff0c\u4f60\u5c06\u4f1a\u770b\u5230\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u5728\u6a21\u62df\u5668\u4e2d\u542f\u52a8\u5e76\u8fd0\u884c\u3002<\/p>\n

5. \u6253\u5305iOS\u5e94\u7528\u7a0b\u5e8f\uff1a<\/p>\n

\u5f53\u4f60\u51c6\u5907\u597d\u6253\u5305\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9”\u53d1\u5e03” -> “\u53d1\u884c\u5230\u5e73\u53f0” -> “Appstore”\u6765\u5f00\u59cb\u6253\u5305\u8fc7\u7a0b\u3002\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0cHBuilderX\u5c06\u81ea\u52a8\u7f16\u8bd1Vue.js\u4ee3\u7801\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u539f\u751fiOS\u5e94\u7528\u7a0b\u5e8f\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n

6. \u7b7e\u540d\u548c\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\uff1a<\/p>\n

\u6253\u5305\u5b8c\u6210\u540e\uff0cHBuilderX\u5c06\u751f\u6210\u4e00\u4e2a.ipa\u6587\u4ef6\uff0c\u5373\u5e94\u7528\u7a0b\u5e8f\u7684\u53d1\u5e03\u5305\u3002\u4f60\u9700\u8981\u4f7f\u7528Xcode\u4e2d\u7684”Application Loader”\u5de5\u5177\u6765\u7b7e\u540d\u548c\u4e0a\u4f20.ipa\u6587\u4ef6\u5230App Store\u6216iTunes Connect\u4e2d\u8fdb\u884c\u90e8\u7f72\u3002<\/p>\n

\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u6253\u5305iOS\u5e94\u7528\u7a0b\u5e8f\u53ef\u80fd\u6d89\u53ca\u5230\u4e00\u4e9b\u7ec6\u8282\u548c\u914d\u7f6e\uff0c\u4f8b\u5982\u5728Xcode\u4e2d\u8bbe\u7f6e\u5f00\u53d1\u8005\u8bc1\u4e66\u548c\u63cf\u8ff0\u6587\u4ef6\u7b49\u3002\u8fd9\u4e9b\u8fc7\u7a0b\u53ef\u80fd\u6709\u70b9\u590d\u6742\uff0c\u4f46\u662fHBuilderX\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u6587\u6863\u548c\u6307\u5bfc\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5b8c\u6210\u8fd9\u4e9b\u914d\u7f6e\u3002<\/p>\n

\u603b\u7ed3\u8d77\u6765\uff0cHBuilderX\u901a\u8fc7\u5c06Vue.js\u4ee3\u7801\u7f16\u8bd1\u4e3a\u539f\u751fiOS\u5e94\u7528\u7a0b\u5e8f\u6765\u5b9e\u73b0\u6253\u5305iOS\u5e94\u7528\u7a0b\u5e8f\u7684\u76ee\u6807\u3002\u901a\u8fc7\u9075\u5faa\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u4f7f\u7528HBuilderX\u6253\u5305\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u5e76\u5728iOS\u8bbe\u5907\u4e0a\u8fd0\u884c\u548c\u90e8\u7f72\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

HBuilderX\u662f\u4e00\u6b3e\u57fa\u4e8eTypeScript\u548cVue.js\u5f00\u53d1\u7684\u8de8\u5e73\u53f0\u5f00\u53d1\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u5f00\u53d1\u591a\u4e2a\u5e73\u53f0\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5305\u62eciOS\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5c06\u4e3a\u4f60\u4ecb\u7ecdHBuilderX\u6253\u5305iOS\u5e94\u7528\u7a0b\u5e8f\u7684\u539f\u7406\u548c\u8be6<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[6072,27,12,6073,23],"topic":[],"class_list":["post-2967","post","type-post","status-publish","format-standard","hentry","category-appkf","tag-muiios","tag-27","tag-12","tag-ios","tag-23"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/2967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=2967"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/2967\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=2967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=2967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=2967"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=2967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}