MacDriver 0.5.0 Released with Renamed DarwinKit and Major Changes

After a year of preview, MacDriver 0.5.0 has finally been released, and from this version onwards, the project has been renamed DarwinKit.

MacDriver 0.5.0 Released with Renamed DarwinKit and Major Changes_0

The main changes in this version are as follows:

  • Added bindings for 33 frameworks
  • There are currently more than 2,300 classes, almost completely covering all situations in mac development applications. In contrast, version 0.4.0 only covered about 80 classes
  • Currently implemented 23,800 methods / properties and nearly 10,000 constants / enums. Previously, there were less than 50 constants
  • Since the preview version was released, 543 structs have been implemented
  • Automatic conversion and the use of native Go built-in types such as strings, bools, []byte and maps etc. are implemented in the API
  • Support block parameters as Go functions (callbacks) with correct type parameters
  • Built-in delegate implementation, developers can simply use Go functions
  • More 1-to-1 mapping with Objective-C symbol names, while improving the adaptability of Go usage habits
  • Improved all symbols documentation, including the link of the official Apple documentation of this symbols
  • Use Objective-C memory management simple model
  • Prepare to support more platforms such as iOS, tvOS, watchOS and visionOS
  • Continue to support Intel and Apple Silicon
  • Almost generated all bindings

In addition, v0.5.0-preview had a regression problem since the release of a newer version of Go, related to linker warnings, this problem is an upstream problem in cgo,DarwinKit team said hoping to solve this problem in the upcoming Go version. At the same time, they saidfuture version releases will not have such a long preview period of half a year.

< span>It is worth looking forward to that the team has also verified that it can start to use purego instead of cgo to improve the build speed, and will apply it in the next version's key aspect of function binding.

For details, you can check the release information:

Likes