diff --git a/scripts/maccatalystpatches/applypatchesformaccatalyst.sh b/scripts/maccatalystpatches/applypatchesformaccatalyst.sh index 19e4eb84c..ce373a639 100755 --- a/scripts/maccatalystpatches/applypatchesformaccatalyst.sh +++ b/scripts/maccatalystpatches/applypatchesformaccatalyst.sh @@ -1,10 +1,16 @@ -patch package.json ./scripts/maccatalystpatches/packagejson.patch -rm -fr node_modules -rm -fr ios/Pods -rm -fr ios/Podfile.lock -npm i +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 +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 node_modules/realm/RealmJS.podspec ./scripts/maccatalystpatches/realm.patch cd ios 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." \ No newline at end of file