Release 4.8.0 (#13)

* chore: Update build scripts for Xcode 14.1
This commit is contained in:
Steven Sherry 2023-05-02 11:07:04 -05:00 committed by GitHub
parent 64202ccaec
commit 6e0e85303a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 17 deletions

View file

@ -7,10 +7,10 @@ on:
jobs: jobs:
build: build:
runs-on: macos-11 runs-on: macos-12
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- run: sudo xcode-select --switch /Applications/Xcode_13.0.app - run: sudo xcode-select --switch /Applications/Xcode_14.1.app
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install build dependencies - name: Install build dependencies
run: | run: |

View file

@ -18,13 +18,13 @@ let package = Package(
targets: [ targets: [
.binaryTarget( .binaryTarget(
name: "Capacitor", name: "Capacitor",
url: "https://github.com/ionic-team/capacitor-swift-pm/releases/download/4.7.0/Capacitor.xcframework.zip", url: "https://github.com/ionic-team/capacitor-swift-pm/releases/download/4.8.0/Capacitor.xcframework.zip",
checksum: "0cc3db2578f9e3027abed7a40ca409479dd76fc47a74f820108b5fa967c26372" checksum: "2f3ff96b39604057e73fc50ed1157279b6f2c63b67e2a6c4db32f2a46d588472"
), ),
.binaryTarget( .binaryTarget(
name: "Cordova", name: "Cordova",
url: "https://github.com/ionic-team/capacitor-swift-pm/releases/download/4.7.0/Cordova.xcframework.zip", url: "https://github.com/ionic-team/capacitor-swift-pm/releases/download/4.8.0/Cordova.xcframework.zip",
checksum: "17d0726dadd8b4f552afd1142016321c3d560845aec6d91e49947c7f8ff04d07" checksum: "27bde213e7def3036358a8c30379978bcaadbbc4cea2d4806d124c8324b99316"
) )
] ]
) )

View file

@ -6,7 +6,7 @@ build_capacitor_simulator() {
-workspace Capacitor.xcworkspace \ -workspace Capacitor.xcworkspace \
-destination "generic/platform=iOS Simulator" \ -destination "generic/platform=iOS Simulator" \
-archivePath ./Build/iOS-Simulator \ -archivePath ./Build/iOS-Simulator \
-configuration Debug \ -configuration Release \
SKIP_INSTALL=NO \ SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES BUILD_LIBRARY_FOR_DISTRIBUTION=YES
} }
@ -23,14 +23,6 @@ build_capacitor_ios() {
BUILD_LIBRARY_FOR_DISTRIBUTION=YES BUILD_LIBRARY_FOR_DISTRIBUTION=YES
} }
cap_bcsymbol() {
echo -n $(dwarfdump -u $PWD/Build/iOS.xcarchive/Products/Library/Frameworks/Capacitor.framework/Capacitor | grep -Ewo '[[:xdigit:]]{8}(-[[:xdigit:]]{4}){3}-[[:xdigit:]]{12}')
}
cordova_bcsymbol() {
echo -n $(dwarfdump -u $PWD/Build/iOS.xcarchive/Products/Library/Frameworks/Cordova.framework/Cordova | grep -Ewo '[[:xdigit:]]{8}(-[[:xdigit:]]{4}){3}-[[:xdigit:]]{12}')
}
create_xcframeworks() { create_xcframeworks() {
build_capacitor_simulator build_capacitor_simulator
build_capacitor_ios build_capacitor_ios
@ -40,16 +32,16 @@ create_xcframeworks() {
xcodebuild -create-xcframework \ xcodebuild -create-xcframework \
-framework ./Build/iOS-Simulator.xcarchive/Products/Library/Frameworks/Capacitor.framework \ -framework ./Build/iOS-Simulator.xcarchive/Products/Library/Frameworks/Capacitor.framework \
-debug-symbols $PWD/Build/iOS-Simulator.xcarchive/dSYMs/Capacitor.framework.dSYM \
-framework ./Build/iOS.xcarchive/Products/Library/Frameworks/Capacitor.framework \ -framework ./Build/iOS.xcarchive/Products/Library/Frameworks/Capacitor.framework \
-debug-symbols $PWD/Build/iOS.xcarchive/dSYMs/Capacitor.framework.dSYM \ -debug-symbols $PWD/Build/iOS.xcarchive/dSYMs/Capacitor.framework.dSYM \
-debug-symbols $PWD/Build/iOS.xcarchive/BCSymbolMaps/$(cap_bcsymbol).bcsymbolmap \
-output Capacitor.xcframework -output Capacitor.xcframework
xcodebuild -create-xcframework \ xcodebuild -create-xcframework \
-framework ./Build/iOS-Simulator.xcarchive/Products/Library/Frameworks/Cordova.framework \ -framework ./Build/iOS-Simulator.xcarchive/Products/Library/Frameworks/Cordova.framework \
-debug-symbols $PWD/Build/iOS-Simulator.xcarchive/dSYMs/Cordova.framework.dSYM \
-framework ./Build/iOS.xcarchive/Products/Library/Frameworks/Cordova.framework \ -framework ./Build/iOS.xcarchive/Products/Library/Frameworks/Cordova.framework \
-debug-symbols $PWD/Build/iOS.xcarchive/dSYMs/Cordova.framework.dSYM \ -debug-symbols $PWD/Build/iOS.xcarchive/dSYMs/Cordova.framework.dSYM \
-debug-symbols $PWD/Build/iOS.xcarchive/BCSymbolMaps/$(cordova_bcsymbol).bcsymbolmap \
-output Cordova.xcframework -output Cordova.xcframework
zip -r Capacitor.xcframework.zip Capacitor.xcframework zip -r Capacitor.xcframework.zip Capacitor.xcframework