Skip to content

v0.0.1

Latest
Compare
Choose a tag to compare
@atdrendel atdrendel released this 20 Mar 20:40
· 1 commit to main since this release
c48fb3c

Initial release. This release adds the ability to generate optimized XCFrameworks from DiffMatchPatchObjC, which is necessary because Google's diff-match-patch Objective-C code uses manual memory management. Swift Packages using the -fno-objc-arc "unsafe" C flag cannot be added to Swift Packages consumed by Xcode.

To use the XCFramework, copy the URL to DiffMatchPatchObjC-X.X.X.xcframework.zip from the release of DiffMatchPatchObjC you want to consume. Also, copy the related checksum from the release. Add the following to your Swift package's targets array:

.binaryTarget(
  name: "DiffMatchPatchObjC",
  url: "URL",
  checksum: "CHECKSUM"
)