Apple has released Xcode 11 and some new features that developers need to know

Tram Ho

Hello everyone, today cafedev will introduce an overview of the new Xcode 11 released by Apple on September 16, 2019.

If you have an Apple Account, you can go here to download Xcode 11.

Requirements required to run Xcode 11

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 11 supports development for devices running iOS 13.1. Xcode 11 supports debugging on devices for iOS 8 and above, tvOS 9 and up, and watchOS 2 and above. Xcode 11 requires a Mac running macOS Mojave 10.14.4 or higher.

New features

  • Xcode 11 supports App development with SwiftUI.

Note: Preview and test of SwiftUI is only available when running on macOS Catalina 10.15.

  • Xcode 11 adds Mac Catalyst support to bring iPad apps to the Mac.

Note: iPad applications can only code and develop for Mac when running on macOS Catalina 10.15 onwards.

  • Xcode supports uploading applications from the Organizer window or from the command line with xcodebuild or xcrun altool. Application Loader is no longer included in Xcode.
  • Editors can be added to any window without an Assistant Editor. The editor is added using the Edit Add button in the Jump bar or the File menu> New> Editor (File> New> Editor command). Each editor (Editors) can independently display its own assistant or canvas via commands in the menu

Asset Catalog

  • Xcode can find assets in your workspace / project using the Find navigator. The asset catalog editor also supports Find and Replace, and you can rename the property with Replace.
  • Assets can now be cut, copied, pasted and copied using shortcut keys in the menu or keyboard

Swift

  • The @frozen attribute for structure and enum has now been updated
  • The constructor function of the structure has now allowed to provide default values ​​for the arguments.
  • An @autoclenses parameter can now be declared using an alias.
  • Methods declared with the @objc attribute inside a class can now return Self.
  • And many other features, you can refer here .

SwiftUI (The most anticipated section)

Yes, here Apple shows a list of existing issues and some issues.

Issues:

  • Deploying pre-SwiftUI previews for a device in a project with a preview of iOS 10 will not work, even if the device is running iOS 13. Pre-SwiftUI previews can only be deployed for devices when the project’s deployment target is iOS 10+ and the Device is running iOS 13.
  • The HStack and VStack bars do not support custom layout of items.
  • Pinch to zoom is not available in live preview.
  • And many other issues, you can refer here .

Swift Package Manager support for iOS

A lot of people have been asking this for a long time, but since Xcode 11 Swift Package Manager (SPM) currently supports iOS apps. It takes a lot of time exploring CocoaPods and Carthage to know which of these three guys will be the leader in functionality, but from what I can see SPM has all the important facilities like the other two.

To better understand SPM you can refer to.

In addition, Xcode 11 has updated some other features as follows:

Build System, Core Data, Debugging, Instruments, Interface Builder, Playgrounds, Simulator, Source Editor, Source Control, Signing and Distribution

You can refer here .

Share the news now

Source : TechTalk