# XCode project with localizable resources

**URL:** <https://discourse.cmake.org/t/xcode-project-with-localizable-resources/5960>\
**Category:** Usage\
**Tags:** gen:xcode\
**Created:** [June 29, 2022, 2:50pm UTC](https://discourse.cmake.org/t/xcode-project-with-localizable-resources/5960 "2022-06-29T14:50:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrey\_c](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@andrey\_c](https://discourse.cmake.org/u/andrey_c)\
**Post date:** [June 29, 2022, 2:50pm UTC](https://discourse.cmake.org/t/xcode-project-with-localizable-resources/5960/1 "2022-06-29T14:50:01Z")

</div>

Hello.  
How can be added localized XCode resources via CMake?  
Examples from internet says use

```cmake
set_source_files_properties(<files...> PROPERTIES MACOSX_PACKAGE_LOCATION Resources/<lang_id>.lproj)

```

But application terminates with error “Unable to load nib file”.

---

<div class="post-metadata">

**Author:** ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Post date:** [June 30, 2022, 11:48am UTC](https://discourse.cmake.org/t/xcode-project-with-localizable-resources/5960/2 "2022-06-30T11:48:23Z")

</div>

If you can provide a complete, minimal project that demonstrates your error, that may improve your chances of getting help with this. Right now, we can’t tell if the problem is in the way your project is defining things.
