Skip to content

Commit

Permalink
Update Package.swift for 3.6.0-catalyst
Browse files Browse the repository at this point in the history
  • Loading branch information
johngohscreeningeagle authored and hujunfeng committed Apr 13, 2023
1 parent 9099702 commit 586db19
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Expand Up @@ -10,8 +10,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "Charts",
url: "https://github.com/screeningeagledreamlab/ChartsXCFramework/releases/download/v3.6.0-xcode14-fix/Charts.xcframework.zip",
checksum: "a8b8c452a331fb3b93d536058fd0413e2a1493698c032a5cfb2a99ec5584c92d"
url: "https://github.com/screeningeagledreamlab/ChartsXCFramework/releases/download/v3.6.0-catalyst/Charts.xcframework.zip",
checksum: "a29e80f468d63b68e5bb6a7ce1e040ba1e829e610c74fd5a7883b750544325cd"
)
]
)
9 changes: 9 additions & 0 deletions build-charts-xcframework.sh
Expand Up @@ -15,7 +15,16 @@ xcodebuild archive \
-archivePath "build/Charts-iOS.xcarchive" \
SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES

xcodebuild archive \
-project "Charts.xcodeproj" \
-scheme "Charts" \
-configuration Release \
-destination "generic/platform=macOS,variant=Mac Catalyst" \
-archivePath "build/Charts-Catalyst.xcarchive" \
SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES

xcodebuild -create-xcframework \
-framework build/Charts-iOS.xcarchive/Products/Library/Frameworks/Charts.framework \
-framework build/Charts-iOSSimulator.xcarchive/Products/Library/Frameworks/Charts.framework \
-framework build/Charts-Catalyst.xcarchive/Products/Library/Frameworks/Charts.framework \
-output build/Charts.xcframework

0 comments on commit 586db19

Please sign in to comment.