shareup / cwasm3

MIT License
23 stars 12 forks source link

Generate XCFramework from project #14

Closed atdrendel closed 2 years ago

atdrendel commented 2 years ago

In unoptimized builds, CWasm3 is very slow. This can dramatically slow down development. This pull request adds the ability to generate optimized XCFrameworks from CWasm3, which can be used in place of CWasm3.

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

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