-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: build and install ios interop client in interop workflow
- Loading branch information
Showing
4 changed files
with
36 additions
and
4 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
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,12 @@ | ||
#!/usr/bin/env sh | ||
|
||
DEVICE=$1 | ||
|
||
# Pre-approve opening URLs in InteropClient to suppress permission dialogs | ||
SIM_DATA_PATH=`xcrun simctl get_app_container booted com.wire.InteropClient | sed 's/\(.*data\).*/\1/'` | ||
PLIST_PATH="$SIM_DATA_PATH/Library/Preferences/com.apple.launchservices.schemeapproval.plist" | ||
/usr/libexec/PlistBuddy -c 'Add :com.apple.CoreSimulator.CoreSimulatorBridge-->interop string "com.wire.InteropClient"' $PLIST_PATH | ||
|
||
# Restart the simulator for changes to take effect | ||
xcrun simctl shutdown all | ||
xcrun simctl boot "$DEVICE" |
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,6 @@ | ||
#!/usr/bin/env sh | ||
|
||
DEVICE=$1 | ||
|
||
xcrun simctl boot "$DEVICE" | ||
xcrun simctl install booted Products/Applications/InteropClient.app |