leamas

leamas

Newbie: macos: pkgbuild: incompatible version

Dear forum,

New on macos. Need to create a .pkg file on the command line. The tooling seems to be pkgbuild(1) and productbuild(1). My problem is that while I can create .pkg files both using pkgbuild and productbuild and also install them any attempt to start the application fails with a You can’t use this version of the application “OpenCPN” with this version of MacOS. You have MacOS 10.15.7, the application requires MacOS 12.0 or later.

The message is bogus, application is built with 10.15 compatibility level and works fine if started from the command line.

I have tried adding the LSMinimunSystemVersion key to Info.plist before running pkgbuild. The key is available in the installed package, but no change.

Have also tried to add the allowed-os-versions to a distribution file and feed it into productbuild. Same result, it requires 12.0 and refuses to start from GUI.

Any hints out there?

Most Liked

leamas

leamas

So, answering myself.

On Xcode 14.2.0, perhaps somewhat earlier, pkgbuild has an option –min-os-version which does the job.

Otherwise, my theory is that pkgbuild looks into the bundled code including dependencies and uses the lowest link level available in all of them, which in my case is 12. And there is just no way around this without the option available in 14.2.0.

Popular Mac Os topics Top

First poster: bot
Hackers jailbreak Apple’s T2 security chip powered by bridgeOS - Report Cyber Crime. The Apple T2 security chip has finally been jailbro...
New
First poster: bot
MacOS Nix Setup (an alternative to Homebrew). I recently got a new Macbook, and began setting up the Nix package manager to install my d...
New
AstonJ
Apparently Apple is working on new Mac Pros that will be half the size of current Mac Pros… As part of the transition to Apple Silicon,...
New
New
First poster: kokolegorille
hello (also known as helloSystem ) is a desktop system for creators with focus on simplicity, elegance, and usability. Its design follows...
New
AstonJ
Intel clearly not happy that Apple are now creating their own silicon :081:
New
AstonJ
New M1X chip? 10AM PDT / 6PM UK https://twitter.com/gregjoz/status/1447956519132151810 Feed: I hope we’ll also see an i...
New
devovipul
I have JAR application ready. i have apple account also. Please give me steps to signed app upload i try But getting error as below : A...
New
leamas
Dear forum, New on macos. Need to create a .pkg file on the command line. The tooling seems to be pkgbuild(1) and productbuild(1). My pr...
New
AstonJ
I caught bits of it, so gonna catch up now - what did you think?
New

Other popular topics Top

Devtalk
Reading something? Working on something? Planning something? Changing jobs even!? If you’re up for sharing, please let us know what you’...
1017 16952 374
New
PragmaticBookshelf
A PragProg Hero’s Journey with Brian P. Hogan @bphogan Have you ever worried that your only legacy will be in the form of legacy...
New
brentjanderson
Bought the Moonlander mechanical keyboard. Cherry Brown MX switches. Arms and wrists have been hurting enough that it’s time I did someth...
New
AstonJ
Do the test and post your score :nerd_face: :keyboard: If possible, please add info such as the keyboard you’re using, the layout (Qw...
New
Margaret
Hello content creators! Happy new year. What tech topics do you think will be the focus of 2021? My vote for one topic is ethics in tech...
New
dimitarvp
Small essay with thoughts on macOS vs. Linux: I know @Exadra37 is just waiting around the corner to scream at me “I TOLD YOU SO!!!” but I...
New
Exadra37
Oh just spent so much time on this to discover now that RancherOS is in end of life but Rancher is refusing to mark the Github repo as su...
New
PragmaticBookshelf
A Hero’s Journey with Chris Pine @chrispine Chris Pine, author of Learn to Program, Third Edition, discusses his journey to beco...
New
New
PragmaticBookshelf
A Ruby-Centric Chat with Noel Rappin @noelrappin Once you start noodling around with Ruby you quickly figure out, as Noel Rappi...
New