# \#gen:xcode

**URL:** https://discourse.cmake.org/tag/gen-xcode/10.md

[Latest](https://discourse.cmake.org/latest.md) · [Categories](https://discourse.cmake.org/categories.md) · [Tags](https://discourse.cmake.org/tags.md)

---

## [Feature request: Xcode 27 new .xcproj format](https://discourse.cmake.org/t/feature-request-xcode-27-new-xcproj-format/15850)

<div class="topic-metadata">

**Author:** [@ringoz](https://discourse.cmake.org/u/ringoz)\
**Replies:** 1\
**Last updated:** [September 24, 2026, 7:58am UTC](https://discourse.cmake.org/t/feature-request-xcode-27-new-xcproj-format/15850 "2026-09-24T07:58:45Z")

</div>

There is a new JSON file format .xcproj compatible with Xcode 27 and later. Let’s support it.

---

## [set xcode "Library Search Paths" form cmake?](https://discourse.cmake.org/t/set-xcode-library-search-paths-form-cmake/12846)

<div class="topic-metadata">

**Author:** [@shokarta](https://discourse.cmake.org/u/shokarta)\
**Replies:** 4\
**Last updated:** [February 20, 2026, 3:34am UTC](https://discourse.cmake.org/t/set-xcode-library-search-paths-form-cmake/12846 "2026-02-20T03:34:42Z")

</div>

Hello guys, after I configure the project from QT, in xcode I need to manualy go to project BUILD SETTINGS, locate LIBRARY SEARCH PATHS and set some stuff manualy… can this be automated from cmake? I need to set follo…

---

## [Question about Xcode project generator for Frameworks, Libraries and Embedded Content](https://discourse.cmake.org/t/question-about-xcode-project-generator-for-frameworks-libraries-and-embedded-content/15100)

<div class="topic-metadata">

**Author:** [@Seto](https://discourse.cmake.org/u/Seto)\
**Replies:** 1\
**Last updated:** [September 30, 2025, 6:20pm UTC](https://discourse.cmake.org/t/question-about-xcode-project-generator-for-frameworks-libraries-and-embedded-content/15100 "2025-09-30T18:20:41Z")

</div>

Hi. For static libraries, I found that the .a files are added as Other Linker Flags instead of adding them to Frameworks, Libraries and Embedded Content in General tab of Xcode projects if I use target\_link\_libraries(). …

---

## [How to determine build type?](https://discourse.cmake.org/t/how-to-determine-build-type/15200)

<div class="topic-metadata">

**Author:** [@alexandr](https://discourse.cmake.org/u/alexandr)\
**Replies:** 1\
**Last updated:** [September 28, 2025, 12:54pm UTC](https://discourse.cmake.org/t/how-to-determine-build-type/15200 "2025-09-28T12:54:15Z")

</div>

Hello all! My CMake project is for iOS and using XCode generator. For now there are troubles with getting build type. The command that calling CMake is: cmake --build /Project/build/iOS\_Simulator --target ALL\_BUILD --c…

---

## [File Copy Error, claiming files do not exist or are unmodifiable](https://discourse.cmake.org/t/file-copy-error-claiming-files-do-not-exist-or-are-unmodifiable/15193)

<div class="topic-metadata">

**Author:** [@SamCoutteauHybrid](https://discourse.cmake.org/u/SamCoutteauHybrid)\
**Replies:** 0\
**Last updated:** [September 24, 2025, 9:59am UTC](https://discourse.cmake.org/t/file-copy-error-claiming-files-do-not-exist-or-are-unmodifiable/15193 "2025-09-24T09:59:07Z")

</div>

Whilst running project in CI, I get weird errors related to file copy on specific platform generator combinations. Error cases 1 (only sometimes) Ubuntu CMAKE\_C\_COMPILER=/usr/bin/gcc CMAKE\_CXX\_COMPILER=/usr/bin/g++ CMAK…

---

## [Is there's a way to generate a xcode project which will use ninja to compile?](https://discourse.cmake.org/t/is-theres-a-way-to-generate-a-xcode-project-which-will-use-ninja-to-compile/15002)

<div class="topic-metadata">

**Author:** [@pbskycrystal](https://discourse.cmake.org/u/pbskycrystal)\
**Replies:** 1\
**Last updated:** [August 14, 2025, 5:48pm UTC](https://discourse.cmake.org/t/is-theres-a-way-to-generate-a-xcode-project-which-will-use-ninja-to-compile/15002 "2025-08-14T17:48:14Z")

</div>

I’m trying to switch our generator from Xcode to Ninja Multi-config, which makes compile much faster. But some of our teammates said they prefer using Xcode for develop/debug. Is there’s a way to generate a xcode projec…

---

## ["Show Live Issues" problem in Xcode with CMake generator and possible improvement](https://discourse.cmake.org/t/show-live-issues-problem-in-xcode-with-cmake-generator-and-possible-improvement/14176)

<div class="topic-metadata">

**Author:** [@Chinouo](https://discourse.cmake.org/u/Chinouo)\
**Replies:** 1\
**Last updated:** [July 20, 2025, 2:47am UTC](https://discourse.cmake.org/t/show-live-issues-problem-in-xcode-with-cmake-generator-and-possible-improvement/14176 "2025-07-20T02:47:03Z")

</div>

By default, CMake generates a .xcodeproj file, Xcode can index the code properly, but the Show Live Issues feature doesn’t work with this file. Code issues are only shown after building, However, if I create a new Xcode…

---

## [Using Intentdefinition Compiler using cmake for code generation](https://discourse.cmake.org/t/using-intentdefinition-compiler-using-cmake-for-code-generation/10229)

<div class="topic-metadata">

**Author:** [@Vipul\_Gupta](https://discourse.cmake.org/u/Vipul_Gupta)\
**Replies:** 5\
**Last updated:** [July 19, 2025, 2:06pm UTC](https://discourse.cmake.org/t/using-intentdefinition-compiler-using-cmake-for-code-generation/10229 "2025-07-19T14:06:00Z")

</div>

In Xcode, when we create an intent definition file, a corresponding swift file gets generated for the intent defined in the intent definition file. This happens with the help of IntentDefinition Compiler , which can be s…

---

## [Problems with fortran an Xcode generator](https://discourse.cmake.org/t/problems-with-fortran-an-xcode-generator/11112)

<div class="topic-metadata">

**Author:** [@Fabian188](https://discourse.cmake.org/u/Fabian188)\
**Replies:** 2\
**Last updated:** [July 17, 2025, 4:06pm UTC](https://discourse.cmake.org/t/problems-with-fortran-an-xcode-generator/11112 "2025-07-17T16:06:28Z")

</div>

I don’t know if this a bug, principally not possible or if I’m doing something wrong. I have a C,C++,Fortran cmake project which builds nicely with Apple clang and gfortran from brew on macOS. Usually I use Eclipse wit…

---

## [cmake.check\_cache deleted during generation when using cmake\_file\_api (Xcode)](https://discourse.cmake.org/t/cmake-check-cache-deleted-during-generation-when-using-cmake-file-api-xcode/14228)

<div class="topic-metadata">

**Author:** [@zrajnai-shapr3d](https://discourse.cmake.org/u/zrajnai-shapr3d)\
**Replies:** 4\
**Last updated:** [June 13, 2025, 3:10pm UTC](https://discourse.cmake.org/t/cmake-check-cache-deleted-during-generation-when-using-cmake-file-api-xcode/14228 "2025-06-13T15:10:45Z")

</div>

We have recently added functionality to our build system that involves a call to cmake\_file\_api(QUERY API\_VERSION 1 CODEMODEL 2). Since adding this call we are seeing the following in the build output when triggering a …

---

## [Generated Xcode project APP packaging problem in XCode 16.3](https://discourse.cmake.org/t/generated-xcode-project-app-packaging-problem-in-xcode-16-3/14149)

<div class="topic-metadata">

**Author:** [@SFENCE](https://discourse.cmake.org/u/SFENCE)\
**Replies:** 0\
**Last updated:** [May 24, 2025, 2:48pm UTC](https://discourse.cmake.org/t/generated-xcode-project-app-packaging-problem-in-xcode-16-3/14149 "2025-05-24T14:48:19Z")

</div>

Cmake generated Xcode project produces macos app as appname.app/Contexts/APPFILES in XCode 16.2 and lower. Starts with XCode 16.3, same project produces macos app as appname.app/APPFILES. Looks like iOS app format. Wha…

---

## [How to exclude Mac or Apple Vision from destinations of an iOS build?](https://discourse.cmake.org/t/how-to-exclude-mac-or-apple-vision-from-destinations-of-an-ios-build/13978)

<div class="topic-metadata">

**Author:** [@paul.masristone](https://discourse.cmake.org/u/paul.masristone)\
**Replies:** 3\
**Last updated:** [May 20, 2025, 9:32am UTC](https://discourse.cmake.org/t/how-to-exclude-mac-or-apple-vision-from-destinations-of-an-ios-build/13978 "2025-05-20T09:32:09Z")

</div>

In set\_target\_properties I can choose between iPhone and iPad as destinations for my iOS app using XCODE\_ATTRIBUTE\_TARGETED\_DEVICE\_FAMILY. However Xcode also shows destinations Mac (Designed for iPad) and Apple Vision …

---

## [Xcode Framework](https://discourse.cmake.org/t/xcode-framework/13912)

<div class="topic-metadata">

**Author:** [@OctoBHVR](https://discourse.cmake.org/u/OctoBHVR)\
**Replies:** 0\
**Last updated:** [April 10, 2025, 6:39pm UTC](https://discourse.cmake.org/t/xcode-framework/13912 "2025-04-10T18:39:38Z")

</div>

Would it be possible to add support for adding references to frameworks in the generated Xcode project? In the “General” → “Framework, Libraries, and Embedded content”. Especially I would like to be able to create a weak…

---

## [Fetch Content EXCLUDE\_FROM\_ALL still adds targets to Xcode IDE](https://discourse.cmake.org/t/fetch-content-exclude-from-all-still-adds-targets-to-xcode-ide/13841)

<div class="topic-metadata">

**Author:** [@K20shores](https://discourse.cmake.org/u/K20shores)\
**Replies:** 4\
**Last updated:** [March 28, 2025, 11:23pm UTC](https://discourse.cmake.org/t/fetch-content-exclude-from-all-still-adds-targets-to-xcode-ide/13841 "2025-03-28T23:23:06Z")

</div>

Below is a minimal cmake file that includes eigen with fetch content. cmake\_minimum\_required(VERSION 3.28) project(EigenFetchExample LANGUAGES CXX) include(FetchContent) FetchContent\_Declare( eigen GIT\_REPOSIT…

---

## [Xcode does not showing live issues for CMake generated project](https://discourse.cmake.org/t/xcode-does-not-showing-live-issues-for-cmake-generated-project/13500)

<div class="topic-metadata">

**Author:** [@Denni1986](https://discourse.cmake.org/u/Denni1986)\
**Replies:** 0\
**Last updated:** [January 28, 2025, 8:32am UTC](https://discourse.cmake.org/t/xcode-does-not-showing-live-issues-for-cmake-generated-project/13500 "2025-01-28T08:32:08Z")

</div>

Hello everyone! I made a minimum CMake project for testing purpose: cmake\_minimum\_required(VERSION 3.31) project(Test-project) add\_executable(Test-project main.cpp) After generating an Xcode project I was able to buil…

---

## [Proper post\_build script in xcode for Firebase Crashlytics?](https://discourse.cmake.org/t/proper-post-build-script-in-xcode-for-firebase-crashlytics/13465)

<div class="topic-metadata">

**Author:** [@shokarta](https://discourse.cmake.org/u/shokarta)\
**Replies:** 0\
**Last updated:** [January 23, 2025, 11:55am UTC](https://discourse.cmake.org/t/proper-post-build-script-in-xcode-for-firebase-crashlytics/13465 "2025-01-23T11:55:09Z")

</div>

Hello Guys… I am trying to properly automatizate Get started with Firebase Crashlytics step 4C and 4D. when it set manualy, it shall look like this: so, what I tried is: set(DWARF\_DSYM\_FOLDER\_PATH "${DWARF\_DSYM\_F…

---

## [force SwiftSupport folder generate](https://discourse.cmake.org/t/force-swiftsupport-folder-generate/12860)

<div class="topic-metadata">

**Author:** [@shokarta](https://discourse.cmake.org/u/shokarta)\
**Replies:** 0\
**Last updated:** [October 29, 2024, 12:48pm UTC](https://discourse.cmake.org/t/force-swiftsupport-folder-generate/12860 "2024-10-29T12:48:00Z")

</div>

hello guys, since I included firebase to me Qt Creator project which also uses Swift language, I can build and deploy just find in Xcode (xproject generated by cmake). However when I try to publish the app to TestFlig…

---

## [Xcode problem with files which has vary configuration](https://discourse.cmake.org/t/xcode-problem-with-files-which-has-vary-configuration/11754)

<div class="topic-metadata">

**Author:** [@Gregor\_Smith](https://discourse.cmake.org/u/Gregor_Smith)\
**Replies:** 5\
**Last updated:** [September 24, 2024, 1:04pm UTC](https://discourse.cmake.org/t/xcode-problem-with-files-which-has-vary-configuration/11754 "2024-09-24T13:04:26Z")

</div>

Hi everyone Below I present a example source code that I hav borrow from other topic but it is a good example of my problem. I do not know if it is a cmake problem or what but I cannot belive that this simple approach …

---

## [How to use XCODE\_SCHEME\_ARGUMENTS?](https://discourse.cmake.org/t/how-to-use-xcode-scheme-arguments/2332)

<div class="topic-metadata">

**Author:** [@sfp](https://discourse.cmake.org/u/sfp)\
**Replies:** 5\
**Last updated:** [September 20, 2024, 11:24am UTC](https://discourse.cmake.org/t/how-to-use-xcode-scheme-arguments/2332 "2024-09-20T11:24:38Z")

</div>

How do I set this property to specify some default arguments for an executable when using the Xcode generator? I have something like this: add\_executable (test test.c ...) if (CMAKE\_GENERATOR MATCHES "Xcode") set\_p…

---

## [Xcode just ignore generated files?](https://discourse.cmake.org/t/xcode-just-ignore-generated-files/11325)

<div class="topic-metadata">

**Author:** [@davemilter](https://discourse.cmake.org/u/davemilter)\
**Replies:** 1\
**Last updated:** [July 29, 2024, 7:04pm UTC](https://discourse.cmake.org/t/xcode-just-ignore-generated-files/11325 "2024-07-29T19:04:54Z")

</div>

I have external project build by script and also this script generates header file. And this generated file is problem, when it changed (script produced modified file), then Xcode just ignore this change. If I change …

---

## [CMake 3.30 doesn't let me use $(ARCHS\_STANDARD) to set CMAKE\_OSX\_ARCHITECTURES](https://discourse.cmake.org/t/cmake-3-30-doesnt-let-me-use-archs-standard-to-set-cmake-osx-architectures/11209)

<div class="topic-metadata">

**Author:** [@Sidelobe](https://discourse.cmake.org/u/Sidelobe)\
**Replies:** 6\
**Last updated:** [July 11, 2024, 9:00am UTC](https://discourse.cmake.org/t/cmake-3-30-doesnt-let-me-use-archs-standard-to-set-cmake-osx-architectures/11209 "2024-07-11T09:00:22Z")

</div>

Cmake 3.30 seems to have broken my projects that build universal binaries (arm64;x86\_64) I use this to create universal binaries when building via Xcode: if(CMAKE\_GENERATOR STREQUAL "Xcode") set(CMAKE\_OSX\_ARCHITECTU…

---

## [Swift c++ interoperability ,cmake is failing to send macros to hpp (used in swift through module.map)](https://discourse.cmake.org/t/swift-c-interoperability-cmake-is-failing-to-send-macros-to-hpp-used-in-swift-through-module-map/10857)

<div class="topic-metadata">

**Author:** [@aman2022](https://discourse.cmake.org/u/aman2022)\
**Replies:** 0\
**Last updated:** [May 15, 2024, 7:45am UTC](https://discourse.cmake.org/t/swift-c-interoperability-cmake-is-failing-to-send-macros-to-hpp-used-in-swift-through-module-map/10857 "2024-05-15T07:45:30Z")

</div>

So we making a cross platform application, with c++ as the dominant language and swift used only where required to facilitate cross-platform support for Apple products, We are developing in a layered architecture , with …

---

## [Wrong apple platform or variant when linking xcframework in 3.28+](https://discourse.cmake.org/t/wrong-apple-platform-or-variant-when-linking-xcframework-in-3-28/10342)

<div class="topic-metadata">

**Author:** [@mjz48](https://discourse.cmake.org/u/mjz48)\
**Replies:** 3\
**Last updated:** [April 29, 2024, 11:19pm UTC](https://discourse.cmake.org/t/wrong-apple-platform-or-variant-when-linking-xcframework-in-3-28/10342 "2024-04-29T23:19:00Z")

</div>

Hi, I’m trying to use the new xcframework support for find\_library and target\_link\_libraries for apple. I’m trying to build for both ios and ios-simulator, but I’m running into this xcode error with my generated project: …

---

## [Get complete list of target's source files](https://discourse.cmake.org/t/get-complete-list-of-targets-source-files/10717)

<div class="topic-metadata">

**Author:** [@Kentzo](https://discourse.cmake.org/u/Kentzo)\
**Replies:** 1\
**Last updated:** [April 27, 2024, 3:47pm UTC](https://discourse.cmake.org/t/get-complete-list-of-targets-source-files/10717 "2024-04-27T15:47:33Z")

</div>

I’m using Qt’s CMake commands to define my targets. Under the hood, due to how Qt builds its source files, the generated project ends up with many dynamically added files. When the Xcode project is generated, these files…

---

## [How can I make the Xcode generator create a project with folders in alphabetical order?](https://discourse.cmake.org/t/how-can-i-make-the-xcode-generator-create-a-project-with-folders-in-alphabetical-order/10633)

<div class="topic-metadata">

**Author:** [@etjernlund](https://discourse.cmake.org/u/etjernlund)\
**Replies:** 2\
**Last updated:** [April 11, 2024, 6:21pm UTC](https://discourse.cmake.org/t/how-can-i-make-the-xcode-generator-create-a-project-with-folders-in-alphabetical-order/10633 "2024-04-11T18:21:36Z")

</div>

Is there a way to make the Xcode generator to create a project with the folders in alphabetical order? We have a very large project and it seems the folders end up in the order they are found when the generation is done. …

---

## [Embedding binaries within macOS bundle](https://discourse.cmake.org/t/embedding-binaries-within-macos-bundle/9989)

<div class="topic-metadata">

**Author:** [@j-boivie](https://discourse.cmake.org/u/j-boivie)\
**Replies:** 7\
**Last updated:** [February 21, 2024, 9:37am UTC](https://discourse.cmake.org/t/embedding-binaries-within-macos-bundle/9989 "2024-02-21T09:37:24Z")

</div>

Howdy folks, long time listener first time caller etc. I’m looking for information on how to embed an executable binary within a macOS app bundle when using CMake with Xcode. My project is set up as follows: Executable…

---

## [CMake Error: "...No CMAKE\_CXX\_COMPILER could be found..."](https://discourse.cmake.org/t/cmake-error-no-cmake-cxx-compiler-could-be-found/10016)

<div class="topic-metadata">

**Author:** [@Garrett](https://discourse.cmake.org/u/Garrett)\
**Replies:** 2\
**Last updated:** [February 11, 2024, 4:37pm UTC](https://discourse.cmake.org/t/cmake-error-no-cmake-cxx-compiler-could-be-found/10016 "2024-02-11T16:37:51Z")

</div>

Greetings! TLDR: error while trying to generate Xcode project from: FFTease3.0-MaxMSP/BUILDME.md at master · ericlyon/FFTease3.0-MaxMSP · GitHub First post, complete noob. Not a coder; just a determined musician try…

---

## [Xcode ‘C++ and Objective-C Interoperability’ build setting not getting set](https://discourse.cmake.org/t/xcode-c-and-objective-c-interoperability-build-setting-not-getting-set/9337)

<div class="topic-metadata">

**Author:** [@Vipul\_Gupta](https://discourse.cmake.org/u/Vipul_Gupta)\
**Replies:** 3\
**Last updated:** [November 8, 2023, 4:45pm UTC](https://discourse.cmake.org/t/xcode-c-and-objective-c-interoperability-build-setting-not-getting-set/9337 "2023-11-08T16:45:50Z")

</div>

I m trying to create an xcode project with cpp-swift interoperability(introduced in xcode15) using cmake xcode generator. I m able to invoke cpp code in swift and vice-versa but when opening the project in xcode IDE, the…

---

## [Setup Cpp-Swift Interoperability using CMake](https://discourse.cmake.org/t/setup-cpp-swift-interoperability-using-cmake/9272)

<div class="topic-metadata">

**Author:** [@Vipul\_Gupta](https://discourse.cmake.org/u/Vipul_Gupta)\
**Replies:** 0\
**Last updated:** [October 25, 2023, 8:40am UTC](https://discourse.cmake.org/t/setup-cpp-swift-interoperability-using-cmake/9272 "2023-10-25T08:40:06Z")

</div>

I have been using the Cpp-Swift Interoperability in Xcode15 for direct communication between Cpp and Swift5.9. It required a few Build settings changes for the Swift Compiler, creating clang modules(module map file) to a…

---

## [Experimenting with FetchContent - issue with Jansson](https://discourse.cmake.org/t/experimenting-with-fetchcontent-issue-with-jansson/9079)

<div class="topic-metadata">

**Author:** [@Andrew](https://discourse.cmake.org/u/Andrew)\
**Replies:** 6\
**Last updated:** [September 26, 2023, 4:30am UTC](https://discourse.cmake.org/t/experimenting-with-fetchcontent-issue-with-jansson/9079 "2023-09-26T04:30:19Z")

</div>

Starting to wrap my head around FetchContent, so tried some demo code using Jansson library. App CMakeLists.txt: cmake\_minimum\_required( VERSION 3.24 ) project( FetchContentTest VERSION 0.1 DESCRIPTION "Test use of …

[Next page](https://discourse.cmake.org/tag/gen-xcode/10.md?match_all_tags=true&page=1&tags%5B%5D=gen%3Axcode)
