Question

I made an application with Processing that I exported to a .app file. It works just fine on my computer. When I download my app from the Internet and try to open it, I get the following message:

MyApp.app is damaged and can't be opened. You should move it to the trash.

As users on this site have noticed, many Apple certificates expired on 11/11/2015, making it impossible to run these applications if Gatekeeper is enabled. Processing seems to be signing with expired signatures as well. How do I remove these signatures?

Was it helpful?

Solution 2

You can use the unsign tool on the executable file inside the MyApp.app package. After downloading the .zip file, to compile the binary go to Terminal and enter cd ~/Downloads/unsign-master (or wherever you extracted the zip file), then enter make. Next enter sudo cp unsign /usr/bin/unsign. Next find my MyApp.app in Finder. Then type cd, type a space, and then drag MyApp.app into the Terminal, and push enter. Then enter cd Contents/MacOS. Next enter unsign MyApp MyApp. Now your app no longer has a signature. When users try to open it, they will get an "Unidentified Developer" message. Therefore tell them to right-click on it and select "Open" to be able to open it.

OTHER TIPS

An application in the form of a .app file is actually a folder containing lots of different files and folders that make up the resources of the application. To keep them all nice and tidy for Mac OS X, you can bundle them all together in a Disk Image .dmg file which can more easily be manipulated by non-Mac systems without getting the details messed up when brought back to the Mac.

Some quick directions copied from a reference listed later:

  • Make a folder with the files your DMG will contain.
  • Open Disk Utility (It's in /Applications/Utilities/)
  • Go to File > New > New Image from Folder (Cmd + Shift + N)
  • Choose the folder containing you files
  • Make sure "Compressed" is checked, then set where you want to save the created DMG

You can create the DMG file out of the .app file directly since the .app file is already a directory.

More detailed info about alternatives and command line directions are at https://stackoverflow.com/questions/367751/creating-a-dmg as well as http://blog.nngafook.com/2012/07/app-to-dmg/

Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top