Skip to content

Commit

Permalink
fix(iOS): error with version packing script.
Browse files Browse the repository at this point in the history
  • Loading branch information
asafkorem committed May 22, 2024
1 parent 2041328 commit 49917ec
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions detox/scripts/pack_ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,22 @@ cd ..
echo "Packaging iOS sources and prebuilt frameworks"

# Create temp build directory
mkdir build_temp
mkdir build_temp_framework

# Package prebuilt framework
scripts/build_framework.ios.sh "ios/Detox.xcodeproj" "build_temp"
scripts/build_framework.ios.sh "ios/Detox.xcodeproj" "build_temp_framework"
cd build_temp_framework
tar --exclude-from=../ios/.tbzignore -cjf ../Detox-ios-framework.tbz .
cd ..
rm -rf build_temp_framework

# Package prebuilt XCUITest runner
scripts/build_xcuitest.ios.sh "ios/DetoxXCUITestRunner/DetoxXCUITestRunner.xcodeproj" "build_temp"

cd build_temp
# Create temp build directory
mkdir build_temp_xcuitest

# Package prebuilt XCUITest runner
scripts/build_xcuitest.ios.sh "ios/DetoxXCUITestRunner/DetoxXCUITestRunner.xcodeproj" "build_temp_xcuitest"
cd build_temp_xcuitest
tar --exclude-from=../ios/.tbzignore -cjf ../Detox-ios-xcuitest.tbz .
tar --exclude-from=../ios/.tbzignore -cjf ../Detox-ios-framework.tbz .
cd ..

# Cleanup
rm -fr build_temp
rm -rf build_temp_xcuitest

0 comments on commit 49917ec

Please sign in to comment.