Skip to content

Commit

Permalink
chore(swift): build ios-universal-simulator to support both m1 and in…
Browse files Browse the repository at this point in the history
…tel macbooks
  • Loading branch information
mehcode committed Oct 18, 2022
1 parent 34ace10 commit b2963a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions sdk/rust/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,16 @@ tasks:
- rm -rf ../swift/CHedera.xcframework/{ios,macos}-*/

- mkdir -p ../swift/CHedera.xcframework/macos-universal/Headers/
- mkdir -p ../swift/CHedera.xcframework/ios-{x86_64-simulator,arm64}/Headers/
- mkdir -p ../swift/CHedera.xcframework/ios-{universal-simulator,arm64}/Headers/

- lipo ../c/lib/macos-x86_64/libhedera.a ../c/lib/macos-arm64/libhedera.a -output ../swift/CHedera.xcframework/macos-universal/libhedera.a -create
- cp ../c/lib/ios-x86_64/libhedera.a ../swift/CHedera.xcframework/ios-x86_64-simulator/
- lipo ../c/lib/ios-x86_64/libhedera.a ../c/lib/ios-arm64/libhedera.a -output ../swift/CHedera.xcframework/ios-universal-simulator/libhedera.a -create
- cp ../c/lib/ios-arm64/libhedera.a ../swift/CHedera.xcframework/ios-arm64/

- cp ../c/include/hedera.h ../swift/CHedera.xcframework/macos-universal/Headers/
- cp ../c/include/hedera.h ../swift/CHedera.xcframework/ios-x86_64-simulator/Headers/
- cp ../c/include/hedera.h ../swift/CHedera.xcframework/ios-universal-simulator/Headers/
- cp ../c/include/hedera.h ../swift/CHedera.xcframework/ios-arm64/Headers/

- cp ../swift/CHedera.xcframework/module.modulemap ../swift/CHedera.xcframework/macos-universal/Headers/
- cp ../swift/CHedera.xcframework/module.modulemap ../swift/CHedera.xcframework/ios-x86_64-simulator/Headers/
- cp ../swift/CHedera.xcframework/module.modulemap ../swift/CHedera.xcframework/ios-universal-simulator/Headers/
- cp ../swift/CHedera.xcframework/module.modulemap ../swift/CHedera.xcframework/ios-arm64/Headers/
3 changes: 2 additions & 1 deletion sdk/swift/CHedera.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-x86_64-simulator</string>
<string>ios-universal-simulator</string>
<key>LibraryPath</key>
<string>libhedera.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
Expand Down

0 comments on commit b2963a9

Please sign in to comment.