# Recent problems using Xcode as editor with Kitura-based packages

**URL:** <https://forums.swift.org/t/recent-problems-using-xcode-as-editor-with-kitura-based-packages/43359>\
**Category:** Kitura\
**Created:** [December 25, 2020, 10:58pm UTC](https://forums.swift.org/t/recent-problems-using-xcode-as-editor-with-kitura-based-packages/43359 "2020-12-25T22:58:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![crspybits](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/crspybits/32/7809_2.png) [@crspybits](https://forums.swift.org/u/crspybits)\
**Post date:** [December 25, 2020, 10:58pm UTC](https://forums.swift.org/t/recent-problems-using-xcode-as-editor-with-kitura-based-packages/43359/1 "2020-12-25T22:58:18Z")

</div>

Hi-- I've recently been having some difficulties with using Xcode with some of my Kitura-based packages. I recently reported this here [xcode12 - Xcode giving "Cannot find type 'TYPE' in scope" errors with Swift Package - Stack Overflow](https://stackoverflow.com/questions/65452179/xcode-giving-cannot-find-type-type-in-scope-errors-with-swift-package) on Stackoverflow. But I'm starting to wonder if may be related to some recent changes in Kitura packages.

In addition to the issue I reported on Stackoverflow, I just updated another package to latest versions:

> **[GitHub - SyncServerII/ServerGoogleAccount: Server-side Google account for...](https://github.com/SyncServerII/ServerGoogleAccount)**
>
> Server-side Google account for SyncServerII. Contribute to SyncServerII/ServerGoogleAccount development by creating an account on GitHub.

and get the same errors occurring. For example:

```swift
/Users/chris/Desktop/NewSyncServer/ServerGoogleAccount/Sources/ServerGoogleAccount/GoogleCreds.swift:45:28: Cannot find type 'AccountAPICall' in scope
/Users/chris/Desktop/NewSyncServer/ServerGoogleAccount/Sources/ServerGoogleAccount/GoogleCreds.swift:45:44: Cannot find type 'Account' in scope
/Users/chris/Desktop/NewSyncServer/ServerGoogleAccount/Sources/ServerGoogleAccount/GoogleCreds.swift:72:23: Cannot find type 'AccountDelegate' in scope
/Users/chris/Desktop/NewSyncServer/ServerGoogleAccount/Sources/ServerGoogleAccount/GoogleCreds.swift:73:36: Cannot find type 'AccountCreationUser' in scope
/Users/chris/Desktop/NewSyncServer/ServerGoogleAccount/Sources/ServerGoogleAccount/GoogleCreds.swift:80:63: Cannot find type 'AccountDelegate' in scope
/Users/chris/Desktop/NewSyncServer/ServerGoogleAccount/Sources/ServerGoogleAccount/GoogleCreds.swift:90:58: Cannot find type 'AccountHeaders' in scope

```

This package _does_ build under Ubuntu.

Is anyone else also using Xcode to edit their Kitura-based server-side packages and recently running into issues?

Thanks so much for the continued support of Kitura!

---

<div class="post-metadata">

**Author:** ![crspybits](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/crspybits/32/7809_2.png) [@crspybits](https://forums.swift.org/u/crspybits)\
**Post date:** [December 26, 2020, 4:38am UTC](https://forums.swift.org/t/recent-problems-using-xcode-as-editor-with-kitura-based-packages/43359/2 "2020-12-26T04:38:05Z")

</div>

Solved. Entirely my bad. Nothing to do with Kitura. I was missing:

```swift
            swiftSettings: [
                // So I can do basic development and editing with this on Mac OS. Otherwise if some dependent library uses this it will not get Account related code. See Account.swift.
                .define("SERVER", .when(platforms: [.macOS], configuration: .debug)),
            ]),

```

in a dependently package :).

---

<div class="post-metadata">

**Author:** ![Sajjon](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/sajjon/32/12044_2.png) [@Sajjon](https://forums.swift.org/u/Sajjon)\
**Post date:** [December 26, 2020, 10:40am UTC](https://forums.swift.org/t/recent-problems-using-xcode-as-editor-with-kitura-based-packages/43359/3 "2020-12-26T10:40:09Z")

</div>

Nice that you solved it! Entirety off-topic:

Looks like you have this code project on your Desktop. Did you know that if you create a folder called _Developer_ in your home directory, macOS will render a special Xcode hammer icon next to it! This pretty common for us devs on macOS to use that directory, I mean look at that hammer! 😍

---

<div class="post-metadata">

**Author:** ![crspybits](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/crspybits/32/7809_2.png) [@crspybits](https://forums.swift.org/u/crspybits)\
**Post date:** [December 26, 2020, 9:53pm UTC](https://forums.swift.org/t/recent-problems-using-xcode-as-editor-with-kitura-based-packages/43359/4 "2020-12-26T21:53:52Z")

</div>

Nice! Thanks :)
