{"id":333,"date":"2021-01-08T17:02:47","date_gmt":"2021-01-08T08:02:47","guid":{"rendered":"https:\/\/hobby.7crystalsky.com\/?p=333"},"modified":"2021-01-08T17:02:47","modified_gmt":"2021-01-08T08:02:47","slug":"flutter-mac%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83","status":"publish","type":"post","link":"https:\/\/www.elehobby.fun\/?p=333","title":{"rendered":"\u3010Flutter\u3011 Mac\u958b\u767a\u74b0\u5883"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Mac flutter\u74b0\u5883 install<\/h2>\n\n\n\n<p><a href=\"https:\/\/flutter.dev\/docs\/get-started\/install\/macos\">https:\/\/flutter.dev\/docs\/get-started\/install\/macos<\/a><\/p>\n\n\n\n<p>$mkdir development<\/p>\n\n\n\n<p>$ cd ~\/.development<\/p>\n\n\n\n<p>$ unzip ~\/.Downloads\/flutter_macos_1.22.5-stable.zip<\/p>\n\n\n\n<p>\u89e3\u51cd\u3055\u308c\u305fflutter\u306e\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u3092development\u306e\u30d5\u30a9\u30eb\u30c0\u306b<\/p>\n\n\n\n<p>\u79fb\u52d5\u3055\u305b\u308b\u3002developnent\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u3092\u78ba\u8a8d\u306e\u3053\u3068\u3002<\/p>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30f3\u30c0\u30fc\u3092\u958b\u3044\u3066development\u306e\u4e2d\u306bflutter\u306e\u30d5\u30a9\u30eb\u30c0\u304c\u3042\u308b\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>$ vim ~\/.bash_profile<\/p>\n\n\n\n<p>&#8216;I&#8217;\u306e\u30ad\u30fc\u3092\u62bc\u3057\u3066\u633f\u5165\u30e2\u30fc\u30c9\u306b\u3059\u308b\u3002<\/p>\n\n\n\n<p>\uff04export\u3000PATH\uff1d\uff02$PATH :\u2019pwd\u2019 \/flutter\/bin&#8221;<\/p>\n\n\n\n<p>ESC\u30ad\u30fc\u3092\u304a\u3057\u633f\u5165\u30e2\u30fc\u30c9\u3092\u629c\u3051\u308b\u3002<\/p>\n\n\n\n<p>\uff1awq\u3068\u6253\u3061\u8fbc\u307f\u4fdd\u5b58\u7d42\u4e86\u3059\u308b\u3002<\/p>\n\n\n\n<p>$ echo $PATH \u3068\u78ba\u8a8d\u3002<\/p>\n\n\n\n<p>$ flutter&nbsp; doctor\u3068\u5165\u529b\u3002<\/p>\n\n\n\n<p>7wzero:development 7wzero$ flutter doctor<\/p>\n\n\n\n<p>You have not agreed to the Xcode license agreements, please run &#8216;sudo xcodebuild -license&#8217; from within a Terminal window to review and agree to the Xcode license agreements.<\/p>\n\n\n\n<p>Downloading Material fonts&#8230; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.4s<\/p>\n\n\n\n<p>Downloading Gradle Wrapper&#8230; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.0s<\/p>\n\n\n\n<p>Downloading package sky_engine&#8230; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.2s<\/p>\n\n\n\n<p>Downloading flutter_patched_sdk tools&#8230;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.6s<\/p>\n\n\n\n<p>Downloading flutter_patched_sdk_product tools&#8230;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.5s<\/p>\n\n\n\n<p>Downloading darwin-x64 tools&#8230; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.9s<\/p>\n\n\n\n<p>Downloading libimobiledevice&#8230; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.0s<\/p>\n\n\n\n<p>Downloading usbmuxd&#8230;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.0s<\/p>\n\n\n\n<p>Downloading libplist&#8230; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.0s<\/p>\n\n\n\n<p>Downloading openssl&#8230;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.1s<\/p>\n\n\n\n<p>Downloading ios-deploy&#8230; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.0s<\/p>\n\n\n\n<p>Downloading darwin-x64\/font-subset tools&#8230; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.2s<\/p>\n\n\n\n<p>Downloading android-arm-profile\/darwin-x64 tools&#8230; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.1s<\/p>\n\n\n\n<p>Downloading android-arm-release\/darwin-x64 tools&#8230; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.1s<\/p>\n\n\n\n<p>Downloading android-arm64-profile\/darwin-x64 tools&#8230; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.1s<\/p>\n\n\n\n<p>Downloading android-arm64-release\/darwin-x64 tools&#8230; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.1s<\/p>\n\n\n\n<p>Downloading android-x64-profile\/darwin-x64 tools&#8230; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.1s<\/p>\n\n\n\n<p>Downloading android-x64-release\/darwin-x64 tools&#8230; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.1s<\/p>\n\n\n\n<p>Doctor summary (to see all details, run flutter doctor -v):<\/p>\n\n\n\n<p>Failed to find the latest git commit date: VersionCheckError: Command exited<\/p>\n\n\n\n<p>with code 69: git -c log.showSignature=false log -n 1 &#8211;pretty=format:%ad<\/p>\n\n\n\n<p>&#8211;date=iso<\/p>\n\n\n\n<p>Standard out:&nbsp;<\/p>\n\n\n\n<p>Standard error:&nbsp;<\/p>\n\n\n\n<p>You have not agreed to the Xcode license agreements, please run &#8216;sudo xcodebuild<\/p>\n\n\n\n<p>-license&#8217; from within a Terminal window to review and agree to the Xcode license<\/p>\n\n\n\n<p>agreements.<\/p>\n\n\n\n<p>Returning 1970-01-01 09:00:00.000 instead.<\/p>\n\n\n\n<p>[\u2713] Flutter (Channel unknown, 0.0.0-unknown, on Mac OS X 10.15.7 19H15<\/p>\n\n\n\n<p>&nbsp; &nbsp; darwin-x64, locale ja-JP)<\/p>\n\n\n\n<p>[\u2717] Android toolchain &#8211; develop for Android devices<\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; <\/strong><strong>\u2717<\/strong><strong> Unable to locate Android SDK.<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; Install Android Studio from:<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/developer.android.com\/studio\/index.html\">https:\/\/developer.android.com\/studio\/index.html<\/a><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; On first launch it will assist you in installing the Android SDK<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; components.<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; (or visit https:\/\/flutter.dev\/docs\/get-started\/install\/macos#android-setup<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; for detailed instructions).<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; If the Android SDK has been installed to a custom location, set<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; ANDROID_SDK_ROOT to that location.<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; You may also want to add it to your PATH environment variable.<\/strong><\/p>\n\n\n\n<p>[!] Xcode &#8211; develop for iOS and macOS (Xcode 12.3)<\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; <\/strong><strong>\u2717<\/strong><strong> Xcode end user license agreement not signed; open Xcode or run the command<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; &#8216;sudo xcodebuild -license&#8217;.<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; <\/strong><strong>\u2717<\/strong><strong> Xcode requires additional components to be installed in order to run.<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; Launch Xcode and install additional required components when prompted or<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; run:<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; &nbsp; sudo xcodebuild -runFirstLaunch<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; <\/strong><strong>\u2717<\/strong><strong> CocoaPods not installed.<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; &nbsp; CocoaPods is used to retrieve the iOS and macOS platform side&#8217;s plugin<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; &nbsp; code that responds to your plugin usage on the Dart side.<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; &nbsp; Without CocoaPods, plugins will not work on iOS or macOS.<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; &nbsp; For more info, see https:\/\/flutter.dev\/platform-plugins<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; To install:<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; &nbsp; &nbsp; sudo gem install cocoapods<\/strong><\/p>\n\n\n\n<p>[!] Android Studio (version 4.0)<\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; <\/strong><strong>\u2717<\/strong><strong> Flutter plugin not installed; this adds Flutter specific functionality.<\/strong><\/p>\n\n\n\n<p><strong>&nbsp; &nbsp; <\/strong><strong>\u2717<\/strong><strong> Dart plugin not installed; this adds Dart specific functionality.<\/strong><\/p>\n\n\n\n<p>\u3000\u3000<span class=\"marker-red\">\u6ce8\u610f\uff1aflutter doctor\u3067plugin not installed\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001\u3053\u308c\u306fAndroidStudio4.0\u306e\u30d0\u30b0\u3067\u3059\u3002\u3053\u306e\u307e\u307e\u3067\u6b63\u5e38\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u307e\u3059\u3002<\/span><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>$ flutter &#8211;version<\/p>\n\n\n\n<p><\/p>\n<div class=\"veu_socialSet veu_socialSet-position-after veu_contentAddSection\"><script>window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return t;js=d.createElement(s);js.id=id;js.src=\"https:\/\/platform.twitter.com\/widgets.js\";fjs.parentNode.insertBefore(js,fjs);t._e=[];t.ready=function(f){t._e.push(f);};return t;}(document,\"script\",\"twitter-wjs\"));<\/script><ul><li class=\"sb_facebook sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/www.facebook.com\/sharer.php?src=bm&u=https%3A%2F%2Fwww.elehobby.fun%2F%3Fp%3D333&amp;t=%E5%AE%9F%E8%B7%B5%E3%81%A7%E3%81%8D%E3%81%9F%E9%9B%BB%E5%AD%90%E5%B7%A5%E4%BD%9C%E3%81%A8%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E9%96%8B%E7%99%BA\" target=\"_blank\" onclick=\"window.open(this.href,'FBwindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_fb icon_sns\"><\/span><span class=\"sns_txt\">Facebook<\/span><span class=\"veu_count_sns_fb\"><\/span><\/a><\/li><li class=\"sb_twitter sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.elehobby.fun%2F%3Fp%3D333&amp;text=%E5%AE%9F%E8%B7%B5%E3%81%A7%E3%81%8D%E3%81%9F%E9%9B%BB%E5%AD%90%E5%B7%A5%E4%BD%9C%E3%81%A8%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E9%96%8B%E7%99%BA\" target=\"_blank\" ><span class=\"vk_icon_w_r_sns_twitter icon_sns\"><\/span><span class=\"sns_txt\">twitter<\/span><\/a><\/li><li class=\"sb_hatena sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/b.hatena.ne.jp\/add?mode=confirm&url=https%3A%2F%2Fwww.elehobby.fun%2F%3Fp%3D333&amp;title=%E5%AE%9F%E8%B7%B5%E3%81%A7%E3%81%8D%E3%81%9F%E9%9B%BB%E5%AD%90%E5%B7%A5%E4%BD%9C%E3%81%A8%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E9%96%8B%E7%99%BA\" target=\"_blank\"  onclick=\"window.open(this.href,'Hatenawindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_hatena icon_sns\"><\/span><span class=\"sns_txt\">Hatena<\/span><span class=\"veu_count_sns_hb\"><\/span><\/a><\/li><li class=\"sb_pocket sb_icon\"><a class=\"sb_icon_inner\"  href=\"\/\/getpocket.com\/edit?url=https%3A%2F%2Fwww.elehobby.fun%2F%3Fp%3D333&title=%E5%AE%9F%E8%B7%B5%E3%81%A7%E3%81%8D%E3%81%9F%E9%9B%BB%E5%AD%90%E5%B7%A5%E4%BD%9C%E3%81%A8%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E9%96%8B%E7%99%BA\" target=\"_blank\"  onclick=\"window.open(this.href,'Pokcetwindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_pocket icon_sns\"><\/span><span class=\"sns_txt\">Pocket<\/span><span class=\"veu_count_sns_pocket\"><\/span><\/a><\/li><li class=\"sb_copy sb_icon\"><button class=\"copy-button sb_icon_inner\"data-clipboard-text=\"\u5b9f\u8df5\u3067\u304d\u305f\u96fb\u5b50\u5de5\u4f5c\u3068\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u958b\u767a https:\/\/www.elehobby.fun\/?p=333\"><span class=\"vk_icon_w_r_sns_copy icon_sns\"><i class=\"fas fa-copy\"><\/i><\/span><span class=\"sns_txt\">Copy<\/span><\/button><\/li><\/ul><\/div><!-- [ \/.socialSet ] -->","protected":false},"excerpt":{"rendered":"<p>Mac flutter\u74b0\u5883 install https:\/\/flutter.dev\/docs\/get-started\/install\/macos $mkdir development $ cd ~\/.developmen [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":329,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"vkexunit_cta_each_option":"","footnotes":""},"categories":[41,42,43],"tags":[],"class_list":["post-333","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-flutter","category-mac","category-xcode"],"_links":{"self":[{"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/posts\/333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=333"}],"version-history":[{"count":0,"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/posts\/333\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/media\/329"}],"wp:attachment":[{"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}