# \#os:ios

**URL:** https://discourse.cmake.org/tag/os-ios/14.md

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

---

## [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(). …

---

## [OpenSSL iOS build fails on bunch of undefined symbols](https://discourse.cmake.org/t/openssl-ios-build-fails-on-bunch-of-undefined-symbols/14273)

<div class="topic-metadata">

**Author:** [@shokarta](https://discourse.cmake.org/u/shokarta)\
**Replies:** 1\
**Last updated:** [June 24, 2025, 2:32pm UTC](https://discourse.cmake.org/t/openssl-ios-build-fails-on-bunch-of-undefined-symbols/14273 "2025-06-24T14:32:48Z")

</div>

Hello, I have a 3.3.2 version of iOS (well, now I realy only think its iOS version) which I dont remember how i installed, via brew or sudo perhaps (attached package if needs to be confirmed its realy for iOS and noc ma…

---

## [Missing support for XCODE\_EMBED\_APPCLIP and XCODE\_EMBED\_WATCHAPP in CMake for iOS projects](https://discourse.cmake.org/t/missing-support-for-xcode-embed-appclip-and-xcode-embed-watchapp-in-cmake-for-ios-projects/14190)

<div class="topic-metadata">

**Author:** [@execomrt](https://discourse.cmake.org/u/execomrt)\
**Replies:** 0\
**Last updated:** [June 3, 2025, 12:21pm UTC](https://discourse.cmake.org/t/missing-support-for-xcode-embed-appclip-and-xcode-embed-watchapp-in-cmake-for-ios-projects/14190 "2025-06-03T12:21:10Z")

</div>

We’re building a complex iOS app that includes: a main app an App Clip a watchOS app a widget extension a notification service extension We’re using CMake to generate our Xcode project, and we’ve noticed: XCODE\_EMBE…

---

## [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 …

---

## [How to run script AFTER \*.pbxproj is generated?](https://discourse.cmake.org/t/how-to-run-script-after-pbxproj-is-generated/13675)

<div class="topic-metadata">

**Author:** [@shokarta](https://discourse.cmake.org/u/shokarta)\
**Replies:** 4\
**Last updated:** [March 6, 2025, 4:32pm UTC](https://discourse.cmake.org/t/how-to-run-script-after-pbxproj-is-generated/13675 "2025-03-06T16:32:05Z")

</div>

0 basicaly I made a shell script which I need to run always when cmake finish configuration and its after generation phase (so when pbxproj is generated). so far i tried add\_custom\_command() which does not do anything,…

---

## [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…

---

## [How to incorporate app icon files for iOS into Xcode 14?](https://discourse.cmake.org/t/how-to-incorporate-app-icon-files-for-ios-into-xcode-14/7386)

<div class="topic-metadata">

**Author:** [@paul.masristone](https://discourse.cmake.org/u/paul.masristone)\
**Replies:** 17\
**Last updated:** [October 7, 2024, 5:39pm UTC](https://discourse.cmake.org/t/how-to-incorporate-app-icon-files-for-ios-into-xcode-14/7386 "2024-10-07T17:39:13Z")

</div>

I have previously published my Qt app using Qt 5 + qmake. I am now ready to release a new version using Qt 6 + CMake. (I am using Qt 6.4.2 and CMake 3.24.2) However I am struggling to get app icons into Xcode 14.2 in a…

---

## [xcodebuild build -quiet](https://discourse.cmake.org/t/xcodebuild-build-quiet/11742)

<div class="topic-metadata">

**Author:** [@jasonaylward](https://discourse.cmake.org/u/jasonaylward)\
**Replies:** 2\
**Last updated:** [September 22, 2024, 12:51pm UTC](https://discourse.cmake.org/t/xcodebuild-build-quiet/11742 "2024-09-22T12:51:15Z")

</div>

Does anyone know of a way to pass the -quiet flag into xcodebuild build via CMake? Thanks!

---

## [Linking a library created by cmake to my ios app gives me missing signing identifier](https://discourse.cmake.org/t/linking-a-library-created-by-cmake-to-my-ios-app-gives-me-missing-signing-identifier/11636)

<div class="topic-metadata">

**Author:** [@DridriLaBastos](https://discourse.cmake.org/u/DridriLaBastos)\
**Replies:** 0\
**Last updated:** [September 10, 2024, 9:18pm UTC](https://discourse.cmake.org/t/linking-a-library-created-by-cmake-to-my-ios-app-gives-me-missing-signing-identifier/11636 "2024-09-10T21:18:06Z")

</div>

I am creating an application with Flutter that uses a native library that I wrote myself in C++ to perform computationally intensive tasks. The library is compiled via Cmake and the compilation is automatically performed…

---

## [CMake + Catch2 on iOS](https://discourse.cmake.org/t/cmake-catch2-on-ios/10829)

<div class="topic-metadata">

**Author:** [@jasonaylward](https://discourse.cmake.org/u/jasonaylward)\
**Replies:** 6\
**Last updated:** [May 13, 2024, 1:45pm UTC](https://discourse.cmake.org/t/cmake-catch2-on-ios/10829 "2024-05-13T13:45:46Z")

</div>

Hi. I’m working on a cross-platform project that uses CMake to build and Catch2 (and its CMake integration) for tests. I have it almost working but there’s a Postbuild Script that is generated in Xcode that fails. The…

---

## [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: …

---

## [How to determine host architecture before to the project call?](https://discourse.cmake.org/t/how-to-determine-host-architecture-before-to-the-project-call/9887)

<div class="topic-metadata">

**Author:** [@Kentzo](https://discourse.cmake.org/u/Kentzo)\
**Replies:** 1\
**Last updated:** [January 20, 2024, 4:30am UTC](https://discourse.cmake.org/t/how-to-determine-host-architecture-before-to-the-project-call/9887 "2024-01-20T04:30:03Z")

</div>

In my project I’m allowing the user to configure library either for device or simulator. When targeting device I just hardcode arm64, but the simulator architecture follow the host device. Unfortunately I cannot use CMAK…

---

## [find\_library misses a framework](https://discourse.cmake.org/t/find-library-misses-a-framework/9736)

<div class="topic-metadata">

**Author:** [@Kentzo](https://discourse.cmake.org/u/Kentzo)\
**Replies:** 2\
**Last updated:** [December 30, 2023, 4:05am UTC](https://discourse.cmake.org/t/find-library-misses-a-framework/9736 "2023-12-30T04:05:51Z")

</div>

I don’t quite understand why find\_library fails locate a framework when cross-compiling for tvOS: CMake Debug Log at qtmultimedia/cmake/FindFFmpeg.cmake:128 (find\_library): find\_library called with the following setti…

---

## [Add custom font to Xcode (for LaunchScreen)](https://discourse.cmake.org/t/add-custom-font-to-xcode-for-launchscreen/7737)

<div class="topic-metadata">

**Author:** [@paul.masristone](https://discourse.cmake.org/u/paul.masristone)\
**Replies:** 2\
**Last updated:** [December 12, 2023, 8:24pm UTC](https://discourse.cmake.org/t/add-custom-font-to-xcode-for-launchscreen/7737 "2023-12-12T20:24:44Z")

</div>

My app uses a custom font. I want to use this font in the LaunchScreen storyboard too. Anyone know how to do this? I’ve got this far… I created a LaunchScreen storyboard in Xcode, using my custom font, and stored the …

---

## [Create WatchKit extension XCode project structure](https://discourse.cmake.org/t/create-watchkit-extension-xcode-project-structure/7864)

<div class="topic-metadata">

**Author:** [@tqu-dev](https://discourse.cmake.org/u/tqu-dev)\
**Replies:** 7\
**Last updated:** [April 25, 2023, 3:46am UTC](https://discourse.cmake.org/t/create-watchkit-extension-xcode-project-structure/7864 "2023-04-25T03:46:29Z")

</div>

Hi, At the moment I am using cmake for generating a xCode iOS project (using Qt for iOS framework) which is then used for creating an archive and for the app store submission. Now I want to add a WatchKit extension to t…

---

## [Workflow for iOS devices (pushing to device, debugging)](https://discourse.cmake.org/t/workflow-for-ios-devices-pushing-to-device-debugging/7716)

<div class="topic-metadata">

**Author:** [@RobN](https://discourse.cmake.org/u/RobN)\
**Replies:** 3\
**Last updated:** [March 20, 2023, 6:59pm UTC](https://discourse.cmake.org/t/workflow-for-ios-devices-pushing-to-device-debugging/7716 "2023-03-20T18:59:29Z")

</div>

Does anyone use CMake to build and run an iOS app, without working (much) in Xcode? I’ve been using CMake + Emacs a lot lately, to build executables for desktop or command line. I’d like to start doing the same for iOS a…

---

## [dSYM file not copied when archiving](https://discourse.cmake.org/t/dsym-file-not-copied-when-archiving/7691)

<div class="topic-metadata">

**Author:** [@m\_g](https://discourse.cmake.org/u/m_g)\
**Replies:** 1\
**Last updated:** [March 16, 2023, 5:52pm UTC](https://discourse.cmake.org/t/dsym-file-not-copied-when-archiving/7691 "2023-03-16T17:52:59Z")

</div>

Hi, I use CMake to generate iOS/macOS Xcode projects for an app. When archiving to upload beta builds to TestFlight, the dSYMsdirectory in the .xcarchive is simply empty. The dSYM file is properly generated but it see…

---

## [Looking for complete examples of cross platform projects](https://discourse.cmake.org/t/looking-for-complete-examples-of-cross-platform-projects/4731)

<div class="topic-metadata">

**Author:** [@obushnell](https://discourse.cmake.org/u/obushnell)\
**Replies:** 18\
**Last updated:** [January 18, 2023, 8:17pm UTC](https://discourse.cmake.org/t/looking-for-complete-examples-of-cross-platform-projects/4731 "2023-01-18T20:17:12Z")

</div>

Me and my colleagues are using CMake 3.20 to build cross platform projects. We can make it build and deploy on Windows, with some manual effort. We can’t get it to build on the other platforms without breaking the Window…

---

## [Running unit tests on iOS using CTest and GoogleTest](https://discourse.cmake.org/t/running-unit-tests-on-ios-using-ctest-and-googletest/7118)

<div class="topic-metadata">

**Author:** [@jviotti](https://discourse.cmake.org/u/jviotti)\
**Replies:** 1\
**Last updated:** [December 22, 2022, 5:30pm UTC](https://discourse.cmake.org/t/running-unit-tests-on-ios-using-ctest-and-googletest/7118 "2022-12-22T17:30:23Z")

</div>

Are there any resources out there for running iOS unit tests using CTest? Is it even possible to i.e. run a headless binary containing tests on the simulator? How do you people approach this?

---

## [CMake + Presets/Toolchain for iOS - Problem to find libs with find\_package](https://discourse.cmake.org/t/cmake-presets-toolchain-for-ios-problem-to-find-libs-with-find-package/6642)

<div class="topic-metadata">

**Author:** [@DrAuraHxC](https://discourse.cmake.org/u/DrAuraHxC)\
**Replies:** 9\
**Last updated:** [November 16, 2022, 2:54pm UTC](https://discourse.cmake.org/t/cmake-presets-toolchain-for-ios-problem-to-find-libs-with-find-package/6642 "2022-11-16T14:54:10Z")

</div>

Hi everyone, I’m facing something strange and I can’t figure out if it’s actually a bug or a misunderstanding of the system. I use the preset system to manage the different OS with toolchain. Here is an extract of my …

---

## [How to generate FAT STATIC lib with CMake Preset](https://discourse.cmake.org/t/how-to-generate-fat-static-lib-with-cmake-preset/6655)

<div class="topic-metadata">

**Author:** [@DrAuraHxC](https://discourse.cmake.org/u/DrAuraHxC)\
**Replies:** 8\
**Last updated:** [October 21, 2022, 2:16pm UTC](https://discourse.cmake.org/t/how-to-generate-fat-static-lib-with-cmake-preset/6655 "2022-10-21T14:16:08Z")

</div>

Hi, I would like to be able to compile some libraries in “fat” mode, i.e. to have a library that combines the arm64 and x86\_64 version in one file. I can do it very well for macOS by only setting CMAKE\_OSX\_ARCHITECTURE…

---

## [Trouble trying to link/distribute a 3rd party library as a framework for iOS](https://discourse.cmake.org/t/trouble-trying-to-link-distribute-a-3rd-party-library-as-a-framework-for-ios/5299)

<div class="topic-metadata">

**Author:** [@def-pri-pub](https://discourse.cmake.org/u/def-pri-pub)\
**Replies:** 2\
**Last updated:** [June 29, 2022, 5:49pm UTC](https://discourse.cmake.org/t/trouble-trying-to-link-distribute-a-3rd-party-library-as-a-framework-for-ios/5299 "2022-06-29T17:49:59Z")

</div>

I’m working on an app right now and I’m using Qt to build it. Android and iOS are the targets of mine. Part of my issue is that I need to use a dynamically linked 3rd party library (that uses CMake) in the app. When buil…

---

## [Link errors on iOS](https://discourse.cmake.org/t/link-errors-on-ios/4915)

<div class="topic-metadata">

**Author:** [@fabiop](https://discourse.cmake.org/u/fabiop)\
**Replies:** 0\
**Last updated:** [January 27, 2022, 7:50am UTC](https://discourse.cmake.org/t/link-errors-on-ios/4915 "2022-01-27T07:50:56Z")

</div>

Hi, I have a strange issue on iOS platform. I have a C++ framework whose project file is generated via CMake. This project file is then manually added as dependency to a very simple iOS Bundle (we do this in order to t…

---

## [find\_library or add\_library does not work with xcframework for iOS/Mac](https://discourse.cmake.org/t/find-library-or-add-library-does-not-work-with-xcframework-for-ios-mac/4065)

<div class="topic-metadata">

**Author:** [@skandpal](https://discourse.cmake.org/u/skandpal)\
**Replies:** 1\
**Last updated:** [September 11, 2021, 7:54am UTC](https://discourse.cmake.org/t/find-library-or-add-library-does-not-work-with-xcframework-for-ios-mac/4065 "2021-09-11T07:54:26Z")

</div>

If we are building a framework containing an iOS and iOS simulator slice then we have to use xcframework (Xcode 13 only supports xcframeworks) but cmake does not look like support it. Is there a way to use xcframework in…

---

## [cmake 3.20 build error when copying iOS frameworks - signing on build machine not supported](https://discourse.cmake.org/t/cmake-3-20-build-error-when-copying-ios-frameworks-signing-on-build-machine-not-supported/3258)

<div class="topic-metadata">

**Author:** [@buggy](https://discourse.cmake.org/u/buggy)\
**Replies:** 5\
**Last updated:** [May 4, 2021, 2:21pm UTC](https://discourse.cmake.org/t/cmake-3-20-build-error-when-copying-ios-frameworks-signing-on-build-machine-not-supported/3258 "2021-05-04T14:21:41Z")

</div>

Hi everybody, I run into an error when building an iOS app linking a framework on a machine without Apple dev certificates installed: \_lib\_shared\_it\_copy\_lib.build/Script-827DD60D11E805EA4271AEE0.sh: line 5: unexpected…

---

## [iOS support](https://discourse.cmake.org/t/ios-support/1776)

<div class="topic-metadata">

**Author:** [@thenewandy](https://discourse.cmake.org/u/thenewandy)\
**Replies:** 0\
**Last updated:** [September 3, 2020, 11:10am UTC](https://discourse.cmake.org/t/ios-support/1776 "2020-09-03T11:10:24Z")

</div>

Hello, I’m trying to understand what the state of iOS support is. I have a project which I can build for linux (cmake … && make) and macOS trivially (cmake -GXcode … && run xcode on generated files). However, when I try…

---

## [Using asset catalogs for macOS/iOS projects](https://discourse.cmake.org/t/using-asset-catalogs-for-macos-ios-projects/1588)

<div class="topic-metadata">

**Author:** [@kaworu1986](https://discourse.cmake.org/u/kaworu1986)\
**Replies:** 3\
**Last updated:** [July 21, 2020, 11:14am UTC](https://discourse.cmake.org/t/using-asset-catalogs-for-macos-ios-projects/1588 "2020-07-21T11:14:02Z")

</div>

Is it possible to get CMake to generate a macOS/iOS Xcode project that uses asset catalogs to set the application icon? I’ve been trying to get it to work for days now without success, and I currently have the below cod…
