diff --git a/scripts/download-purchases-framework.sh b/scripts/download-purchases-framework.sh index 9f2f5fe6..0959d82b 100755 --- a/scripts/download-purchases-framework.sh +++ b/scripts/download-purchases-framework.sh @@ -25,6 +25,8 @@ if [ -d ./Purchases.framework ]; then fi curl -sSL $URL > temp.zip +# In some cases the temp folder can not be created by unzip, https://github.com/RevenueCat/react-native-purchases/issues/26 +mkdir -p temp unzip -o temp.zip -d temp mv temp/Purchases.framework ./Purchases.framework rm -r temp @@ -34,4 +36,4 @@ if ! [ -d ./Purchases.framework ]; then echo "Purchases.framework not found. Please reinstall react-native-purchases"; exit 1; fi; -echo "$VERSION" > .framework_version \ No newline at end of file +echo "$VERSION" > .framework_version