{"id":96,"date":"2025-07-23T04:10:46","date_gmt":"2025-07-23T04:10:46","guid":{"rendered":"https:\/\/documentation.iqonic.design\/prokit-flutter\/?p=96"},"modified":"2025-07-23T04:27:14","modified_gmt":"2025-07-23T04:27:14","slug":"framework-not-found-linker-command-failed-with-exit-code-1","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/prokit-flutter\/framework-not-found-linker-command-failed-with-exit-code-1\/","title":{"rendered":"Framework not found &amp; Linker command failed with exit code 1"},"content":{"rendered":"<div class=\"nolwrap\">\n<p><strong>\ud83d\udd52 Estimated Reading:&nbsp;<\/strong>1 minutes<strong><br>\ud83d\udcc2&nbsp;Location:&nbsp;<\/strong>Common Errors \u2192 iOS errors \u2192 Framework not found &amp; Linker command failed with exit code 1<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">framework not found flutter  <br>Linker command failed with exit code 1 (use -v to see invocation)<\/pre>\n\n\n\n<p>\u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcc4&nbsp;<strong>Why does this error occur?<\/strong><\/h2>\n\n\n\n<p>This error typically appears when:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Your\u00a0<strong>Flutter SDK path<\/strong>\u00a0is not set correctly on macOS.<\/li>\n\n\n\n<li>There\u2019s a\u00a0<strong>mismatch between Flutter SDK versions<\/strong>\u00a0in your global terminal and Android Studio terminal.<\/li>\n\n\n\n<li>The\u00a0<strong>Flutter framework<\/strong>\u00a0is not found during the iOS build process.<\/li>\n\n\n\n<li>Or\u00a0<strong>Xcode\u2019s iOS deployment target<\/strong>\u00a0is incorrectly set.<\/li>\n<\/ul>\n\n\n\n<p>\u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u2705<strong>&nbsp;Step-by-Step Solution<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd39&nbsp;<strong>Step 1: Check Flutter SDK Version<\/strong><\/h3>\n\n\n\n<p>First, verify your Flutter version:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open\u00a0<strong>Terminal<\/strong>\u00a0on your Mac.<\/li>\n\n\n\n<li>Run the command:\u00a0<strong>flutter \u2013version<\/strong><\/li>\n<\/ul>\n\n\n\n<p>Then open Android Studio\u2019s terminal and run the same command. If both versions do&nbsp;<strong>not match<\/strong>, you need to set your Flutter SDK globally.<\/p>\n\n\n\n<p>\u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd27&nbsp;<strong>Set Flutter SDK Path Globally on macOS<\/strong><\/h3>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>1. Open Terminal<\/strong><\/h5>\n\n\n\n<p>Use Spotlight (<strong>Cmd + Space<\/strong>) \u2192 Type&nbsp;<strong>Terminal<\/strong>&nbsp;\u2192 Open it.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>2. Open Shell Profile for Editing<\/strong><\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If using\u00a0<strong>Bash<\/strong>:\n<ul class=\"wp-block-list\">\n<li>nano ~\/.bash_profile<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If using\u00a0<strong>Zsh<\/strong>\u00a0(default on newer macOS):\n<ul class=\"wp-block-list\">\n<li>nano ~\/.zshrc<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>3. Add Flutter SDK Path<\/strong><\/h5>\n\n\n\n<p>At the end of the file, add this line:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">export PATH=\"$PATH:\/path\/to\/flutter\/bin\"<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Replace&nbsp;<strong>\/path\/to\/flutter<\/strong>&nbsp;with the actual path where Flutter is installed on your system.<\/p>\n<\/blockquote>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>4. Save &amp; Exit<\/strong><\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Press\u00a0<strong>Ctrl + O<\/strong>, then\u00a0<strong>Enter<\/strong>\u00a0to save<\/li>\n\n\n\n<li>Press\u00a0<strong>Ctrl + X<\/strong>\u00a0to exit<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>5. Apply Changes: In the Terminal, run:<\/strong><\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If using\u00a0<strong>Bash<\/strong>:\n<ul class=\"wp-block-list\">\n<li>source ~\/.bash_profile<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If using\u00a0<strong>Zsh<\/strong>\u00a0(default on newer macOS):\n<ul class=\"wp-block-list\">\n<li>source ~\/.zshrc<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>6. Confirm Setup<\/strong><\/h5>\n\n\n\n<pre class=\"wp-block-preformatted\">  flutter doctor --v<\/pre>\n\n\n\n<p>\u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udee0\ufe0f<strong>&nbsp;Set Flutter SDK Path in Android Studio on macOS<\/strong><\/h3>\n\n\n\n<p>Follow these steps to set up the Flutter SDK path in Android Studio on macOS:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open Android Studio<\/strong>: Launch Android Studio on your Mac.<\/li>\n\n\n\n<li><strong>Open Preferences<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Go to\u00a0<strong>\u201cAndroid Studio\u201d<\/strong>\u00a0in the menu bar.<\/li>\n\n\n\n<li>Then, select \u201cPreferences\u201d.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Access Flutter Settings<\/strong>:\n<ul class=\"wp-block-list\">\n<li>In the left-hand pane, navigate to\u00a0<strong>\u201cLanguages &amp; Frameworks\u201d<\/strong>.<\/li>\n\n\n\n<li>Then, select\u00a0<strong>\u201cFlutter\u201d<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Set Flutter SDK Path<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Look for the\u00a0<strong>\u201cFlutter SDK path\u201d<\/strong>\u00a0field.<\/li>\n\n\n\n<li>Click on the folder icon next to it.<\/li>\n\n\n\n<li>Navigate to the directory where Flutter is installed on your system and select the Flutter SDK folder.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Apply Changes<\/strong>: After selecting the Flutter SDK path, click \u201cApply\u201d or \u201cOK\u201d to save the changes.<\/li>\n\n\n\n<li><strong>Restart Android Studio<\/strong>: Close and reopen Android Studio for the changes to take effect.<\/li>\n<\/ol>\n\n\n\n<p>After completing these steps, Android Studio will be configured to use the Flutter SDK from the specified path. This will enable you to create, edit, and run Flutter projects seamlessly within Android Studio on macOS.<\/p>\n\n\n\n<p>\u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd04&nbsp;<strong>Step 2: Clean &amp; Rebuild Your Project<\/strong><\/h3>\n\n\n\n<p>Run the following commands in your terminal (inside the project root folder):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">flutter clean<br>rm -rf ios\/Runner.xcworkspace<br>rm ios\/Podfile.lock<br>flutter pub get<br>cd ios<br>pod install<\/pre>\n\n\n\n<p>if still issue is not fixed then move to the next step<\/p>\n\n\n\n<p>\u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd01&nbsp;<strong>Step 3: Update Flutter SDK<\/strong><\/h3>\n\n\n\n<p>If the issue persists:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Download the latest stable Flutter SDK<br>\ud83d\udc49 Download\u00a0<a href=\"https:\/\/docs.flutter.dev\/get-started\/install\/macos\" target=\"_blank\" rel=\"noopener\">Flutter SDK<\/a><\/li>\n\n\n\n<li>Replace your existing SDK with the downloaded one.<\/li>\n\n\n\n<li>Repeat Steps 1 &amp; 2 after replacement.<\/li>\n<\/ol>\n\n\n\n<p>\u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705&nbsp;<strong>Final Notes:<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Always verify the correct SDK path in both Android Studio and terminal.<\/li>\n<\/ul>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\ud83d\udd52 Estimated Reading:&nbsp;1 minutes\ud83d\udcc2&nbsp;Location:&nbsp;Common Errors \u2192 iOS errors \u2192 Framework not found &amp; Linker command failed with exit code 1 framework not found flutter Linker command failed with exit code 1 (use -v to see invocation) \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"parent":94,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-96","post","type-post","status-publish","format-standard","hentry","category-prokit-flutter"],"featured_image_src":null,"author_info":{"display_name":"flutteradminiq","author_link":"https:\/\/documentation.iqonic.design\/prokit-flutter\/author\/flutteradminiq\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":2,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":98,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/96\/revisions\/98"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/94"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}