### Motivation Mac Catalyst builds stopped working when `cc-rs` got updated by dependabot in the `rust-mbedtls` dependency of `mobilecoin` and `libmobilecoin`. ### In this PR * Update `mobilecoin` repo commit to newer that includes a previous `mbedtls` big-num multiplication fix. * Patch `cc-rs` with new compiler args so mac-catalyst will build correctly * Patch `cmake-rs` with changes so mac-catalyst will build correctly * Patch `rust-mbedtls` with above changes so it can build mac-catalyst * Patch `libmobilecoin` with above patches * Add `patch-cmake.sh` script on the local machine to workaround a restriction of `cmake` where the CMAKE_SYSTEM_NAME cannot be iOS with a CMAKE_OSX_SYSROOT pointing to a MacOSX sdk. The patched `cmake` files in this context comes from brew as a build dependency. An un-patch script is included as well. ' * re-add back in old implementations of functions for `...add_output` and `...add_change_output` for the Transaction Builder that have the old sig and pull the tokenId from the TransactionBuilder. The new versions which support "mixed" transactions for "SCI" get the "_mixed" suffix. * Change deployment target to 11.0 * Fix dependency hell w/ cocoapods & Xcode 14, etc... ### Future Work Find a fix that doesn't require patching `cmake` locally. Merge the patches upstream into master-repo's main branches. Fix SwiftNIO catomic issue in Swift repo |
||
|---|---|---|
| .. | ||
| patch-cmake.sh | ||
| unpatch-cmake.sh | ||