New Tools for 64-bit Support in Xcode 9.3

The last macOS release to support 32-bit apps without compromise is macOS High Sierra. Make sure future releases of your app are 64-bit compatible by using new diagnostic tools in Xcode 9.3 beta and testing on macOS 10.13.4 beta. This version of Xcode also builds 64-bit apps by default.

Supported Configurations

Xcode 9.3 beta requires a Mac running macOS 10.13.2 or later.
Xcode 9.3 beta includes SDKs for iOS 11.3, watchOS 4.3, macOS 10.13.4, and tvOS 11.3.

Deprecation of macOS 32-bit support

To prepare for a future release of macOS in which 32-bit software will no longer run without
compromise, starting in macOS High Sierra 10.13.4 a user is notified on the launch of an app that
depends on 32-bit software. The alert appears only once per app.
Developers can use a new 64-bit testing mode in macOS 10.13.4 to test software for 64-bit
NOTE: It is strongly recommended that this mode is enabled only by developers or experienced IT
To enable 64-bit mode:

  1. Launch Terminal
  2. Execute the following command: sudo nvram boot-args=”-no32exec”
  3. Restart the machine

64-bit test mode prevents 32-bit processes from launching. Launching an app that depends on 32-
bit software results in a notification that the application can’t be opened. Other types of software
may fail silently, such as 32-bit versions of Dashboard and WebKit plugins, preference panes, and
background processes.
Disable the test mode once the software is updated to work in 64-bit.
To disable the test mode:

  1. Launch Terminal
  2. Execute the following command: sudo nvram boot-args=“”
  3. Restart the machine

Swift and Apple LLVM Compilers

  • Objective-C methods with selectors that start with add or remove are now named consistently
    when imported into Swift. Previously, each occurrence of the same selector could be
    nondeterministically named by using or not using the portion of the name after add or remove,
    such as importing addThing: as either add(🙂 or addThing(🙂
  • A class and instance method with the same selector on an Objective-C protocol are both
    callable on a class that implements that protocol.

Swift Compiler

  • When swiftc is run from the command line, the default deployment target is set to the version of the currently running OS.
  • Calls to unavailable functions are permitted if the calling context is also marked unavailable. This simplifies writing code that can be compiled with and without application extension restrictions enabled.
  • The compiler now warns for more cases of non-exclusive memory access. These are shown as warnings in the Swift 4.1 compiler and may become errors for all language modes in future versions of the compiler.

For example, the compiler now warns about overlapping accesses to the variable “value”:

var value = 7
withUnsafeMutablePointer(to: &value) {
$0.pointee = value + 1

One way to avoid the warning is to make a copy of the local variable before passing it as inout:

var value = 7
let valueCopy = value
withUnsafeMutablePointer(to: &value) {
 $0.pointee = valueCopy + 1

Another way is to refer to the variable using a closure parameter instead of capturing it:

var value = 7
withUnsafeMutablePointer(to: &value) {
 $0.pointee = $0.pointee + 1

Developer tools in xcode 9.3

Accessing Additional Developer Tools

To launch additional developer tools, such as Instruments and FileMerge, launch Xcode-beta and select Xcode > Open Developer Tool. You can keep these additional tools in your Dock for direct access when Xcode isn’t running.

Technical Support and Learning Resources

Apple provides the following web resources to support your development with Xcode:

  • Apple Developer Forums. Participate in discussions about developing for Apple platforms and using developer tools.
  • Bug Reporter. Report issues, enhancement requests, and feedback to Apple. Provide detailed information, including the system and developer tools version information, and any relevant crash logs or console messages.
  • Apple Developer website. Get the latest development information as well as technical
    documentation for Xcode.
  • Xcode homepage. Get high-level information about the latest release of Xcode. Download
    current and beta Xcode releases.
  • For help with using Xcode, use the built-in help by choosing Help > Xcode Help.

Ref  Apple updates

Related Post

New features in XCode 10 Supported Configurations Xcode 10 beta requires a Mac running macOS 10.13.4 or later Xcode 10 beta includes SDKs for iOS 12, watchOS 5, macOS ...
Variables Variables A variable is a named location in memory that is used to hold a value that can be modified by the program. All variable must be declared be...
Break Statement in JAVA Break Statement in JAVA The break statement is usually used in following two scenarios: The break statement terminates the loop immediately, and th...
Dart Libraries | Dart Tutorial Dart Libraries Dart has the following libraries, which are included in all Dart platforms: dart:core This library is automatically imported into ev...
Custom View by use of xib in swift Custom View by use of xib in swift We can create the custom and common view by the use of xib in swift 3.1 and XCode 8.3.2 . Custom views are common ...
Switch Case Statement Switch Case Statement The switch statement is a multi-way branch statement. It provides an easy way to dispatch execution to different parts of c...

Write A Comment