Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write apps for iOS 12 in Xcode 11?

Tags:

ios13

xcode11

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?

like image 388
Frederic Avatar asked Sep 22 '19 03:09

Frederic


People also ask

Does Xcode 11 support 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.

Does Xcode 13 support iOS 12?

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.

Can you make iOS apps with Xcode?

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.

Does Xcode 11 support SwiftUI?

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.


2 Answers

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.

like image 190
BuffK Avatar answered Oct 16 '22 08:10

BuffK


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

like image 26
Rammohan Raja Avatar answered Oct 16 '22 06:10

Rammohan Raja