# Xcode 10.2.1 build error

**URL:** <https://forums.kodeco.com/t/xcode-10-2-1-build-error/73483>\
**Category:** Swift\
**Created:** [June 10, 2019, 8:14pm UTC](https://forums.kodeco.com/t/xcode-10-2-1-build-error/73483 "2019-06-10T20:14:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jastarace](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jastarace/32/81494_2.png) [@jastarace](https://forums.kodeco.com/u/jastarace)\
**Post date:** [June 10, 2019, 8:14pm UTC](https://forums.kodeco.com/t/xcode-10-2-1-build-error/73483/1 "2019-06-10T20:14:48Z")

</div>

Hi,

I’m trying to run through the following tutorial

[https://www.raywenderlich.com/1079484-kitura-tutorial-getting-started-with-server-side-swift](https://www.raywenderlich.com/1079484-kitura-tutorial-getting-started-with-server-side-swift)

I’m really early in the tutorial and just trying to make sure it runs in Xcode.

From here, you need to make sure that the selected target device is My Mac. After you select that, build and run (Command + R) your Xcode project, and you’ll see this printed to the console:

When I try to build and run in Xcode I receive the following error;

Showing Recent Errors Only  
👎 unable to resolve product type ‘com.apple.product-type.tool’ for platform ‘iphoneos’ (in target ‘KituraTIL’)

Here’s my swift version

home-office:KituraTIL zardozhomeedition$ swift --version  
Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5)  
Target: x86\_64-apple-darwin18.6.0

Suggestions?

---

<div class="post-metadata">

**Author:** ![jastarace](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jastarace/32/81494_2.png) [@jastarace](https://forums.kodeco.com/u/jastarace)\
**Post date:** [June 11, 2019, 1:24pm UTC](https://forums.kodeco.com/t/xcode-10-2-1-build-error/73483/2 "2019-06-11T13:24:18Z")

</div>

Simple enough fix. Clean the build folder then make sure My Mac is selected as the active scheme

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [June 11, 2019, 3:01pm UTC](https://forums.kodeco.com/t/xcode-10-2-1-build-error/73483/3 "2019-06-11T15:01:54Z")

</div>

@jastarace Glad you sorted it out! Cheers! :]

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [November 24, 2019, 12:25pm UTC](https://forums.kodeco.com/t/xcode-10-2-1-build-error/73483/4 "2019-11-24T12:25:39Z")

</div>

Closed on November 24, 2019, 12:25pm UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
