# Mac build issue when compiling and/or building

**URL:** <https://forums.unrealengine.com/t/mac-build-issue-when-compiling-and-or-building/614840>\
**Category:** Feedback & Requests\
**Tags:** osx, apple, unreal-engine, UE4\
**Created:** [July 26, 2022, 4:54pm UTC](https://forums.unrealengine.com/t/mac-build-issue-when-compiling-and-or-building/614840 "2022-07-26T16:54:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vonnbla12345](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vonnbla12345](https://forums.unrealengine.com/u/vonnbla12345)\
**Post date:** [July 26, 2022, 4:54pm UTC](https://forums.unrealengine.com/t/mac-build-issue-when-compiling-and-or-building/614840/1 "2022-07-26T16:54:16Z")

</div>

Good day devs, Im always encountering this error whenever im trying to build on my Mac

```auto
PackagingResults: Error: variable 'PkgCDO' set but not used [-Werror,-Wunused-but-set-variable]

```

there are tons of this same error. im using UE4.27.2, Xcode 13.2.1. How can I fix this?

My project came from Windows, and im trying to build it also on Mac. Thank you
