-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Steve Kirkland
committed
Nov 4, 2024
1 parent
09b3a24
commit 6e2ea47
Showing
4 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,4 @@ Package.resolved | |
bb.ready | ||
/maze_output | ||
Gemfile.lock | ||
Bugsnag.xcframework.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
pushd features/fixtures/macos | ||
|
||
echo "--- macOSTestAppXcFramework: xcodebuild archive" | ||
|
||
BUILD_ARGS=( | ||
-workspace macOSTestAppXcFramework.xcodeproj/project.xcworkspace | ||
-scheme macOSTestAppXcFramework | ||
-destination generic/platform=macOS | ||
-configuration Release | ||
-archivePath archive/macOSTestAppXcFramework.xcarchive | ||
-quiet | ||
archive | ||
ONLY_ACTIVE_ARCH=NO | ||
) | ||
|
||
if [ "${ENABLE_CODE_COVERAGE:-}" = YES ]; then | ||
BUILD_ARGS+=( | ||
OTHER_CFLAGS='$(inherited) -fprofile-instr-generate -fcoverage-mapping' | ||
OTHER_LDFLAGS='$(inherited) -fprofile-instr-generate' | ||
OTHER_SWIFT_FLAGS='$(inherited) -profile-generate -profile-coverage-mapping' | ||
) | ||
fi | ||
|
||
xcodebuild "${BUILD_ARGS[@]}" | ||
|
||
echo "--- macOSTestAppXcFramework: xcodebuild -exportArchive" | ||
|
||
xcrun xcodebuild \ | ||
-exportArchive \ | ||
-exportPath output/ \ | ||
-exportOptionsPlist exportOptions.plist \ | ||
-archivePath archive/macOSTestAppXcFramework.xcarchive \ | ||
-destination generic/platform=macOS \ | ||
-quiet | ||
|
||
pushd output | ||
echo "--- macOSTestApp: zip" | ||
zip -qr macOSTestAppXcFramework.zip macOSTestAppXcFramework.app | ||
popd | ||
popd |