How I can tell the iOS SDK version used by my Xcode? and iOS SDK version installed on my Mac?
The SDK version by Xcode can be seen in the Build Settings of your project:
To find out which iOS SDKs are installed, open the terminal and type
ls -lah /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
(according to Apple, this is the location where they're installed)
Related
I'm getting an error where I can't install XCode because my MacOS version is 10.15 when the requirement is version 11 or higher.
I don't want to upgrade my mac version because this is a company laptop so my other development tools might get affected.
How do I create a workaround for this?
The latest version of Xcode you can run on Catalina (10.15.4) is Xcode 12.4 and Command Line Tools 12.4.
You can download older versions of Xcode and the Command Line Tools from Apples developer site.
https://developer.apple.com/download/all/?q=xcode
You can check which Xcode version is supported by your OS here; https://developer.apple.com/support/xcode/
You can download all versions of Xcode from this site
https://xcodereleases.com
I got stuck in this problem for several days, my android studio suddenly keep showing 'Loading...' on its device selector when there are active android emulator or connected to android device.
i use mac os catalina 10.15.5 and here is some clue that might help :
siekoo-mac:~ siekoo$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.4, on Mac OS X 10.15.5 19F101, locale en-ID)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✗] Xcode - develop for iOS and macOS
✗ Xcode installation is incomplete; a full installation is necessary for iOS
development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
✗ CocoaPods not installed.
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:
sudo gem install cocoapods
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.47.0)
[✓] Connected device (1 available)
siekoo-mac:~ siekoo$ adb devices
List of devices attached
16fb14c20205 device
Ive tried several solutions, like run invalidate & cache restart on android studio, reinstalling adb platform tools, reinstalling android SDKs or even downgrade/upgrade the android studio, all doesnt end with good result. For now, i run my project on android device via terminal
In my case it was due to different compile and target SDK versions inside app level gradle and library gradle. It was resolved by changing sdk versions from 26 to 29 in both.
Open another android project in new window (not a flutter project). Now you have two windows of android studio.
then device will detect on Android project. You will be able to connect your device for native android project. Then try again to detect device on flutter project.
Your device will show here.
This worked for me.
maybe
Open in Android Studio - Preferences | Languages & Frameworks | Flutter
Set path SDK .../SDK/flutter
the iPhone XR is running ios 12.4.1(16G102),which may not be supported by this version of Xcode
the running version of Xcode is 10.14
You can download zip from here and unzip it. And copy to dir /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport.
Final restart Xcode, your Xcode will support iOS 12.4.1 device
I have Xcode version 8.3
macOS: 10.12.6 (I can´t upgrade)
rect-native: 0.59.5
watchman: 4.9.0
I can't upgrade because my Mac is too old and the project that comes with the react native is for the new version of Xcode.
What can I do?
All this is because I can´t program in react-native that is not compatible white Xcode 8 the new version and I can´t use and oldest version.
I have looked for previous versions I downloaded from Github. RN Version 0.55.4 there says that is for Xcode 8.3 but that doesn't work.
how do you program?
You can download any previous or current version (from 7.0 up to 10.2) of XCode using links, listed here:
https://stackoverflow.com/a/46652775/10556960
You will need to sign in with your Apple Developer account at developer.apple.com, tho.
According to Xcode Releases, the latest Xcode that runs on macOS 10.12.6 is Xcode 9.2.
I upgraded Xcode to 4.5.2 from 4.3.2 and install Simulator 5.0 or 5.1 but it tips
"Failed to mount file://localhost/Users/admin/Library/Caches/com.apple.dt.Xcode/Downloads/Xcode.SDK.iPhoneSimulator.5.1-5.1.dmg at file://localhost/var/folders/sw/qht9m6ln7353v5mbfyvhtmf00000gn/T/attached-image-6fdc393a2528f4e65d994f841bfb0d76b998b7e3/: not recognized", how can I do,thanks.
I found a work around for this. I am currently using Xcode 4.5 so I am sure it works for 4.5.2 as well.
I found the URL's for downloads in the .dvtdownloadabelindex file located in
Users/<user>/Library/Caches/com.apple.dt.Xcode/Downloads/
I copied the file to my Desktop and renamed it to .plist. Looking through some of the I found two URLs to download the simulators (Root/downloadables/Item 9/ for iPhoneSimulator 5.0 and Root/downloadables/Item 17/ for iPhoneSimulator 5.1). Not sure if I am allowed to post the direct URLs due to Apple TOS and whatnot.
I downloaded the two simulators, installed what was in the .dmg. It made a folder in the root of my drive called Platforms. I then copied
/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk
to
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk
Restart Xcode (or in my case, MonoTouch), go into Xcode preferences and to the tab you would normally download them from, click install and this will get rid of the "iOS Simulator could not find the SDK. The SDK may need to be reinstalled." error that you would normally get.
You now have access to the iPhone/iPad iOS 5.0 Simulators. I have only done this for the 5.0 simulator not 5.1, but I am sure it will work the same.
This works for me:
Delete *.dvtdownloadableindex file
Restart Xcode
Install simulators