I created my own app bundle for OSX Yosemite 10.10.5. It is comprised a top level directory called Grades.app
. Within this directory is the Contents
directory. within Contents
is Info.plist
file and MacOS
directory with the executable file Grades
inside of it. This is my Info.plist file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key> <string>Grades</string>
<key>Label</key> <string>com.grades.app</string>
<key>CFBundleIdentifier</key> <string>com.grissino.Grades</string>
<key>CFBundleVersion</key> <string>0.1</string>
<key>CFBundleShortVersionString</key> <string>0.1</string>
<key>CFBundleDevelopmentRegion</key> <string>en</string>
<key>CFBundlePackageType</key> <string>APPL</string>
<key>CFBundleInfoDictionaryVersion</key> <string>6.0</string>
<key>CFBundleName</key> <string>Grades</string>
<key>CFBundleDisplayName</key> <string>Grades</string>
<key>RunAtLoad</key> <true/>
</dict>
</plist>
When I double click the Grades.app file to run the app, it doesn't open. In the console program i get an error from the system launch deamon (com.apple.xpc.launchd) that says Service exited with abnormal code 255
. I cannot figure out what is wrong.
This is my executable file, it is a bash shell command file (.sh):
#! /bin/bash
# Grades
echo “Grades”
cd /Users/(my name)
cd Documents
cd School
cd class
chmod +x ./dist/functions
./dist/functions
The functions file runs when called from terminal with the command ./functions
when i am in that directory.