I installed Xcode4.0.2 yesterday and attempted to build and run a project developed by someone else, who was using an older version of Xcode (3.2.5) and iOS 4.2.
By default it seems, Xcode sets the project's "Base SDK" to 'Latest iOS (iOS 4.3)'. When I try to change that, my only iOS SDK options are "iOS 4.3" or "Latest iOS (iOS 4.3)". On my machine (Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs) I have "iPhoneSimulator4.2.sdk", as well as one for 3.2, 4.0 and 4.1.
In the Base SDK dialog, I tried choosing "Other..." to set the SDK to something other than the 4.3 options listed. Instead of getting a list of additional installed SDKs I get a text area where I need to manually enter an SDK. I tried "iOS 4.2" but I don't believe that worked.
Why isn't the list of available SDKs being populated with all the ones on my machine, and how can I set the SDK to 4.2?
Thanks!
Mat
You will want to select latest SDK, and then if you want the product to work on an earlier version you will want to select iOS Deployment Target, you can go all the way back to 3.0.
Related
I'm trying to make a app with Gluon mobile but i'm not able to make the Android version work.
I try to download the SDK directly from android but the SDKManager will not open.
After some research I find that SDKManager is not support anymore.
I install Android studio, but the Support Repository is now obsolete.
Anybody know how I can make it work?
I change my JavaJDK to 1.8 instead of java 11 or 12 but still nothing.
Thanks
Jc
The Gluon Plug-in won't deploy to Android with gradle task androidInstall as the Android SDK is missing "Android Support Repository" which is no longer available with current versions of Android Studio, but the androidInstall gradle task console-log outputs a DOS command-line showing how to download it.
Something like:
C:/Users/.../Android/Sdk/tools/bin/sdkmanager "extras;android;m2repository"
(the above is described in the link mentioned earlier by José Pereda)
Environment: Version 8.2 beta (8C30a)
My schema list only devices.
How do I change the iOS version in simulator?
I can see the available iOS Simulators...
...but they're not listed in the schema list.
Nor is their a way to discriminate amongst the iOS versions within schema manager.
The list of available simulators is dictated by three factors:
It will not show you simulators whose iOS version is prior to that of your current app's deployment target. If you want to see some recent, prior iOS simulators, make sure your app's deployment target is set accordingly.
If you go to Xcode "Preferences" - "Components", you can confirm which iOS simulators are installed on your machine.
In Xcode's "Devices" window (shift+command+2), as shown in the snapshot in your original question, you can configure particular simulator devices for your Xcode environment.
Open your xcode and press command + shift + 2.
Click on left bottom + button and your new simulator with required iOS version.
Click create, now you are ready to use the new simulator.
After adding the #availability & #availability flags which allowed me to get a successful compiled under and older distribution target, I noticed that the iOSes came back:
Now that Swift 2.2 / iOS 9.3 / watchOS 2.2 is out, can I update an app using Xcode 7.3 and still work on a iOS 9.2 device?
For example, if I started using #selector(someFunc) instead of selector("someFunc"), will this crash on a iOS 9.2 device?
iOS SDK is maintained to be backward-compatible (though I don't know, how far back). You can take a look at page SDK Compatibility Guide, Base SDK and Deployment Target Settings to read about "Base SDK" and "Deployment Target" project settings.
The latest language version (either Swift or Objective-C) can also be used with older iOS versions, because, no matter what the language is, the compiler will generate effectively the same machine-code at the end. There could be nuances like lack of some OS features (e.g. ARC is fully supported starting from iOS 5, though it's pretty much compiler/language feature).
It may be also interesting to read Xcode 7.3 Release Notes to get the list of new features and changes. This document does not states that some older iOS versions are no more supported.
I have a weird issue... I'm unable to find the simulator as a device in order to test my application. Anyone have any idea how to fix it? In a new project, it is available though.
Regards,
EZFrag
Here's what happened to me ... when I updated to the latest version of XCode (4.3.2) I didn't bother to uninstall the previous version. I mistakenly opened my iOS 5.1 targeted project in the older version of XCode that does not know about 5.1 and as a result the simulator was not available. So i would check for the following:
See which version of XCode you're currently running
Try checking your iOS Deployment Target ... (Targets -> Deployment). If iOS 5.1 is selected change it to iOS 5.0 (the simulator will show up immediately)
In additional to G.Bickham's answer, please make sure the iOS Simulator is downloaded.
To verify the download status, go to Xcode's Preferences > Downloads > Components > iOS Simulator
A read similar questions but related to Beta version of Xcode, my doubt is wired to the last version of Xcode (4.3) that seems to be too buggy at the moment!
I rather use Xcode 4.2 but I'm not sure I can submit apps with this version! Is the last version of Xcode a requirement to send app to Apple ?
Where I can read something about that ? Apple documentation didn't help me.
You can still submit apps with xCode 4.2 . Only beta version of xCode cannot submit apps.