Xcode 10.2.1 build error


I’m trying to run through the following tutorial


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
:-1: 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


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

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

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