Macs in Chemistry

Insanely Great Science

XCode 13

 

Xcode 13 looks to have some interesting new features, Xcode Cloud and Source code Management should be worth exploring.

Xcode

Xcode 13 includes Swift 5.5 and SDKs for iOS 15, iPadOS 15, macOS Monterey, tvOS 15, and watchOS 8.
The Xcode UI has been refined with new navigator icons and a new always-on bottom bar.
The new Cloud tab in the Report navigator shows Xcode Cloud workflows and build results.

Xcode Cloud

Build, test, and deliver your apps using cloud-based tools built right into Xcode.
Run tests in parallel in the cloud, with results displayed in the report navigator.
View and edit workflows, and view build results in App Store Connect.
Distribute builds automatically to testers using TestFlight.

Source Code Management Integration

The all-new Pull Request experience deeply integrates the process of reviewing source code changes into Xcode.
Code review mode includes a new inline diff mode that lets you view diffs without leaving your current editing context.

Testing

Repeated testing lets you run tests until they fail, until they pass, or for a specified number of times to collect data on the failure rate.
XCTest adds support for memory tracking and iPadOS cursor interaction tests.

Editor

Swift code completion is faster and more robust.
Swift syntax highlighting is faster and more reliable.

Debugging

Column breakpoints give you subline breakpoint resolution.
The selective shader debugger lets you choose which functions to debug within a larger shader, reducing the time required to iterate and debug large shaders.

Other improvements

Crash reports from apps in TestFlight appear in the Xcode organizer within minutes, and can include user feedback.
The Xcode editor supports many of the common key combinations and editing modes familiar to Vim users.
The new Metal-accelerated GPU timeline view in Instruments provides smooth interactions for even the largest traces.
The CPU profiler template in Instruments offers cycle-based profiling.
The new HTTP network tracing tool helps developers and privacy researchers debug and analyze HTTP-based network traffic.

Comments

Writing Python with Xcode

 

I was reading a recent KDnuggets article on a recent poll "What Python IDE / Editor you used the most in 2020?", as expected the poll was topped by Jupyter Notebook (42%), JupyterLab added extra (14%). Visual Studio Code, PyCharm and Spyder were also popular options.

I started wondering if it was possible to use Xcode to code python, the answers "Yes", but it requires a little setting up to do. After a fair bit of online searching I managed to put together a set of instructions that I thought I'd share.

Writing Python with Xcode


Comments

Xcode 9.0 is available for download

 

The new version of Xcode is available for download. Xcode 9.0 includes Swift 4 and SDKs for iOS 11, watchOS 4, tvOS 11 and macOS High Sierra 10.13.

  • The source code editor has been completely rebuilt for amazing speed. It scrolls at a constantly smooth rate, no matter the files size, also supports Markdown.
  • Refactoring to easily select and modify structure of code
  • Swift 4 compiler can also compile Swift 3 to aid transition
  • Xcode 9 makes working with source control – and with GitHub – easier and more tightly integrated.
  • Simulator app updated.

Comments