Comments (5)
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.
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.
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.
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.
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)
- [bug] Should set ENABLE_STRICT_TRY_COMPILE TRUE by default HOT 5
- [bug] The platform OS64COMBINED generate Xcode project only for iOS HOT 1
- Feature: Add Support for Universal macOS builds (Apple Silicon + Intel) HOT 2
- [bug] build fail for SIMULATOR64 with xcode 14 HOT 2
- [question] Issue with APPLE_TARGET_TRIPLE (aarch64-apple-ios/arm64-apple-ios) HOT 5
- how to omit -G Xcode to use Makefile or use -G Ninjau HOT 2
- Honor CMAKE_FIND_FRAMEWORK if passed via command line
- [bug] Support for SIMULATORARM64_TVOS only HOT 2
- [bug] Support for OS only for armv7 HOT 2
- Add support for visionOS HOT 11
- [bug] Intermediate binaries compiled during cmake build are not signed when using ios.toolchain.cmake HOT 3
- command not found: cmake HOT 2
- how to show the duplicate symbols HOT 1
- Copy-if-different error while trying to build brainflow libraries using OS64COMBINED HOT 1
- ARM64 support for WATCHOS simulator is missing. HOT 2
- [bug] CMAKE_OSX_DEPLOYMENT_TARGET not CACHE HOT 2
- what's the different about release version and debug version? HOT 1
- the compiled framework contains only arm64
- [bug] building for iOS, but linking in object file built for iOS Simulator HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-cmake.