{"id":10798,"date":"2023-11-02T17:50:25","date_gmt":"2023-11-02T09:50:25","guid":{"rendered":"https:\/\/h5app.yimenapp.cn\/h5app\/?p=10798"},"modified":"2023-11-02T17:50:25","modified_gmt":"2023-11-02T09:50:25","slug":"flutterwindows%e6%89%93%e5%8c%85ios%e6%93%8d%e4%bd%9c%e6%b5%81%e7%a8%8b%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/h5app.yimenapp.cn\/h5app\/2023\/sjapp\/10798\/","title":{"rendered":"flutterwindows\u6253\u5305ios\u64cd\u4f5c\u6d41\u7a0b\u4ecb\u7ecd"},"content":{"rendered":"<p>Flutter\u662fGoogle\u63a8\u51fa\u7684\u4e00\u6b3e\u8de8\u5e73\u53f0\u7684\u79fb\u52a8\u5e94\u7528\u5f00\u53d1\u6846\u67b6\uff0c\u5177\u6709\u5feb\u901f\u5f00\u53d1\u3001\u9ad8\u6548\u3001\u6613\u4e8e\u5b66\u4e60\u7b49\u7279\u70b9\uff0c\u6df1\u53d7\u5f00\u53d1\u8005\u7684\u559c\u7231\u3002\u5728\u4f7f\u7528Flutter\u5f00\u53d1\u79fb\u52a8\u5e94\u7528\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u5e94\u7528\u6253\u5305\u6210Android\u548ciOS\u4e24\u4e2a\u5e73\u53f0\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u4ee5\u6ee1\u8db3\u7528\u6237\u5728\u4e0d\u540c\u5e73\u53f0\u4e0a\u7684\u9700\u6c42\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u5728Windows\u73af\u5883\u4e0b\u6253\u5305iOS\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>\u4e00\u3001\u73af\u5883\u642d\u5efa<\/p>\n<p>\u5728Windows\u73af\u5883\u4e0b\u6253\u5305iOS\u5e94\u7528\u7a0b\u5e8f\uff0c\u9700\u8981\u5b89\u88c5\u4e00\u4e9b\u5fc5\u8981\u7684<a href=\"https:\/\/appdabao.yimenapp.com\/jiage-499.html\">\u4e03\u6247\u95e8app\u6253\u5305<\/a>\u8f6f\u4ef6\u548c\u5de5\u5177\uff0c\u5305\u62ec\uff1a<\/p>\n<p>1. \u5b89\u88c5Xcode<\/p>\n<p>Xcode\u662f\u82f9\u679c\u516c\u53f8\u5f00\u53d1\u7684\u4e00\u6b3e\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u7528\u4e8e\u5f00\u53d1iOS\u548cmacOS\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u6253\u5305iOS\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u4f7f\u7528Xcode\u7684\u76f8\u5173\u5de5\u5177\u548c\u5e93\u6587\u4ef6\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u9700\u8981\u5148\u5728Windows\u7cfb\u7edf\u4e2d\u5b89\u88c5Xcode\u3002<\/p>\n<p>2. \u5b89\u88c5Flutter<\/p>\n<p>Flutter\u662f\u5f00\u53d1iOS\u5e94\u7528\u7a0b\u5e8f\u7684\u4e3b\u8981\u6846\u67b6\uff0c\u56e0\u6b64\u6211\u4eec\u9700\u8981\u5728Windows\u7cfb\u7edf\u4e2d\u5b89\u88c5Flutter\u3002\u5177\u4f53\u5b89\u88c5\u6b65\u9aa4\u53ef\u4ee5\u53c2\u8003Flutter\u5b98\u65b9\u6587\u6863\u3002<\/p>\n<p>3. \u5b89\u88c5Cocoapods<\/p>\n<p>Cocoapods\u662fiOS\u5f00\u53d1\u4e2d\u5e38\u7528\u7684\u4e00\u4e2a\u4f9d\u8d56\u7ba1\u7406\u5de5\u5177\uff0c\u7528\u4e8e\u7ba1\u7406iOS\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7684\u5404\u79cd\u5e93\u6587\u4ef6\u548c\u4f9d\u8d56\u9879\u3002\u5728\u6253\u5305iOS\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u6211\u4eec\u9700\u8981\u4f7f\u7528Cocoapods\u6765\u7ba1\u7406\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7684\u4f9d\u8d56\u9879\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u9700\u8981\u5728Windows\u7cfb\u7edf\u4e2d\u5b89\u88c5Cocoapods\u3002<\/p>\n<p>4. \u5b89\u88c5Git<\/p>\n<p>Git\u662f\u4e00\u6b3e\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u7528\u4e8e\u7ba1\u7406\u4ee3\u7801\u7684\u7248\u672c\u548c\u53d8\u66f4\u3002\u5728\u6253\u5305iOS\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u6211\u4eec\u9700\u8981\u4f7f\u7528Git\u6765\u7ba1\u7406Flutter\u9879\u76ee\u7684\u6e90\u4ee3\u7801\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u9700\u8981\u5728Windows\u7cfb\u7edf\u4e2d\u5b89\u88c5Git\u3002<\/p>\n<p>\u4e8c\u3001\u6253\u5305iOS\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.cdn.yimenapp.com\/2023-03\/20\/11\/27008070866.jpg\" \/><\/figure>\n<\/p>\n<p>\u5728\u5b89\u88c5\u5b8c\u5fc5\u8981\u7684\u8f6f\u4ef6\u548c\u5de5\u5177\u4e4b\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u5f00\u59cb\u6253\u5305iOS\u5e94\u7528\u7a0b\u5e8f\u4e86\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p>1. \u4f7f\u7528Flutter\u521b\u5efa\u4e00\u4e2a\u65b0\u7684iOS\u9879\u76ee<\/p>\n<p>\u5728Windows\u7cfb\u7edf\u4e2d\u6253\u5f00\u547d\u4ee4\u884c\u7ec8\u7aef\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>flutter create &#8211;platforms=ios my_flutter_app<\/p>\n<p>&#8220;`<\/p>\n<p>\u8be5\u547d\u4ee4\u4f1a\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3amy_flutter_app\u7684Flutter\u9879\u76ee\uff0c\u5e76\u6307\u5b9a\u5e73\u53f0\u4e3aiOS\u3002<\/p>\n<p>2. \u8fdb\u5165Flutter\u9879\u76ee\u76ee\u5f55<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u8fdb\u5165Flutter\u9879\u76ee\u76ee\u5f55\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>cd my_flutter_app<\/p>\n<p>&#8220;`<\/p>\n<p>3. \u5b89\u88c5\u4f9d\u8d56\u9879<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u4f7f\u7528Cocoapods\u5b89\u88c5iOS\u5e94\u7528\u7a0b\u5e8f\u7684\u4f9d\u8d56\u9879\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>cd ios<\/p>\n<p>pod install<\/p>\n<p>&#8220;`<\/p>\n<p>\u8be5\u547d\u4ee4\u4f1a\u5728ios\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3aPods\u7684\u6587\u4ef6\u5939\uff0c\u5e76\u5b89\u88c5\u5e94\u7528\u7a0b\u5e8f\u7684\u4f9d\u8d56\u9879\u3002<\/p>\n<p>4. \u6253\u5f00Xcode\u9879\u76ee<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u4f7f\u7528Xcode\u6253\u5f00iOS\u5e94\u7528\u7a0b\u5e8f\u7684\u9879\u76ee\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>open ios\/Runner.xcworkspace<\/p>\n<p>&#8220;`<\/p>\n<p>\u8be5\u547d\u4ee4\u4f1a\u6253\u5f00Xcode\u9879\u76ee\uff0c\u5e76\u52a0\u8f7d\u5e94\u7528\u7a0b\u5e8f\u7684\u76f8\u5173\u6587\u4ef6\u548c\u4f9d\u8d56\u9879\u3002<\/p>\n<p>5. \u914d\u7f6eXcode\u9879\u76ee<\/p>\n<p>\u5728Xcode\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u8fdb\u884c\u4e00\u4e9b\u5fc5\u8981\u7684\u914d\u7f6e\uff0c\u4ee5\u4fbf\u4e8e\u6253\u5305iOS\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u914d\u7f6e\u9879\u76ee\u7684\u7b7e\u540d\u8bc1\u4e66\u548c\u63cf\u8ff0\u6587\u4ef6\u3002\u5728Xcode\u4e2d\uff0c\u9009\u62e9\u9879\u76ee\u7684Targets\uff0c\u70b9\u51fbGeneral\u9009\u9879\u5361\uff0c\u9009\u62e9Signing\u9009\u9879\u5361\uff0c\u9009\u62e9Team\u548cProvisioning Profile\u3002<\/p>\n<p>\u5176\u6b21\uff0c\u6211\u4eec\u9700\u8981\u914d\u7f6e\u9879\u76ee\u7684Build Settings\u3002\u5728Xcode\u4e2d\uff0c\u9009\u62e9\u9879\u76ee\u7684Targets\uff0c\u70b9\u51fbBuild Settings\u9009\u9879\u5361\uff0c\u9009\u62e9All\u9009\u9879\uff0c\u7136\u540e\u641c\u7d22\u201cenable bitcode\u201d\uff0c\u5c06\u5176\u8bbe\u7f6e\u4e3aNO\u3002<\/p>\n<p>\u6700\u540e\uff0c\u6211\u4eec\u9700\u8981\u914d\u7f6e\u9879\u76ee\u7684Scheme\u3002\u5728Xcode\u4e2d\uff0c\u9009\u62e9\u9879\u76ee\u7684Targets\uff0c\u70b9\u51fbEdit Scheme\u9009\u9879\uff0c\u9009\u62e9Run\u9009\u9879\u5361\uff0c\u9009\u62e9Executable\u548cBuild Configuration\u3002<\/p>\n<p>6. \u6784\u5efa\u9879\u76ee<\/p>\n<p>\u5728Xcode\u4e2d\uff0c\u9009\u62e9\u9879\u76ee\u7684Targets\uff0c\u70b9\u51fbProduct\u9009\u9879\uff0c\u9009\u62e9Build\u9009\u9879\uff0c\u5f00\u59cb\u6784\u5efaiOS\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>7. \u5bfc\u51fa\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>\u5728Xcode\u4e2d\uff0c\u9009\u62e9\u9879\u76ee\u7684Targets\uff0c\u70b9\u51fbProduct\u9009\u9879\uff0c\u9009\u62e9Archive\u9009\u9879\uff0c\u5c06iOS\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u4e00\u4e2a\u5f52\u6863\u6587\u4ef6\u3002<\/p>\n<p>\u5728\u6253\u5305\u5b8c\u6210\u540e\uff0c\u9009\u62e9Export\u9009\u9879\uff0c\u9009\u62e9\u8981\u5bfc\u51fa\u7684\u5e94\u7528\u7a0b\u5e8f\u7c7b\u578b\uff0c\u8f93\u5165\u5e94\u7528\u7a0b\u5e8f\u7684\u4fe1\u606f\u548c\u8bc1\u4e66\uff0c\u5373\u53ef\u5c06iOS\u5e94\u7528\u7a0b\u5e8f\u5bfc\u51fa\u5230\u672c\u5730\u76ee\u5f55\u4e2d\u3002<\/p>\n<p>\u4e09\u3001\u603b\u7ed3<\/p>\n<p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u5728Windows\u73af\u5883\u4e0b\u6253\u5305iOS\u5e94\u7528\u7a0b\u5e8f\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5728\u6253\u5305iOS\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5Xcode\u3001Flutter\u3001Cocoapods\u548cGit<a href=\"https:\/\/appdabao.yimenapp.com\/jiage-2683.html\">iosipa\u6253\u5305\u4e8c\u7ef4\u7801<\/a>\u7b49\u5fc5\u8981\u7684\u8f6f\u4ef6\u548c\u5de5\u5177\uff0c\u5e76\u8fdb\u884c\u4e00\u4e9b\u5fc5\u8981\u7684\u914d\u7f6e\u3002\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u9700\u8981\u6309\u7167\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff0c\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u6b63\u5e38\u6784\u5efa\u548c\u5bfc\u51fa\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Flutter\u662fGoogle\u63a8\u51fa\u7684\u4e00\u6b3e\u8de8\u5e73\u53f0\u7684\u79fb\u52a8\u5e94\u7528\u5f00\u53d1\u6846\u67b6\uff0c\u5177\u6709\u5feb\u901f\u5f00\u53d1\u3001\u9ad8\u6548\u3001\u6613\u4e8e\u5b66\u4e60\u7b49\u7279\u70b9\uff0c\u6df1\u53d7\u5f00\u53d1\u8005\u7684\u559c\u7231\u3002\u5728\u4f7f\u7528Flutter\u5f00\u53d1\u79fb\u52a8\u5e94\u7528\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u5e94\u7528\u6253\u5305\u6210Android\u548ciOS\u4e24<\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[17730,11,17729,2707,913],"topic":[],"class_list":{"0":"post-10798","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-sjapp","7":"tag-app","8":"tag-11","10":"tag-2707","11":"tag-913"},"_links":{"self":[{"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/posts\/10798","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/comments?post=10798"}],"version-history":[{"count":0,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/posts\/10798\/revisions"}],"wp:attachment":[{"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/media?parent=10798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/categories?post=10798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/tags?post=10798"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/topic?post=10798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}