2020-11-15 00:54:57 -05:00
echo "Please run npm i at the project root before running this script. Otherise, it will fail."
patch ios/BlueWallet/AppDelegate.m ./scripts/maccatalystpatches/appdelegate.patch
2020-11-15 00:45:50 -05:00
patch package.json ./scripts/maccatalystpatches/packagejson.patch
2020-11-15 00:54:57 -05:00
echo "Removing node_modules"
2020-11-15 00:45:50 -05:00
rm -fr node_modules
2020-11-15 00:54:57 -05:00
echo "Removing ios/Pods"
2020-11-15 00:45:50 -05:00
rm -fr ios/Pods
2020-11-15 00:54:57 -05:00
echo "Removing ios/Podfile.lock"
2020-11-15 00:45:50 -05:00
rm -fr ios/Podfile.lock
2020-11-15 00:54:57 -05:00
echo "Re-installing node_modules"
2020-11-15 00:45:50 -05:00
npm i
patch ios/Podfile ./scripts/maccatalystpatches/podfile.patch
patch node_modules/realm/RealmJS.podspec ./scripts/maccatalystpatches/realm.patch
cd ios
pod update
2020-11-15 00:54:57 -05:00
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."