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

AstonJ
Apple’s next OS for the Mac - what do you think? On first look, it looks pretty good! I like a lot of the new privacy features!
New
PragmaticBookshelf
A Swift Kickstart is the perfect book for the experienced developer who wants to get serious about learning the Swift programming languag...
New
CommunityNews
macOS Monterey Preview. macOS Monterey. Connect like never before. Exciting FaceTime updates. An all-new Safari. Powerful new ways to wo...
New
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
AstonJ
I almost did last night, but then had a change of heart - might just see what others think or wait for the initial set of bug-fixes first...
New
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
BadPistol97
I am trying to draw NSPanels on texts of other apps using AXObserverAddNotification with the attribute of kAXValueChangedNotification on ...
New
AstonJ
Here are some easy options on how to run Stable Diffusion on a Mac with Apple Silicon: DiffusionBee The Ultimate Suite of Creative AI ...
New

Other popular topics Top

axelson
I’ve been really enjoying obsidian.md: It is very snappy (even though it is based on Electron). I love that it is all local by defaul...
New
Exadra37
Please tell us what is your preferred monitor setup for programming(not gaming) and why you have chosen it. Does your monitor have eye p...
New
AstonJ
Curious to know which languages and frameworks you’re all thinking about learning next :upside_down_face: Perhaps if there’s enough peop...
New
New
AstonJ
Inspired by this post from @Carter, which languages, frameworks or other tech or tools do you think is killing it right now? :upside_down...
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
PragmaticBookshelf
A Hero’s Journey with Chris Pine @chrispine Chris Pine, author of Learn to Program, Third Edition, discusses his journey to beco...
New
Margaret
Hello everyone! This thread is to tell you about what authors from The Pragmatic Bookshelf are writing on Medium.
1122 25119 741
New
AstonJ
Biggest jackpot ever apparently! :upside_down_face: I don’t (usually) gamble/play the lottery, but working on a program to predict the...
New
PragmaticBookshelf
Author Spotlight Erin Dees @undees Welcome to our new author spotlight! We had the pleasure of chatting with Erin Dees, co-author of ...
New