Giter VIP home page Giter VIP logo

Comments (5)

paulocoutinhox avatar paulocoutinhox commented on May 24, 2024

Also, CMake guys sad that the flag CMAKE_XCODE_EFFECTIVE_PLATFORMS don't exists.

https://github.com/leetal/ios-cmake/blob/master/ios.toolchain.cmake#L487

The thread is here:
https://gitlab.kitware.com/cmake/cmake/-/issues/24650#note_1347059

from ios-cmake.

pgbo avatar pgbo commented on May 24, 2024

If you use -G xcode in the generate cmake config command, the source code internally will be compiled using -target x86_64-apple-Macos10.15. If -G xcode is not used, will use -target x86_64-apple-ios13.1-macabi. Since the CMakeLists.txt of my project is configured with many Xcode-related properties, I need to compile the source code using the project generated by XCode.

After generating the XCode project, at the build stage I used the command xcodebuild-configuration Release-parallelizeTargets -jobs 2 ARCHS=x86_64 -sdk macosx SUPPORTS_MAC_CATALYST=YES -project myproject.xcodeproj -scheme myproject -destination 'platform=macOS,arch=x86_64,variant=Mac Catalyst' to generate the maccatalyst framework, This command uses -target x86_64-apple-ios13.1-macabi internally. You get the same effect as not use -G xcode.

from ios-cmake.

jhakulin avatar jhakulin commented on May 24, 2024

Having the same issue here, would like to use Xcode generator e.g. for module map generation, however for Maccatalyst target hitting this issue. Any ideas why/how to get target selected for maccatalyst?

from ios-cmake.

dmytrobogovych avatar dmytrobogovych commented on May 24, 2024

I think I have the same issue. I generate framework .xcodeproject with CMake and use it in big app when debugging.
It is the only way to debug for me.
For now I can add Mac(Catalyst) platform manually.
Building without '-G Xcode' works good, thanks for your work !

from ios-cmake.

borrrden avatar borrrden commented on May 24, 2024

This is pretty important because frameworks built using standard CMake Makefiles will not pass app store review for lack of certain properties like MinimumSystemVersion, etc. This can be worked around by using "custom Info.plist" but the Xcode target will do all of this automatically.

from ios-cmake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.