{"id":726,"date":"2021-01-08T17:02:47","date_gmt":"2021-01-08T08:02:47","guid":{"rendered":"https:\/\/hobby.7crystalsky.com\/?p=333"},"modified":"2022-03-06T11:18:28","modified_gmt":"2022-03-06T02:18:28","slug":"flutter-mac%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83","status":"publish","type":"post","link":"https:\/\/www.7crystalsky.com\/?p=726","title":{"rendered":"\u3010Flutter\u3011 Mac\u958b\u767a\u74b0\u5883"},"content":{"rendered":"<div class=\"veu_autoEyeCatchBox\"><img loading=\"lazy\" decoding=\"async\" width=\"311\" height=\"162\" src=\"https:\/\/www.7crystalsky.com\/wp-content\/uploads\/2021\/12\/flutter.png\" class=\"attachment-large size-large wp-post-image\" alt=\"\" srcset=\"https:\/\/www.7crystalsky.com\/wp-content\/uploads\/2021\/12\/flutter.png 311w, https:\/\/www.7crystalsky.com\/wp-content\/uploads\/2021\/12\/flutter-300x156.png 300w\" sizes=\"auto, (max-width: 311px) 100vw, 311px\" \/><\/div>\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.7crystalsky.com%2F%3Fp%3D726&amp;t=IT%E3%82%92%E6%A5%BD%E3%81%97%E3%82%80%E4%BC%9A\" 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_x_twitter sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.7crystalsky.com%2F%3Fp%3D726&amp;text=IT%E3%82%92%E6%A5%BD%E3%81%97%E3%82%80%E4%BC%9A\" target=\"_blank\" ><span class=\"vk_icon_w_r_sns_x_twitter icon_sns\"><\/span><span class=\"sns_txt\">X<\/span><\/a><\/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":1086,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"vkexunit_cta_each_option":"","footnotes":""},"categories":[53,49,50],"tags":[],"class_list":["post-726","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-flutter","category-mac","category-xcode"],"_links":{"self":[{"href":"https:\/\/www.7crystalsky.com\/index.php?rest_route=\/wp\/v2\/posts\/726","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.7crystalsky.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.7crystalsky.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.7crystalsky.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.7crystalsky.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=726"}],"version-history":[{"count":1,"href":"https:\/\/www.7crystalsky.com\/index.php?rest_route=\/wp\/v2\/posts\/726\/revisions"}],"predecessor-version":[{"id":1089,"href":"https:\/\/www.7crystalsky.com\/index.php?rest_route=\/wp\/v2\/posts\/726\/revisions\/1089"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.7crystalsky.com\/index.php?rest_route=\/wp\/v2\/media\/1086"}],"wp:attachment":[{"href":"https:\/\/www.7crystalsky.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.7crystalsky.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.7crystalsky.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}