I have created a Mac desktop app (NOT using XCode). After installing the dmg file, the app was installed in the /Applications/Test-1.0.app folder.
When i double clicked the Test-1.0 icon in the Applications folder, the app is not launched.
But I CAN launch the Test-1.0 from the command line:
./Applications/Test-1.0.app/Contents/MacOS/Test-1.0
So the app can be launched directly from the executable but not from the shortcut icon.
My /Applications/Test-1.0.app/Contents/Info.plist looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "...">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>Test-1.0</string>
<key>CFBundleExecutable</key>
<string>Test-1.0</string>
<key>CFBundleIconFile</key>
<string>test.icns</string>
<key>CFBundleIdentifier</key>
<string>com.company.test</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Test-1.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleVersion</key>
<string>201215162903</string>
<key>LSMinimumSystemVersion</key>
<string>10.14.6</string>
<key>NSAppleScriptEnabled</key>
<false/>
<key>NSHighResolutionCapable</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>Company © 2020. All rights reserved.</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
I also unregistered the app from the Launch Services database (lsregister). I tried it again but no luck.
I am using macOS 10.14.6. Has anyone other ideas what might cause this problem? Thanks.
When i double clicked the Test-1.0 icon in the Applications folder, the app is not launched.
But I CAN launch the Test-1.0 from the command line:
./Applications/Test-1.0.app/Contents/MacOS/Test-1.0
So the app can be launched directly from the executable but not from the shortcut icon.
My /Applications/Test-1.0.app/Contents/Info.plist looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "...">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>Test-1.0</string>
<key>CFBundleExecutable</key>
<string>Test-1.0</string>
<key>CFBundleIconFile</key>
<string>test.icns</string>
<key>CFBundleIdentifier</key>
<string>com.company.test</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Test-1.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleVersion</key>
<string>201215162903</string>
<key>LSMinimumSystemVersion</key>
<string>10.14.6</string>
<key>NSAppleScriptEnabled</key>
<false/>
<key>NSHighResolutionCapable</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>Company © 2020. All rights reserved.</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
I also unregistered the app from the Launch Services database (lsregister). I tried it again but no luck.
I am using macOS 10.14.6. Has anyone other ideas what might cause this problem? Thanks.