{"id":2959,"date":"2023-08-16T12:33:46","date_gmt":"2023-08-16T04:33:46","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=2959"},"modified":"2023-08-16T12:33:46","modified_gmt":"2023-08-16T04:33:46","slug":"hbuilder%e7%a6%bb%e7%ba%bf%e6%89%93%e5%8c%85ios%e6%9c%89%e4%bd%95%e4%bc%98%e5%8a%bf%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/2959\/","title":{"rendered":"hbuilder\u79bb\u7ebf\u6253\u5305ios\u6709\u4f55\u4f18\u52bf\uff1f"},"content":{"rendered":"

HBuilder\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u8de8\u5e73\u53f0\u5f00\u53d1\u5de5\u5177\uff0c\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u5728\u4e00\u4e2a\u5e73\u53f0\u4e0a\u540c\u65f6\u5f00\u53d1iOS\u548cAndroid\u5e94\u7528\u3002\u79bb\u7ebf\u6253\u5305iOS\u5e94\u7528\u662fHBuilder\u7684\u4e00\u4e2a\u91cd\u8981\u529f\u80fd\uff0c\u5b83\u4f7f\u7528\u4e86Cordova\u6280\u672f\u6765\u5b9e\u73b0\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5c06\u4e3a\u5927\u5bb6\u4ecb\u7ecdHBuilder\u79bb\u7ebf\u6253\u5305iOS\u5e94\u7528\u7684\u539f\u7406\u548c\u8be6\u7ec6\u6b65\u9aa4\u3002<\/p>\n

## \u539f\u7406<\/p>\n

HBuilder\u79bb\u7ebf\u6253\u5305iOS\u5e94\u7528\u7684\u539f\u7406\u662f\u5c06\u524d\u7aef\u4ee3\u7801\u901a\u8fc7Cordova\u6280\u672f\u6253\u5305\u6210\u539f\u751fiOS\u5e94\u7528\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u539f\u7406\u5982\u4e0b\uff1a<\/p>\n

1. HBuil<\/p>\n

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

der\u5c06\u524d\u7aef\u4ee3\u7801\u6253\u5305\u6210\u4e00\u4e2aWebApp\uff0c\u8f93\u51fa\u6210HTML\u3001CSS\u548cJavaScript\u7b49\u6587\u4ef6\u3002<\/p>\n

2. Cordova\u63d0\u4f9b\u4e86\u4e00\u4e2aWebView\u7684\u5bb9\u5668\uff0c\u5b83\u53ef\u4ee5\u52a0\u8f7dWebApp\uff0c\u5e76\u4e14\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7684API\u63a5\u53e3\uff0c\u4f7f\u5f97WebApp\u53ef\u4ee5\u4f7f\u7528\u539f\u751f\u529f\u80fd\u3002<\/p>\n

3. HBuilder\u4f7f\u7528Cordova\u63d0\u4f9b\u7684\u547d\u4ee4\u884c\u5de5\u5177\u5c06WebApp\u6253\u5305\u6210iOS\u5e94\u7528\u65f6\uff0c\u4f1a\u5c06WebView\u548cWebApp\u4ee3\u7801\u5c01\u88c5\u6210\u4e00\u4e2a\u539f\u751f\u7684iOS\u5e94\u7528\u3002<\/p>\n

## \u6b65\u9aa4<\/p>\n

\u4e0b\u9762\u662fHBuilder\u79bb\u7ebf\u6253\u5305iOS\u5e94\u7528\u7684\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n

1. \u51c6\u5907\u5de5\u4f5c\uff1a<\/p>\n

a. \u5b89\u88c5Xcode\uff1aXcode\u662f\u82f9\u679c\u516c\u53f8\u5f00\u53d1\u7684\u4e00\u5957\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff0c\u7528\u4e8e\u5f00\u53d1macOS\u548ciOS\u5e94\u7528\u3002<\/p>\n

b. \u5b89\u88c5Cordova\u547d\u4ee4\u884c\u5de5\u5177\uff1aCordova\u547d\u4ee4\u884c\u5de5\u5177\u662f\u4f7f\u7528Cordova\u6280\u672f\u8fdb\u884c\u6253\u5305\u7684\u5fc5\u5907\u5de5\u5177\u3002<\/p>\n

2. \u521b\u5efaHBuilder\u9879\u76ee\uff1a<\/p>\n

a. \u6253\u5f00HBuilder\uff0c\u70b9\u51fb\u65b0rn\u6253\u5305ios<\/a>\u5efa\u9879\u76ee\uff0c\u9009\u62e9\u5bf9\u5e94\u7684\u6a21\u677f\uff08\u5982Vue.js\u6216React Native\u7b49\uff09\u3002<\/p>\n

b. \u8f93\u5165\u9879\u76ee\u540d\u79f0\u3001\u8def\u5f84\u7b49\u4fe1\u606f\uff0c\u70b9\u51fb\u521b\u5efa\u9879\u76ee\u3002<\/p>\n

3. \u8fd0\u884c\u9879\u76ee\u5230iOS\u6a21\u62df\u5668\uff1a<\/p>\n

a. \u8fdb\u5165\u9879\u76ee\uff0c\u5e76\u70b9\u51fb\u8fd0\u884c\u6309\u94ae\uff0c\u9009\u62e9\u8fd0\u884c\u5230iOS\u6a21\u62df\u5668\u3002<\/p>\n

b. \u5982\u679c\u662f\u9996\u6b21\u8fd0\u884c\uff0cHBuilder\u4f1a\u81ea\u52a8\u4e3a\u4f60\u5b89\u88c5\u5fc5\u8981\u7684\u63d2\u4ef6\uff0c\u9009\u62e9\u201c\u662f\u201d\u3002<\/p>\n

c. \u7b49\u5f85\u8fd0\u884c\u5b8c\u6210\uff0c\u4f1a\u81ea\u52a8\u6253\u5f00iOS\u6a21\u62df\u5668\u5e76\u8fd0\u884c\u5e94\u7528\u3002<\/p>\n

4. \u914d\u7f6e\u6253\u5305\u53c2\u6570\uff1a<\/p>\n

a. \u8fdb\u5165HBuilder\u9879\u76ee\u7684\u6839\u76ee\u5f55\uff0c\u5728\u201cmanifest.json\u201d\u6587\u4ef6\u4e2d\u7684\u201cuni-app\u201d\u8282\u70b9\u4e0b\uff0c\u627e\u5230”App Plus”\u914d\u7f6e\u3002<\/p>\n

b. \u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\uff0c\u914d\u7f6e\u201ciOS\u5de5\u7a0b\u540d\u201d\u3001\u201cIDFA\u5e7f\u544a\u6807\u8bc6\u7b26\u201d\u3001\u201c\u5806\u6808\u6ea2\u51fa\u65e5\u5fd7\u201d\u7b49\u53c2\u6570\u3002<\/p>\n

5. \u6253\u5305\u5e94\u7528\uff1a<\/p>\n

a. \u5728HBuilder\u7684\u83dc\u5355\u680f\u4e2d\u9009\u62e9\u201c\u53d1\u5e03\u201d>\u201c\u539f\u751fApp-\u4e91\u7aef\u6253\u5305\u201d\u3002<\/p>\n

b. \u9009\u62e9\u201ciOS\u201d\uff0c\u586b\u5199\u5e94\u7528\u540d\u79f0\u3001\u5305\u540d\u548c\u7248\u672c\u7b49\u4fe1\u606f\u3002<\/p>\n

c. \u70b9\u51fb\u201c\u53d1\u5305\u201d\uff0c\u7b49\u5f85\u6253\u5305\u5b8c\u6210\u3002<\/p>\n

6. \u4e0b\u8f7d\u5e76\u5b89\u88c5\u5e94\u7528\uff1a<\/p>\n

a. \u6253\u5f00\u4e0b\u8f7d\u9875\u9762\uff0c\u70b9\u51fb\u4e0b\u8f7d\u5e94\u7528\u3002<\/p>\n

b. \u8fd0\u884c\u4e0b\u8f7d\u7684IPA\u6587\u4ef6\uff0cXcode\u4f1a\u81ea\u52a8\u6253\u5f00\u5e76\u5b89\u88c5\u5e94\u7528\u5230iOS\u8bbe\u5907\u6216\u6a21\u62df\u5668\u3002<\/p>\n

7. \u6d4b\u8bd5\u5e94\u7528\uff1a<\/p>\n

a. \u5728iOS\u8bbe\u5907\u6216\u6a21\u62df\u5668\u4e2d\u627e\u5230\u5e76\u6253\u5f00\u5e94\u7528\uff0c\u6d4b\u8bd5\u5e94\u7528\u7684\u529f\u80fd\u548c\u6027\u80fd\u3002<\/p>\n

\u7ecf\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u5c31\u53ef\u4ee5\u4f7f\u7528HBuildios\u6253\u5305framework\u5fc5\u987b\u9009\u771f\u673a\u5417<\/a>er\u79bb\u7ebf\u6253\u5305iOS\u5e94\u7528\u4e86\u3002<\/p>\n

\u603b\u7ed3\uff1a<\/p>\n

HBuilder\u79bb\u7ebf\u6253\u5305iOS\u5e94\u7528\u7684\u539f\u7406\u662f\u5c06\u524d\u7aef\u4ee3\u7801\u901a\u8fc7Cordova\u6280\u672f\u6253\u5305\u6210\u539f\u751fiOS\u5e94\u7528\u3002\u5728\u4f7f\u7528HBuilder\u8fdb\u884c\u79bb\u7ebf\u6253\u5305\u65f6\uff0c\u9700\u8981\u5148\u8fdb\u884c\u51c6\u5907\u5de5\u4f5c\uff0c\u7136\u540e\u6309\u7167\u4e00\u5b9a\u7684\u6b65\u9aa4\u521b\u5efa\u9879\u76ee\u3001\u914d\u7f6e\u6253\u5305\u53c2\u6570\u548c\u6253\u5305\u5e94\u7528\u3002\u6700\u540e\uff0c\u4e0b\u8f7d\u5e76\u5b89\u88c5\u5e94\u7528\u5230iOS\u8bbe\u5907\u6216\u6a21\u62df\u5668\u4e2d\uff0c\u8fdb\u884c\u5e94\u7528\u6d4b\u8bd5\u3002\u901a\u8fc7\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u6210\u529f\u5730\u8fdb\u884cHBuilder\u79bb\u7ebf\u6253\u5305iOS\u5e94\u7528\u7684\u64cd\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

HBuilder\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u8de8\u5e73\u53f0\u5f00\u53d1\u5de5\u5177\uff0c\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u5728\u4e00\u4e2a\u5e73\u53f0\u4e0a\u540c\u65f6\u5f00\u53d1iOS\u548cAndroid\u5e94\u7528\u3002\u79bb\u7ebf\u6253\u5305iOS\u5e94\u7528\u662fHBuilder\u7684\u4e00\u4e2a\u91cd\u8981\u529f\u80fd\uff0c\u5b83\u4f7f\u7528\u4e86Cordova\u6280\u672f\u6765\u5b9e\u73b0\u3002\u5728\u672c<\/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":[6058,6057,427,259,23],"topic":[],"class_list":["post-2959","post","type-post","status-publish","format-standard","hentry","category-appkf","tag-ios","tag-iosflutter","tag-427","tag-259","tag-23"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/2959","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=2959"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/2959\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=2959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=2959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=2959"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=2959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}