I will like to know if there is a workaround to use flutter 3 with a lesser version of xcode on a mac running os catalina 10.15.7 & unable to upgrade - xcode

I use an old macbook pro 13 inch mid 2012 and the latest os i think we can upgrade it to is OS Catalina and the version is 10.15.7. It no longer receives new update from Apple. I am learning flutter and i had an earlier version of flutter installed and xcode 11.5 and everything was working just fine when i run flutter doctor but when i upgraded the flutter version to flutter 3, i get an error that flutter 3 requires Xcode 13 or higher. My mac cannot support Xcode 13 or higher. Is there any kind of workarund for this so i can use flutter 3 and if not can i just develop only for Android but i dont know if this options are possible.
I have tried to install other versions of Xcode maybe it will work but it didn't. I dont remember the former version of flutter i was using before i upgraded to flutter 3 so i can revert back to it and get everything working again without errors when i run flutter doctor. Even with that option, i will not be able to write code in flutter 3 and my apps will only target older devices. I could only find a fix of patching my mac to update it to mac os big sur but i can't risk putting my only computer through that gamble with 3rd party patch software. Is there any kind of workaround?

Related

SDK Version Issue.This app was built with the iOS 14.5 SDK

ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS 14.5 SDK. All iOS apps submitted to the App Store must be built with the iOS 15 SDK or later, included in Xcode 13 or later.
My current version is macOs Big Sur version(11.4)
and my xcode version(12.5.1)
You need XCode 13 to use iOS 15 SDK. Simply update your XCode and MacOS (if necessary), then build the app again.
After updating XCode, your iOS SDK will be automatically updated.
Instruction for Older macOS:
Use this patch and upgrade your macOS https://github.com/Ben216k/Patched-Sur
After the upgrade, you can install XCode 13 on your older mac.
Here you can see all the supported mac lists: https://bensova.gitbook.io/big-sur/supported-macs
Below are steps I followed to solve the same issue in the same context:
Upgrade macOs Big Sur -> macOs Monterey v12.4
Update Xcode 12.x -> Xcode 13.x or later
Note: Upgrade could take some minutes. Hence, be patient

Your Xcode version may be too old for your iOS version

I have updated my phone's OS version to iOS 14 and spent today updating Xcode to version 12, yet when I try to build my Flutter app on my iPhone 11 - iOS 14 through Android Studio, it gives me this error:
Your Xcode version may be too old for your iOS version.
═══════════════════════════════════════════════════════════════════════════════════
2020-09-18 19:14:26.576 ios-deploy[30916:201883] [ !! ] Error 0xe8000022: The service is invalid. AMDeviceSecureStartService(device, CFSTR("com.apple.debugserver"), NULL, &con)
Could not run build/ios/iphoneos/Runner.app on 00008030-00012C200C45802E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
open ios/Runner.xcworkspace
Error launching application on Azheen’s.
This problem is somewhat confusing, I got the same error with Xcode 12.0.1 and iOS 14.2 beta.
This solved for me
Download Device support files of iOS 14.0 from this link.
for iOS 14.2 beta there is a pull request that is not yet merged
Unzip and Paste it in this location. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
ReOpen Xcode.
This is what I did:
Updated Xcode
flutter clean on the terminal.
flutter upgrade on the terminal.
Open Xcode and run the application once.
flutter clean again.
flutter run.
It should work now.
This issued was raised a while back in August in the flutter repo. Currently, the issue has been fixed by the recent flutter update.
Run flutter upgrade to v1.20.4 to get the fix
I ran into this problem recently, most likely it can be caused due to the reason, that your iOS Device is running a higher version than you xcode can support.
Example:
Apple release new iOS for iPhone i.e. 14.2 and you upgrade your device right away, than you ran into this issue, because the xcode may not have the latest version of your device support files, meaning xcode can only suuport iOS 14.1 or lower. Apple sometimes release newer iOS without providing update of xcode device support files.
There is 4 solutions for this:
Keep your iOS Device on the current stable version of xcode
Downgrade your current iOS device
Install device support files manually
Install xcode beta from Apple Developer https://developer.apple.com/download/
It is an annoying issue, Apple should not release any iOS without having the supporting tools released at the same time, or they should run a warning.
Ran into this issue today on Visual Studio. It appeared that my Dart SDK version was too out of date and upgrading it appeared to fix the problem.
I did upgrade my Flutter version first, and then ran into a problem with the vsync property of AnimationController not being recognized, which was solved by upgrading the Dart SDK, so I'm not sure who the real culprit was (or if it was a combination of both).
Instructions on upgrading your Dart SDK: https://dart.dev/get-dart

How can I download Xcode for flutter development

I have been trying to start flutter development with my MacBook with version OS X Yosemite.
my basic challenge is this, I can't install Xcode that is compatible with flutter development.
How can I find my way around this?

How do I download Xcode 9 on a mac running 10.11.6 (El Capitan)?

I am taking a course on programming with flutter, and it needs Xcode 9 or higher. My mac is currently running 10.11.6 and it can't update any more. I was wondering if there was any way to get Xcode 9 on my mac?
Xcode9 needs OS X 10.12.6 or higher.
The latest Xcode you can install on OS X 10.11.6 is Xcode8 (version 8.2.1).
Here you can check which minimal OS version is required by which version of Xcode:
https://en.wikipedia.org/wiki/Xcode#Version_comparison_table
Also for downloading any older version of Xcode you need a developer account (free account is enough) and you can download from here:
https://developer.apple.com/download/more/
Unfortunately I don't see older than Xcode9 there but I found Xcode 8.2.1 here
Xcode is only needed to run your Flutter apps on iOS devices and simulators. But to develop Flutter apps, you use another IDE your Mac can probably run: Android Studio, Visual Studio Code or Intellij IDEA.
You can still test your app using an Android emulator or device.
If you do need to upgrade, you can download a Sierra, High Sierra or Mojave patcher from dosdude1's website, and install a later version of macOS on your unsupported Mac (if your mac is in the list of supported devices, and I haven't tested it, so do it at your own risk).

How to install ios 8 sdk on xcode 5?

I have OS X Mountain Lion (10.8.5) and Xcode 5.1 already installed on my mac and i can't upgrade my os for now. I need ios 8 sdk in order to publish my app in app store.
How can i install ios 8 sdk on xcode 5?
I have tried copying /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/8.0/ from another computer but it doesn't work - new sdk is not presented in Build Settings > Base SDK combo box.
Sadly that's not possible: the iOS 8 SDK is only available with Xcode 6, for which you need either Mavericks or Yosemite. Furthermore, since February 1st 2015 you can no longer submit apps to the App Store using Xcode 5: https://developer.apple.com/news/?id=10202014a
If you can't upgrade your current system at the moment, look into Parallels Desktop and install a virtual instance of your Mac from the recovery partition. You can then upgrade the VM and install Xcode 6 there, without having to upgrade your current system.
Alternatively, use ShirtPocket's SuperDuper to clone your current hard disk to an external one, then boot from the external drive and upgrade that to Yosemite and Xcode 6.

Resources