I just installed Xcode on my new MacBook. The new starting templates for Swift iOS require iOS SDK 13+ (ie they either need UISceneDelegate or SwiftUI). Is there a way to create a new app using a built-in template that is compatible with iOS 12?
Xcode 11 is available in the Mac App Store and includes SDKs for iOS 13, macOS Catalina 10.15, watchOS 6, and tvOS 13.
Xcode 13 includes SDKs for iOS 15, iPadOS 15, tvOS 15, watchOS 8, and macOS Big Sur 11.3. The Xcode 13 release supports on-device debugging for iOS 9 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 13 requires a Mac running macOS 11.3 or later.
Xcode is Apple's IDE (Integrated Development Environment) for both Mac and iOS apps. Xcode is the graphical interface you'll use to write iOS apps. Xcode includes the iOS SDK, tools, compilers, and frameworks you need specifically to design, develop, write code, and debug an app for iOS.
Also the LaunchServices on macOS, now respects the selected Xcode when launching Instruments, Simulator, and other developer tools embedded within Xcode. Thus using these intuitive new design tools of Xcode11, SwiftUI can be used to build interfaces like dragging and dropping, dynamic replacement, and previews.
Another option is to use some simple template or example project.
https://github.com/PacktPublishing/The-10-Day-iPhone-App-Bootcamp---New-iOS-12-and-Xcode/tree/master/S01
You need to download that zip ,and open project file "Swift Fun.xcodeproj" with xCode 11
I use this to start and learn, this may help you.
The steps to getting to an iOS 12/13 app:
1) Change deployment target to iOS 12.
2) Replace the AppDelegate's methods with what they ought to have for iOS 12 development. Also add this:
var window: UIWindow?
3) Remove SceneDelegate.
4) Remove Application Scene Manifest in your info.plist.
Originally answered here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With