Bug 363637

Summary: OSX 10.11 wrongly claims Krita is incompatible
Product: [Applications] krita Reporter: wetdesertrocky
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla, morten.sorvig
Priority: NOR    
Version First Reported In: 3.0 Release Candidate   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description wetdesertrocky 2016-05-28 18:07:39 UTC
When trying to open Krita on OSX 10.10 it shows this dialog:

You can’t use this version of the application “Krita.app” with this version of OS X.
You have OS X 10.10.5. The application requires OS X 10.11 or later.

As far as I found, most programs can compile just fine using OSX 10.6 as a target, which will allow most mac computers to run the program. Unless there is a specific problem that cannot be otherwise resolved, I'd suggest setting your compile target for OSX 10.6.

Reproducible: Always

Steps to Reproduce:
1. Double click icon
Comment 1 Halla Rempt 2016-05-28 18:18:05 UTC
Weird, because I test the app bundle I make on OSX 10.9 and there it runs just fine. I don't have 10.10 to test with; I build on 10.11. I don't support anything below 10.9, of course, since I don't have those versions myself.

But you sound as if you know better than me how to build bundles for different versions for OSX: please help me out here by taking over the chore of making the OSX release.
Comment 2 Halla Rempt 2016-05-28 18:19:15 UTC
By the way: http://doc.qt.io/qt-5/supported-platforms.html shows that whatever, we can only support 10.8 since that's the minimum for Qt.
Comment 3 morten.sorvig 2016-06-02 11:02:32 UTC
For me the version check is enforced only when launching Krita from Finder (I'm also on 10.10). Starting it from the command line ("./krita.app/Contents/MacOS/krita") works fine.

"open krita.app" fails with
LSOpenURLsWithRole() failed with error -10825 for the file /Applications/krita.app.

Error 10825 seems to be kLSIncompatibleSystemVersionErr.
Comment 4 Halla Rempt 2016-06-14 10:53:39 UTC
I wonder whether there's something that can be set in the info.plist to avoid or disable or bamboozle that check.
Comment 5 wetdesertrocky 2016-07-12 18:49:15 UTC
This is something in the build settings of XCode, if my internet (or the server's internet?) was working properly, I could download the repo and point out which build option needs to be changed. It is called Minimum OSX Version or something like that. To verify it worked, do

    $ otool -l krita

and look for:
Load command 9
      cmd LC_VERSION_MIN_MACOSX
  cmdsize 16
  version 10.11

Once it is fixed it should be something similar to:
Load command 9
      cmd LC_VERSION_MIN_MACOSX
  cmdsize 16
  version 10.8


Sorry for the (super) late reply, I didn't get the email notification. Whoops!
Comment 6 Halla Rempt 2016-07-13 07:29:38 UTC
Hm, I'm not using xcode to build, but this sounds like I could just use otool itself to set the minimum version. Thanks for the hit!
Comment 8 Halla Rempt 2016-07-19 09:49:20 UTC
Could you please check http://files.kde.org/krita/3/osx/devbuilds/krita-3.0.1-alpha1.dmg ? That says 

Load command 9
      cmd LC_VERSION_MIN_MACOSX
  cmdsize 16
  version 10.9
      sdk 10.9

Which should be correct, since that's what we target.
Comment 9 Halla Rempt 2016-07-19 10:03:40 UTC
Okay, this seems to be fixed indeed, I got a positive test report back.
Comment 10 wetdesertrocky 2016-07-19 17:06:02 UTC
Indeed. I just checked it and it works fine, and as far as I know should continue working fine for all intended systems.