Will Swift 2.3 be compatible with iOS 10?

I am new to iOS dev and Swift.

I started the game with Swift 2.3. I sent it for preview to Apple, yesterday they rejected it because some functions did not work on iOS 10. Therefore, I had to upgrade the iPhone 6S to iOS 10 to check it accordingly.

At the same time, my Xcode 7, obviously, asked me to update, otherwise I could not install the game again on iOS 10. What I did.

When installing Xcode 8, I was asked to upgrade to Swift 3 (recommended). It was the worst choice I could choose, since now my code has more than 240 errors, including syntax from third-party libraries like GoogleAds, iCarousel, etc. I would not have a problem fixing these 240 errors if they were all mine.

So my question is: can I go back to Swift 2.3 on my Xcode 8 and still run it on iOS 10?

In addition, they told me that my application does not look โ€œgoodโ€ on the iPad, because even if I do not support it, it should be played in any case. It was easy to fix, but now iOS 10 no longer supports iPad 2, not iPhone 4 and 4. Starts with iPhone 5 and 5s + iPad Air 2.

Should I forget about these old devices now (iPhone 4 and iPad 2)?

Thanks in advance.

+5
source share
1 answer

The Swift language version is not related to the target OS.

With Xcode 8, you can use either Swift 2.3 or Swift 3 - both can customize different versions of iOS, so yes, you can encode iOS 10 with Swift 2.3 in Xcode 8.

You speak:

What about the devices I have to support? since iPhone 4 and 4s / iPad 2 are no longer "selected" in the list of simulators.

These devices cannot be selected if you are targeting iOS 10 because they do not support this OS.

So, if you focus only on iOS 10, you do not need to support them. But be careful, if you aim for iOS 10 and iOS 9 or lower, you will have to support them!

When you target iOS 10, your application will work with iOS 10 - if you target iOS 9, your application will work with iOS 9 and 10, if you target iOS 8, it will work with iOS 8, 9 and 10. Etc .

+14
source

All Articles