I have a .net core 3.1 app that runs fine on mac (albeit with a console window popping up before the GUI, which I'd like to get rid of if possible, but that's another issue), but when I put it in an app bundle with LSMinimumSystemVersion 10.12 and try to run it, it says "You can't use this version of the application with this version of macos" and says I need Mac OS 11.6 or later. That's clearly not the case since I can run the executable directly, and that's not what I have in my Info.plist file. I've tried the touch command on the app bundle to update it, and tried recreating it, but no matter what it tells me my version of mac can't run it. I tried building a new .net core 3.1 console application into an app bundle to see if it would let me run it, but it does the same thing. I don't know where it's getting the idea from that the app requires Mac 11.6. I can't make it respect my minimum version listed in the Info.plist. This is my plist:
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleGetInfoString</key>
<string>MyApp</string>
<key>CFBundleExecutable</key>
<string>MyApp</string>
<key>CFBundleIdentifier</key>
<string>com.test.www</string>
<key>CFBundleIconFile</key>
<string>icon.icns</string>
<key>CFBundleShortVersionString</key>
<string>0.01</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>IFMajorVersion</key>
<integer>0</integer>
<key>IFMinorVersion</key>
<integer>1</key>
<key>LSMinimumSystemVersion</key>
<string>10.12.0</string>
</dict>
</plist>
Any ideas? Thanks.
Edit: I looked in console at the errors it was generating when trying to launch it and these are the ones that seem caused by the app trying to launch:
Finder (LaunchServices)
LAUNCH: Returning kLSIncompatibleSystemVersionErr because system version is too old, com.test.www node=<private> status=-10825
Isd (LaunchServices)
Failed to register <private> trusted: NSOSStatusErrorDomain/-67062
CoreServicesUIAgent
handle LS launch error: {\n Action = oapp;\n AppMinimumSystemVersion = "11.6";\n AppPath = "/Users/jeremy/Desktop/MyApp.app";\n ErrorCode = "-10825";\n}
/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder (/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices)
Launch:Returning kLSIncompatibleSystemVersionErr because system version is too old, com.test.www node=<private> status=-10825
And possibly this one
tccd
internal_TCCCreateDesignatedRequirementIdentityFromMessage: Refusing TCCCreateDesignatedRequirementIdentityFromAuditToken: unable to get SDK version of binary
I can't make much of these, they just say my OS is too old to run it. It runs fine if I open the app bundle and open the exe directly.