echo "Package $TARGET_BUILD_DIR/XBMC"
cp -f "$TARGET_BUILD_DIR/XBMC" "$TARGET_BINARY"
-cp -f "$SRCROOT/media/xbmc.icns" "$TARGET_CONTENTS/Resources/"
+
+echo "Creating icon"
+iconutil -c icns --output "$TARGET_CONTENTS/Resources/xbmc.icns" "$SRCROOT/tools/darwin/packaging/media/osx/icon.iconset"
+
cp -f "$SRCROOT/xbmc/osx/Info.plist" "$TARGET_CONTENTS/"
# Copy all of XBMC's dylib dependencies and rename their locations to inside the Framework