{"id":7788,"date":"2023-11-01T12:33:26","date_gmt":"2023-11-01T04:33:26","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=7788"},"modified":"2023-11-01T12:33:26","modified_gmt":"2023-11-01T04:33:26","slug":"ios-%e6%89%93%e5%8c%85-flane%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.yimenyun.cn\/emen\/7788\/","title":{"rendered":"ios \u6253\u5305 flane\u64cd\u4f5c\u6b65\u9aa4\u4ecb\u7ecd"},"content":{"rendered":"

FLANE\u662f\u4e00\u6b3e\u57fa\u4e8eFlutter\u6846\u67b6cocos\u6253\u5305ios\u5728xcode\u4e2d\u6ca1\u6539\u53d8<\/a>\u5f00\u53d1\u7684\u8de8\u5e73\u53f0\u5e94\u7528\u5f00\u53d1\u5de5\u5177\u3002Flutter\u662fGoogle\u63a8\u51fa\u7684\u4e00\u79cd\u4f7f\u7528Dart\u8bed\u8a00\u7f16\u5199\u7684\u5f00\u6e90UI\u5de5\u5177\u5305\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u6784\u5efa\u9ad8\u6027\u80fd\u3001\u7f8e\u89c2\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

\u5728iOS\u7cfb\u7edf\u4e0a\u6253\u5305FLANE\u5e94\u7528\uff0c\u9700\u8981\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff1a<\/p>\n

\u6b65\u9aa4\u4e00\uff1a\u5b89\u88c5Flutter SDK<\/p>\n

\u9996\u5148\uff0c\u4f60\u9700\u8981\u5b89\u88c5Flutter SDK\u3002\u4f60\u53ef\u4ee5\u8bbf\u95eeFlutter\u7684\u5b98\u65b9\u7f51\u7ad9\uff08https:\/\/flutter.dev\uff09\u4e0b\u8f7d\u5bf9\u5e94\u5e73\u53f0\u7684Flutter SDK\uff0c\u5e76\u5c06\u5176\u89e3\u538b\u5230\u4f60\u7684\u672c\u5730\u76ee\u5f55\u4e2d\u3002<\/p>\n

\u6b65<\/p>\n

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

\u9aa4\u4e8c\uff1a\u914d\u7f6eFlutter\u73af\u5883\u53d8\u91cf<\/p>\n

\u5c06Flutter SDK\u7684bin\u76ee\u5f55\u6dfb\u52a0\u5230\u4f60\u7684\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u8fd9\u6837\u4f60\u5c31\u53ef\u4ee5\u5728\u4efb\u610f\u4f4d\u7f6e\u4f7f\u7528Flutter\u547d\u4ee4\u3002\u5177\u4f53\u64cd\u4f5c\u65b9\u5f0f\u53ef\u4ee5\u53c2\u8003Flutter\u7684\u5b98\u65b9\u6587\u6863\uff0c\u6839\u636e\u4f60\u4f7f\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf\u8fdb\u884c\u76f8\u5e94\u7684\u914d\u7f6e\u3002<\/p>\n

\u6b65\u9aa4\u4e09\uff1a\u5b89\u88c5Xcode<\/p>\n

FLANE\u5e94\u7528\u7684\u6253\u5305\u8fc7\u7a0b\u9700\u8981\u4f7f\u7528\u5230Xcode\uff0c\u6240\u4ee5\u5728\u8fdb\u884c\u4e0b\u4e00\u6b65\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u4f60\u7684Mac\u7535\u8111\u5df2\u7ecf\u5b89\u88c5\u4e86\u6700\u65b0\u7248\u672c\u7684Xcode\u3002\u4f60\u53ef\u4ee5\u5728App Store\u4e2d\u641c\u7d22\u201cXcode\u201d\u5e76\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n

\u6b65\u9aa4\u56db\uff1a\u521b\u5efaFlutter\u9879\u76ee<\/p>\n

\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Flutter\u9879\u76ee\uff1a<\/p>\n

“`<\/p>\n

flutter create flane_app<\/p>\n

“`<\/p>\n

\u8fd9\u5c06\u4f1a\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cflane_app\u201d\u7684Flutter\u9879\u76ee\u3002<\/p>\n

\u6b65\u9aa4\u4e94\uff1a\u4f7f\u7528Flutter\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f<\/p>\n

\u8fdb\u5165\u9879\u76ee\u76ee\u5f55\u5e76\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u4f7f\u7528Flutter\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\uff1a<\/p>\n

“`<\/p>\n

cd flane_app<\/p>\n

flutter build ios<\/p>\n

“`<\/p>\n

\u8fd9\u4e2a\u547d\u4ee4\u5c06\u4f1a\u751f\u6210\u6253\u5305\u6240\u9700\u7684\u8d44\u6e90\u6587\u4ef6\u548c\u9879\u76ee\u914d\u7f6e\u3002<\/p>\n

\u6b65\u9aa4\u516d\uff1a\u4f7f\u7528Xcode\u6253\u5f00\u9879\u76ee<\/p>\n

\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u4f7f\u7528Xcode\u6253\u5f00\u751f\u6210\u7684iOS\u9879\u76ee\uff1a<\/p>\n

“`<\/p>\n

open ios\/Runner.xcworkspace<\/p>\n

“`<\/p>\n

\u8fd9\u5c06\u4f1a\u6253\u5f00Xcode\uff0c\u5e76\u52a0\u8f7dFlutter\u9879\u76ee\u3002<\/p>\n

\u6b65\u9aa4\u4e03\uff1a\u914d\u7f6e\u5e94\u7528\u7a0b\u5e8f\u4fe1\u606f<\/p>\n

\u5728Xcode\u4e2d\uff0c\u627e\u5230\u5e76\u6253\u5f00\u9879\u76ee\u76ee\u5f55\u4e2d\u7684\u201cRunner\u201d\u6587\u4ef6\u5939\u3002\u7136\u540e\uff0c\u6839\u636e\u4f60\u7684\u9700\u6c42\u914d\u7f6e\u5e94\u7528\u7a0b\u5e8f\u7684\u663e\u793a\u540d\u79f0\u3001\u56fe\u6807\u3001\u542f\u52a8\u753b\u9762\u7b49\u4fe1\u606f\u3002<\/p>\n

\u6b65\u9aa4\u516b\uff1a\u9009\u62e9\u8bbe\u5907\u5e76\u8fdb\u884c\u6253\u5305<\/p>\n

\u8fde\u63a5\u4f60\u7684iOS\u8bbe\u5907\u6216\u8005\u9009\u62e9\u4e00\u4e2aiOS\u6a21\u62df\u5668\u4f5c\u4e3a\u76ee\u6807\u8bbe\u5907\u3002\u7136\u540e\uff0c\u70b9\u51fbXcode\u754c\u9762\u4e2d\u7684\u201cBuild\u201d\u6309\u94ae\uff0cXcode\u5c06\u4f1a\u5f00\u59cb\u7f16\u8bd1\u5e76\u6253\u5305\u4f60\u7684FLANE\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

\u5728\u6253\u5305\u8fc7\u7a0b\u5b8c\u6210\u540e\uff0c\u4f60\u53ef\u4ee5\u5728\u8bbe\u5907\u4e0a\u6216\u8005\u6a21\u62df\u5668\u4e0a\u5b89\u88c5\u548c\u8fd0\u884c\u4f60\u7684FLAN\u5236\u4f5c\u81ea\u5b9a\u4e49\u57fa\u5ea7ios\u6253\u5305\u5931\u8d25<\/a>E\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5728\u8fdb\u884ciOS\u5e94\u7528\u7684\u6253\u5305\u65f6\uff0c\u4f60\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u9519\u8bef\u548c\u95ee\u9898\u3002\u8fd9\u4e9b\u53ef\u80fd\u5305\u62ec\u8bc1\u4e66\u914d\u7f6e\u3001\u7b7e\u540d\u9519\u8bef\u3001\u4f9d\u8d56\u9879\u51b2\u7a81\u7b49\u7b49\u3002\u5f53\u9047\u5230\u8fd9\u4e9b\u95ee\u9898\u65f6\uff0c\u4f60\u53ef\u4ee5\u53c2\u8003Flutter\u548cXcode\u7684\u5b98\u65b9\u6587\u6863\uff0c\u6216\u8005\u5728\u76f8\u5173\u7684\u5f00\u53d1\u8005\u793e\u533a\u4e2d\u5bfb\u627e\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n

\u603b\u7ed3\u8d77\u6765\uff0c\u8981\u5728iOS\u7cfb\u7edf\u4e0a\u6253\u5305FLANE\u5e94\u7528\uff0c\u4f60\u9700\u8981\u5b89\u88c5Flutter SDK\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3001\u5b89\u88c5Xcode\u3001\u521b\u5efaFlutter\u9879\u76ee\u3001\u4f7f\u7528Flutter\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u3001\u4f7f\u7528Xcode\u6253\u5f00\u9879\u76ee\u3001\u914d\u7f6e\u5e94\u7528\u7a0b\u5e8f\u4fe1\u606f\uff0c\u6700\u540e\u9009\u62e9\u8bbe\u5907\u5e76\u8fdb\u884c\u6253\u5305\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

FLANE\u662f\u4e00\u6b3e\u57fa\u4e8eFlutter\u6846\u67b6\u5f00\u53d1\u7684\u8de8\u5e73\u53f0\u5e94\u7528\u5f00\u53d1\u5de5\u5177\u3002Flutter\u662fGoogle\u63a8\u51fa\u7684\u4e00\u79cd\u4f7f\u7528Dart\u8bed\u8a00\u7f16\u5199\u7684\u5f00\u6e90UI\u5de5\u5177\u5305\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u6784\u5efa\u9ad8\u6027\u80fd\u3001\u7f8e\u89c2\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002\u5728iO<\/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":[13662,12,13663,797,23],"topic":[],"class_list":["post-7788","post","type-post","status-publish","format-standard","hentry","category-appkf","tag-ios","tag-12","tag-ios-app","tag-797","tag-23"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/7788","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=7788"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/7788\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=7788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=7788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=7788"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=7788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}