unless you built an app from scratch in 13.3+
My environment is setup to build flutter3/GCP apps for Android and iOS, and it works perfectly in Android Studio or xCode again after reverting
Your env needs to be setup this way to build iOS applications from single source flutter 2.0+ in Android Studio or xCode.
Steps to revert to xCode & Command Line Tools 13.2.1 (not for WIN-DOS users)
Any version of OSX works
Delete all xCode artifacts including the Developer directory in your user Library
-
drag the xCode app to the trash can
-
rm -rfd ~/Library/Developer directory
-
empty the trash
Delete Android Studio and Android directory in your user Library
-
drag the Android Studio app to the trash
-
rm -rfd ~/Library/Android
-
empty the trash
-
In OS X Settings turn off Automatic Updates for OSX and Store Apps like the pic below
to prevent osx from auto-updating everything after you install the older versions
Reinstall xCode & Command Line Tools and then Android Studio
- Download xCode and Command Line Tools for 13.2.1
- Install xCode and then the CLTs
-
reboot because on a clean disk you can search forever
- Download the latest version of Android Studio and install
- sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
- sudo xcodebuild -runFirstLaunch
- sudo xcodebuild -license accept
- sudo gem install cocoapods
Thats all folks for xCode users
For flutter users continue here (in Android Studio)
Launch Android Studio and create a basic droid app using the new project templates in AS.
Build and run it on any droid emulator.
This makes Android Studio download all of the build tools it needs and which match your configuration (gradle etc...)
Update kotlin and gradle setting in Android Studio and your app to the latest and rebuild/run it again.
This updates all build tool dependencies to the latest for Android builds.
Add the flutter plugins to Android Studio
Create a basic flutter app using the project template in AS File -> New Project
Build and run it on an Android emulator
Try to build and run it on an iOS emulator from within Android Studio, and it will likely fail.
Running iOS builds from within Android Studio sets up the pods and dependencies and most of what is needed, but not everything needed to successfully run the flutter app on iOS.
It always seems necessary to take this next step to get flutter apps to build properly in xCode.
Open the flutter iOS directory in xCode and let it index and analyze the project. xCode will indicate any problems it finds in a yellow triangle near the top right of the screen.
And if you are trying to compile flutter code for the first time and have not done this for your project het, will include errors in the xCode project. Tell xCode to fix everything it finds (by clicking on the error warnings and then the highlighted fix (text). Once you do this your flutter generated iOS app will build in xCode or from Android Studio.
CULater Jazzzzzzz