Created
July 1, 2024 09:40
-
-
Save yannxou/e5139d83c0fdb2f0f56289ade25b5eeb to your computer and use it in GitHub Desktop.
Xcode build phase pre-action to copy File.app content for UI testing
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
LOGFILE="$HOME/Desktop/xcode-pre-action.txt"; | |
# echo "TARGET_DEVICE_IDENTIFIER=$TARGET_DEVICE_IDENTIFIER" >> $LOGFILE; | |
FILES_PATH="$(xcrun simctl listapps $TARGET_DEVICE_IDENTIFIER | grep LocalStorage | awk -F'"' '{print $4}' | sed -e "s/^file:\/\///")/File Provider Storage" | |
# echo "FILES_PATH=$FILES_PATH" >> $LOGFILE; | |
INPUT_FOLDER="$SRCROOT/E2ETests/Resources/File Provider Storage"; | |
# echo "INPUT_FOLDER=$INPUT_FOLDER" >> $LOGFILE; | |
echo "Copying File Provider Storage files to simulator..."; | |
cp -R "$INPUT_FOLDER/" "$FILES_PATH/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment