iOS: Using Swift 4 when targeting iOS 9
Yes, just like with Swift 1, Swift 2 and Swift 3, you can use Swift 4 with any version of iOS 7 and above.
See this similar question for Swift 3: Xcode 8 / Swift 3 and installing apps on iPhone 4 running iOS 7
See this similar question for Swift 2: Swift 2.0 minimum system version requirement (deployment target)
Note: as iOS 11 is dropping support for 32-bit, you will only be able to use iOS 11 from an arm64 slice (that is, from iPhone 5S and up). Source:
iOS 11 no longer supports armv7 or armv7s (32-bit). If an iOS target has an iOS Deployment
Target of 11, then it will not build for 32-bit. iOS targets with an iOS Deployment Target earlier
than 11 will still build for 32-bit by default. (32163517)
Using Xcode 7 to develop apps for iOS 6 and iOS 7
After you create the project in your target settings you need to choose deployment target 6.0
Then in your build setting you need to make sure you choose correct architectures that supports 32 bits and 64 bit processor.
If you are going to use storyboards you need to make sure that you dont rely on Auto Layout
feature because that is ios 7 and later versions.
Is it possible to compile Swift 2 code in Xcode 7 and run it on an iOS 11.1 iPhone 6?
Yes you can do that. Install new Xcode version ( 9 ) and extract sdk image. Put it into your 7th folder, and you can run from Xcode 7 on iOS 11 device. But wonder, iOS 11 works only with 64x architecture, so apps should not be compiled in 32bit
Is it possible to install iOS 7 SDK on Xcode 6?
Seems like if you symlink the relevant SDK from a previous installation of Xcode to the Xcode 6 Beta directory, Xcode 6 will be able to use it. Assuming you still have Xcode 5.1.1 on your machine, try the following in terminal:
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
This should link the iOS 7 SDK for iPhone (not sim), allowing you to select iOS 7 as the Base SDK in Xcode 6 Beta. If you want to do this for the simulator, replace iPhoneOS.platform
with iPhoneSimulator.platform
.
NOTE: Just because you have the iOS 7 SDK now doesn't mean it'll build. I'm personally having trouble with the fact that Xcode 6 Beta is using the Apple LLVM 6.0 compiler, which apparently isn't compatible with some of the stuff I'm trying to build.
ref: https://stackoverflow.com/a/11424966/2383003
Related Topics
Check the Position of the Xcuielement on Screen While Testing iOS Application Using Xctest
Error Domain=Kclerrordomain Code=2 "The Operation Couldn't Be Completed. (Kclerrordomain Error 2.)"
Populating Input Text Field in Wkwebview
Hkanchoredobjectquery Not Returning Reliably in Background
How to Use The Coreaudio API in Swift
React Native 0.40.0: Rctbundleurlprovider.H" File Not Found - Appdelegate.M
Disable iOS Reachability Swipe Gesture in iOS Game
How to Print Out(Nslog) The Properties of a Custom Object Added to a Nsmutablearray
Proper Sequence to Get Registration Token for Gcm Push Notification on iOS? Is Gcm Unreliable
Receipt Validation in iOS Returns Incorrect Info During Sandbox Testing
Using String.Characterview.Index.Successor() in for Statements
Swiftui: Navigate to Home Screen After Login Completed. Navigating Views by Button Click
Get Path to Subdirectory in Resources Folder