Unable to debug in xcode 8.2.1 using swift 2.3 - ios

My project is in swift 2.3. currently using xcode 8.2.1 . while debugging (using po command) getting below error.
Swift expressions require OS X 10.10 / iOS 8 SDKs or later in Xcode 8.2.1.

Related

Swift 5.3 is not showing in xcode 12 build settings

I am facing weird issue with xcode build setting for swift language version. I am trying to keep latest swift version i.e 5.3 but it is not showing in my xcode build setting. I upgraded xcode to 12.3 as well but no luck. Any suggestion?
XCode 12 comes with swift 5.3, we are not able to choose between 5.1, 5.2 & 5.3. If you want to use Swift 5.2 then you have to use XCode 11.4 as mentioned here: https://developer.apple.com/support/xcode/
In order to determine which swift version you are using you can try this command in terminal:
xcrun swift -version
You will get something like that:
Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)
Note: If you have installed different versions of XCode use :
xcrun --find swift in order to find the path of each swift and then use the above command to determine it's version.

How can i support iOS Version 10.3 with swift 2.3 project

Good Day,
Lastweek i updated my Xcode from 8.2 to 8.3, In my project i used swift 2.3 version. I tried to use multiple version of xcode to my Mac but when i use the older version of Xcode i can't run the project on devices that has iOS Version 10.3.1
I don't know how to run swift 2.3 to iOS Version 10.3.1
Note: My Project still not uploaded on App Store.
Thanks
You need DeveloperDiskImage for iOS version 10.3 to run your project on device(iOS 10.3) using xcode 8.2.
Download Xcode 8.3.2 from here and copy 10.3 (14E269) folder inside DeviceSupport from the downloaded Xcode using path Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ and paste it into Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ path in your existing Xcode 8.2 in Finder.
It's said in release note clearly that Xcode 8.3 no longer supports Swift 2.3 version. So you need to migrate your projects containing Swift 2.3 code to Swift 3 syntax by opening the project and choosing Edit > Convert > To Current Swift Syntax.

Is it possible to change the version of Swift Xcode is using?

Running "swift -version" reveals that:
Xcode 8.2.1 is using Swift 3.0.2
BUT
Xcode 8.3 Beta is using Swift 3.0.
This is a nuisance as Realm has different Swift frameworks for 3.0 and 3.0.2 - which means using a project created with Xcode 8.2.1 using the Realm framework for 3.0.2 won't build if using Xcode 8.3.
Is there a way to change Xcode 8.3 beta to use Swift 3.0.2?

ios 7.0 upgrade issue

I have iPhone 4 with iOS 6.1.3 which is recently upgraded to iOS 7 now I need to test my app on that iPhone with iOS 7. I have SDK Xcode 4.6 and OS X 10.7.5
I got some small issues here due to iOS 6.1.3 upgrade to iOS 7:
I'm unable to test my app on that iPhone 4 with my current SDK (Xcode 4.6). So, if I need to update it to Xcode 5.0 but its not
working with OS X 10.7.5.
If I upgraded my OS X 10.7.5 to 10.8.5 will it work?
I have tried to downgrade iOS but I'm unable to do that because Apple stopped the signing for the previous versions.
First you need to upgrade your mac os to 10.8 then only you can install xcode 5. From xcode 5 you can take build in the device which is having IOS 7.
For your reference :
https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_5_0.html#//apple_ref/doc/uid/TP40012953-SW1
You have to upgrade your X-code version 5 and after upgrading u test your app in your phone
First of you have to upgrade your SDK' to to Xcode 5,IOS7 ....In the deployment target please use IOS 6 or relatively your iPhones IOS...Please remember developemnt target and deployment target are different....

Building iOS6 app with Titanium SDK 3.1.3

I'm using Titanium SDK 3.1.3, XCode 5, and have simulators for both iOS 6.1 and iOS 7.
I'm trying to build an iOS 6.1 app in the simulator via the Titanium CLI but I get the following error:
[ERROR] Invalid --ios-version value '6.1'
Accepted values:
7.0
Which is odd because the release notes for the SDK says "You will still be able to compile iOS 6 apps with Xcode 5. Additionally, Xcode 5.0 requires Mac OS X 10.8.4 or later."
Thanks in advance for your inputs.
My bad — a proper SDK was missing inside Xcode's folders:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/iPhoneOS6.1.sdk

Resources