Reputation: 55
I am able to run the app in android studios but whenever I try in xcode I get a flutter framework not found.
Upvotes: 4
Views: 15691
Reputation: 73
I performed below steps and it worked with me:
Go to Build Settings for your target (Runner):
Ensure Build Active Architecture Only is set to NO for both Debug and Release.
Ensure Valid Architectures includes arm64.
Ensure Excluded Architectures is empty.
Go to General > Frameworks, Libraries, and Embedded Content:
Ensure Flutter.framework is listed and set to Embed & Sign.
Upvotes: 0
Reputation: 41
Please try the following steps:
Upvotes: 0
Reputation: 95
Delete the flutter directory.
Download new flutter
Extract it and put it where you want.
Run the command export PATH="$PATH:`pwd`/flutter/bin"
if the command does not work then specify your path like bellow
export PATH="$PATH: /Users/{your user name}/Documents/src/flutter/bin"
Restart your machine and you are ready to go.
After that - inside your project's ios directory -
and now run -
flutter clean
flutter packages upgrade
flutter build ios
Upvotes: 1
Reputation: 21
I was facing the same error whene I try to archive in Xcode I fixed it by
flutter upgrade
and
flutter run
Upvotes: 2
Reputation: 37
I tried everything nothing worked except:-
Flutter upgrade Flutter run
and boom- Build succeeded!
Upvotes: 0
Reputation: 11
I fixed this by switching to the master channel, and switching back to the stable channel. Also remember to run 'flutter upgrade' after switching.
Upvotes: 1
Reputation: 619
For me nothing worked except, deleting my flutter files fully and reinstalling.
Use this flutter docs for reinstallation: Flutter Installation Link
Upvotes: 0
Reputation: 41957
upgrade your flutter by doing
flutter upgrade
and it will upgrade the engine and download necessary tools.
This will even kill flutter daemons.
And run the application again
flutter run
Upvotes: 8
Reputation: 14145
Upvotes: 2