Exporting a Development-signed OSX Application that uses Maps

If you want someone to test your OSX application that uses Maps, and it keep crashing on their Mac, it may be because they need their Mac to be in developer mode. You can see if its currently in developer mode with the following terminal command:

DevToolsSecurity -status

If you want to enable developer mode, use:

DevToolsSecurity -enable

And if for some reason you want to disable developer mode, use:

DevToolsSecurity -disable

You’ll most likely also have to right click on the app, and select ‘Open’ (and confirm) to run the app the first time.

Making a bootable Mac Install ISO

In terminal, change into the ‘Install ‘ folder in your Applications folder after downloading it. Then paste this into a file called makebootableiso.sh:

#!/bin/bash  
  
hdiutil attach ./Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app  
hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o ./OSXInstall  
hdiutil resize -size 8g ./OSXInstall.sparseimage  
hdiutil attach ./OSXInstall.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build  
rm /Volumes/install_build/System/Installation/Packages  
cp -rp /Volumes/install_app/Packages /Volumes/install_build/System/Installation/  
cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/install_build  
cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/install_build  
hdiutil detach /Volumes/install_app  
hdiutil detach /Volumes/install_build  
hdiutil resize -size `hdiutil resize -limits ./OSXInstall.sparseimage | tail -n 1 | awk '{ print $1 }'`b ./OSXInstall.sparseimage  
hdiutil convert ./OSXInstall.sparseimage -format UDTO -o ./OSXInstall  
rm ./OSXInstall.sparseimage  
mv ./OSXInstall.cdr ~/Desktop/OSXInstall.iso  

Finally, run ‘sudo sh makebootableiso.sh’ and let it go. You should end up with a ‘OSXInstall.iso’ file on your Desktop. Burn that or use it in a VM to install OSX!