Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sarsonj
Copy link
Contributor

@sarsonj sarsonj commented Apr 19, 2023

Pull Request Readiness Checklist

  • [X ] I agree to contribute to the project under Apache 2 License.
  • [X ] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • There is a reference to the original bug report and related work

This pull request fixes bug #23507.

sdk_path = check_output(["xcodebuild", "-version", "-sdk", "macosx", "Path"]).decode('utf-8').rstrip()
c_flags = [
"-target %s-apple-ios13.0-macabi" % target[0], # e.g. x86_64-apple-ios13.2-macabi # -mmacosx-version-min=10.15
"-target %s-apple-ios14.0-macabi" % target[0], # e.g. x86_64-apple-ios13.2-macabi # -mmacosx-version-min=10.15
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be conditional, depending on XCode and system version, because hardcoding breaks older configuration.

Copy link
Contributor Author

@sarsonj sarsonj Apr 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, I tried to detect somehow min iOS version for catalyst for installed Xcode, but without success. However, iOS 14 is 3 years old, so that it means that AFAIK you will have to use older than Xcode 11 to break compilation with this change (current Xcode is 14.3). I am not sure if it is even possible to upload build that is created in Xcode <12 to App Store.

From the other way, the original implementation fails on current Xcode 14.

I can make it backward compatible, however it would be better to make it forward compatible. Any idea? Next year, Apple probably drop catalyst iOS 14 compatibility (or not - who knows).

@devanshu2
Copy link

When can we expect code merge?

@asmorkalov asmorkalov added this to the 4.8.0 milestone May 29, 2023
@asmorkalov asmorkalov merged commit f107654 into opencv:4.x May 29, 2023
@asmorkalov asmorkalov mentioned this pull request May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants