I got and Error which says that "found "xcode 10.1, build version 10b61". xcode 10.2 or greater is required to develop for ios. flutter ", Tried everything, but cannot make it work.
Its working on the Xcode, but unfortunately Its not working in VS Code.
The latest Xcode version is 11.3. Please update the Xcode in your mac machine and open Xcode to complete the installation of all necessary components.
Fluter requires Xcode command-line tools. to setup command-line tool run following in your terminal:
$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
$ sudo xcodebuild -runFirstLaunch
Detailed reference can be found in Fluter iOS setup. Hope this helps.
I had the same problem, my macbook is late 2011 so I couldn't update to Mojave or Catalina which is required by xcode 10.2 and above.
for people like me reaching here, I just updated my mac to Catalina (the same 2011 model) using dosdude patcher located at macOS Catalina Patcher. it works like a charm, I installed the latest xcode and now all is fine.
Related
Building a Unity 2022.1 project for iOS I get the following error:
Burst.Compiler.IL.Aot.AotLinkerException: XCode installation version is less than required.
Clang version is 11.0.0 and 12.0.0 is the minimum required
This is weird because I have just updated XCode to 14.2 which apparently uses Clang 14.
Ok it turns out it was pointing to some old version. I probably previously installed it with brew, but now it is exclusively on the app store. I was able to fix it by entering this in the terminal:
sudo xcode-select --switch /Applications/Xcode.app
My app was working fine until I did 2 small changes.
On Target runner in Xcode I enabled bitcode for the project.
I update the Android studio to the latest version.
Android Studio Bumblebee | 2021.1.1
Build #AI-211.7628.21.2111.8092744, built on January 19, 2022
Runtime version: 11.0.11+0-b60-7590822 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.0.1
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 4
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: Dart (211.7798), org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40), io.flutter (63.2.2)
After that When I run my flutter app on iOS simulator I'm getting this error.
Although I have disabled bitcode and tried again.I got same error. I installed and reinstalled cocapoads still same error. I don't know what causing this error. Can you help? please
Warning: CocoaPods not installed. Skipping pod install.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting- started.html#installation for instructions.
CocoaPods not installed or not in valid state.
Error launching application on iPhone 13.
UPD: Fixed in 2021.1.1 patch 1, see release notes here
This might happen because AndroidStudio doesn't know anything about $PATH provided in ~/.*rc files (.bashrc,.zshrc, etc.)
You can ensure by launching it from terminal:
open /Applications/Android\ Studio.app
EDIT: It's a confirmed bug in Bumblebee release
The workaround is to add missing flag:
chmod +x /Applications/Android\ Studio.app/Contents/bin/printenv
You have to do it only once
Open terminal run -> chmod +x /Applications/Android\ Studio.app/Contents/bin/printenv
Try again...And it should work.
I got an exception on the pod availability check.
which pod
It seems that $PATH env for the updated studio is not picked properly. (you can check it by enabling verbose logging mode on the flutter plugin).
Workaround is to start Android studio from the terminal:
open /Applications/Android\ Studio.app
Updated:
Android Studio Bumblebee (2021.1.1) Patch 1 fixes this issue.
I came across this problem too using Android studio on Apple Silicon MacBook launching from command line or directly both failed
I updated the ruby version to 2.7.3 using rbenv, and then it worked from the command line.
open /Applications/Android\ Studio.app
Note: default macOS system ruby is version is 2.6.8, and there are some incompatible gems with this version
If the top voted solution doesn't fix this for you with the Bumblebee release, then you can try the beta Chipmunk release of Android Studio.
I am running the M1 Mac and this version 2021.2.1 Beta 1 is able to run the flutter apps from the toolbar correctly.
I've searched all of solutions, and current post's answers do the trick. But basically it seems like flutter android studio(only lately-updated bumblebee version) plug-in triggers the pod error, since both xcode and android studio terminal run work just fine.
We might have to keep tracking this issue. Before flutter team gives a clear answer, i'm planning to use flutter run --debug, since terminal run provides "r" for hot reload and "R" for hot restart. Or we can also use open /Applications/Android\ Studio.app everytime.
I fixed it by running:
sudo gem install ffi
In my case i check $PATH variable and in this do not exist path to pod executable
Using MacBook Pro M1 with pod installed by brew
I'm trying to build my Flutter app on Mac os Catalina. And would like to support old phone like Ipad 2. I read on a post the maximun version of Xcode should be 11.3.1, so i install that then install the newest version of Flutter.
But when if run
flutter build ios
i got Found "Xcode 11.3.1, Build version 11C505". Xcode 12.0.1 or greater is required to develop for iOS.
So i'm trying to downgrade Flutter to the lastest version compatible with Xcode 11.3.1.
Found list of old releases but it's not easy get infos on compatibility with Xcode.
I use command line only (because VMware too slow).
At my MBP mid 2012 and iMac late 2012 with Mojave 10.14.6 and Xcode 11.3.1, I have flutter 2.0.6.
After install, if you run flutter -v doctor, you will receive a message:
"! Xcode 11.3.1 out of date (12.0.1 is recommended).
Download the latest version or update via the Mac App Store."
but you can run flutter code without troubles.
If I try run flutter 2.2.X, ‘flutter -v doctor’ returns a message that Xcode 12 is need.
Disclaimer for macOS 10.14.6 users:
I remember when I installed flutter, at some point I needed install gems dependencies, but I had trouble because I was using Mojave 10.14.6, Xcode and flutter.
If you have troubles with gems installation, please go to Error while installing json gem 'mkmf.rb can't find header files for ruby'
and check my answer for Mojave 10.14.6 (answered Nov 18 '20 at 14:08)
I recently updated my xcode from version 7.3 to 9.0.1 now in titanium studio simulators are not showing up inside run option. In previous version they were working fine. Also i confirmed that my xcode path in Titanium studio is correct and it shows it as "Installed" when i run some app from run configuration option i get this error.
[ERROR] : Invalid "--device-id" value "iPhone"
Available iOS Simulators:
For help, run: titanium.js help build
Please share any clue to solve this issue.
Thanks
I had same issue.
Try this command in terminal.
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/
Miro
I haven't used my development tools for Appecelerator Titanium in a while (Studio and CLI). Now I try to run an existing app in the iOS simulator.
From studio I can not select the iOS simulators.
When I use the CLI and execute: appc run (platform iOS) i get this message:
Unable to find any Xcode installations thats supports at least iOS 8.0
I have Xcode version 9.0.1 installed.
How can i connect Xcode with Titanium again?
The path of the active XCode developer directory (xcode-select -p) is:
/Applications/Xcode.app/Contents/Developer
You're probably on an SDK older than 6.2. xcode 9 isn't supported by older SDK's for obvious reasons. You can either install xcode8 (downloadable from the apple website) or you can upgrade to Titanium SDK 6.2 or higher (6.3 came out, I recommend that)
For information regarding versioning (of everything related to Ti, check the compatibility matrix in the documentation)
Had the same problem today after installed Xcode 9.2, on side of Xcode 9.4.1 and Titanium SDK 7.2.0.GA. Same error message as in the title of this post. As suggested by Patrick De Marta, I've tried
appc run -p ios -T simulator -C x
after that, I could select a simulator and run the app.
Thanks!
What do you get when you execute "appc ti sdk list" from command line ?
I'm not sure if this is your case, but I had a similar problem and solved it by specifying the target simulator with the CLI build option -C
(appc ti info for the list of simulator names )
hope this helps