# Errors with the minimum supported platform

**URL:** <https://forums.kodeco.com/t/errors-with-the-minimum-supported-platform/179384>\
**Category:** Push Notifications by Tutorials\
**Created:** [October 3, 2022, 1:34pm UTC](https://forums.kodeco.com/t/errors-with-the-minimum-supported-platform/179384 "2022-10-03T13:34:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaspare92](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gaspare92/32/111038_2.png) [@gaspare92](https://forums.kodeco.com/u/gaspare92)\
**Post date:** [October 3, 2022, 1:34pm UTC](https://forums.kodeco.com/t/errors-with-the-minimum-supported-platform/179384/1 "2022-10-03T13:34:51Z")

</div>

I’m on chapter 6: Adding support for token. After opening Package.swift, Xcode take a few minutes to prepare the project and after that I get this errors. How can I solve?  
 ![screenshot](https://files.chunter.kodeco.com/original/3X/2/9/29fbe298e64248d44d329b802f43c261b4c8c0c3.png)

---

<div class="post-metadata">

**Author:** ![gargoyle](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gargoyle/32/107285_2.png) [@gargoyle](https://forums.kodeco.com/u/gargoyle)\
**Post date:** [October 4, 2022, 8:23pm UTC](https://forums.kodeco.com/t/errors-with-the-minimum-supported-platform/179384/2 "2022-10-04T20:23:22Z")

</div>

Are you using the latest Xcode with the most recent version of the source files? I just cloned a fresh copy of the materials and after opening Package.swift it compiled without issue. You might also try closing Xcode, removing ~/Library/Developer/Xcode/DerivedData/WebService-\* and then opening the project again.

---

<div class="post-metadata">

**Author:** ![aswiftvegan](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/aswiftvegan/32/105896_2.png) [@aswiftvegan](https://forums.kodeco.com/u/aswiftvegan)\
**Post date:** [November 12, 2022, 10:07pm UTC](https://forums.kodeco.com/t/errors-with-the-minimum-supported-platform/179384/3 "2022-11-12T22:07:07Z")

</div>

I tried this and have the same errors. Where I can update this? I believe it’s a platforms issues, as the error suggests. I’m using Xcode 14, iOS 16, and Swift 5.6

Here’s my package for Vapor.

```auto
let package = Package(
    name: "vapor",
    platforms: [
        .macOS(.v10_15),
        .iOS(.v13),
        .tvOS(.v13),
        .watchOS(.v6)
    ],

```

---

<div class="post-metadata">

**Author:** ![aswiftvegan](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/aswiftvegan/32/105896_2.png) [@aswiftvegan](https://forums.kodeco.com/u/aswiftvegan)\
**Post date:** [November 13, 2022, 8:07am UTC](https://forums.kodeco.com/t/errors-with-the-minimum-supported-platform/179384/4 "2022-11-13T08:07:47Z")

</div>

Finally got it working. I needed to go into the files themselves and add the #available if… flags above the structs and/or methods. I also went to edit schemes and added my folder to the path in lieu of /Library/Xcode/DerivedData/WebService, which is where your project seems to run by default. I also switched the scheme from iOS to Mac. Not sure what that does.
