question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[service] macOS deployment target of uploaded binaries

See original GitHub issue

Supported platforms page says:

Compilers: Apple-clang versions 11.0.3, 12.0.5, 13.0.0

if I understand correctly, that would be basically Xcode 11.3.1, Xcode 12.5 and Xcode 13.0.

I run macOS 10.15 and use Xcode 12.4 there. Using default detected profile I was able to install binaries from ConanCenter (--build=never). But when I built my project, I noticed linker warnings like “libminizip.dylib was built for newer version (11.3) than being linked (11.1)”.

I know that if deployment target flag isn’t provided to apple-clang explicitly, then it simply sets it to the SDK version used. In this case, Xcode 12.5 has macOS 11.3 SDK, that’s why that warning appears. Besides, checking downloaded binaries with vtool -show-build also showed that their deployment target is 11.3, which of course doesn’t make sense for my environment.

I strongly suggest to set os.version in CI profiles to a value that is viable for end users:

  • Apple-clang 11 (Xcode 11.x): Xcode 11.0-11.3.1 can be used at least on macOS 10.14 => set os.version=10.14
  • Apple-clang 12 (Xcode 12.x): Xcode 12.0-12.4 can be used at least on macOS 10.15 => set os.version=10.15
  • Apple-clang 13 (Xcode 13.x): Xcode 13.0-13.2.1 can be used at least on macOS 11 => set os.version=11.0
  • Apple-clang 14 (Xcode 14.x): Xcode 14.0-14.?? can be used at least on macOS 12 => set os.version=12.0

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
uilianriescommented, Oct 25, 2022

@AndreyMlashkin Conan v2 also does not add os.version by default. And, CCI only follows the default profile values from Conan client. Thus, to add os.version to packages, first, it should be added to Conan client by default, so it’s a discussion for Conan v2 (Conan client repository).

0reactions
kambala-decapitatorcommented, Nov 3, 2022

Well, the goal of this issue is to make cci binaries usable for a wider range of users and to match expected behavior (the latter is probably even more important). Since os.version would break package hashes, the same can be achieved with these env and/or tools.* adjustments for all new binaries.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Preparing your app for distribution - Apple Developer
In the project editor, choose the iOS target, and click the Signing & Capabilities pane. Under macOS, unselect the Use iOS Bundle Identifier...
Read more >
Wrong platform tag for wheel build on macOS 11 with ... - GitHub
Using a universal2 build of python 3.9.1rc1 on macOS with deployment target 10.9 I get a wheel with platform tag "macosx_11_0_universal2" ...
Read more >
Xcode: OSX_DEPLOYMENT_TARGET should depend on ...
When building a CMake project for multiple architectures (x86_64 and arm64) on Mac it should be possible to set the minimum macOS version ......
Read more >
Everything You Need to Know About Deployment Targets
You need to understand what a deployment target is if you plan to develop for iOS (and iPadOS), tvOS, macOS, or watchOS. In...
Read more >
Build and release a macOS app - Flutter documentation
Select the services your app uses, then click Continue. On the next page, ... Deployment Target: The minimum macOS version that your app...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found