1

I'm trying to create a Mac app bundle,

So I did this,

mkdir -p android.app/Contents/MacOS/
cp /path/to/myscript.sh android.app/Contents/MacOS/android
chmod +x android.app/Contents/MacOS/android
SetFile -t APPL android.app/Contents/MacOS/android

But when I do open android.app, it prompts me The application cannot be opened because its executable is missing.

That's totally weird. Anyone know how to fix that?

Running Mac OS 10.11.4

5
  • Mac app bundles are mysterious and weird. I'd love to know the answer to this one, even though you might be better off asking/searching on the Apple stackexchange.
    – Wildcard
    Commented Apr 27, 2016 at 3:35
  • 1
    You are missing the Info.plist developer.apple.com/library/mac/documentation/CoreFoundation/…
    – mmmmmm
    Commented Apr 27, 2016 at 8:21
  • @Mark works when I added Info.list
    – daisy
    Commented Apr 27, 2016 at 8:32
  • Doing something to a system you don't know anything about, than discovering it doesn't work the way you expected, doesn't make it a weird system.
    – Bachsau
    Commented Dec 11, 2018 at 0:53
  • @Bachsau especially when well documented
    – mmmmmm
    Commented Dec 11, 2018 at 13:19

1 Answer 1

2

App bundles must contain certain files as documented in Apple's Bundle Programming Guide

The required files are

  • Info.plist file - The information property list file is a structured file that contains configuration information for the application. The system relies on the presence of this file to identify relevant information about your application and any related files.
  • Executable

So you need an Info.plist

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .