This commit is contained in:
marcosrdz 2020-11-15 00:54:57 -05:00 committed by Overtorment
parent 292c8f42b5
commit 05cb2d2758

View file

@ -1,10 +1,16 @@
patch package.json ./scripts/maccatalystpatches/packagejson.patch echo "Please run npm i at the project root before running this script. Otherise, it will fail."
rm -fr node_modules
rm -fr ios/Pods
rm -fr ios/Podfile.lock
npm i
patch ios/BlueWallet/AppDelegate.m ./scripts/maccatalystpatches/appdelegate.patch patch ios/BlueWallet/AppDelegate.m ./scripts/maccatalystpatches/appdelegate.patch
patch package.json ./scripts/maccatalystpatches/packagejson.patch
echo "Removing node_modules"
rm -fr node_modules
echo "Removing ios/Pods"
rm -fr ios/Pods
echo "Removing ios/Podfile.lock"
rm -fr ios/Podfile.lock
echo "Re-installing node_modules"
npm i
patch ios/Podfile ./scripts/maccatalystpatches/podfile.patch patch ios/Podfile ./scripts/maccatalystpatches/podfile.patch
patch node_modules/realm/RealmJS.podspec ./scripts/maccatalystpatches/realm.patch patch node_modules/realm/RealmJS.podspec ./scripts/maccatalystpatches/realm.patch
cd ios cd ios
pod update pod update
echo "You should now be able to compile BlueWallet using My Mac on XCode. If you are running macOS Catalina, you will need to remove the iOS 14 Widgets from the project targets."