🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Roberto Merizalde
    Roberto Merizalde
    3,894 Points

    = Thread 1: Fatal error: invalidResource

    Posted January 5, 2020 10:18pm by Roberto Merizalde
    Roberto Merizalde
    3,894 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    0 Answers

  • Asger Mathiasen
    Asger Mathiasen
    4,801 Points

    Cannot convert value of type 'Decoder.Protocol' to expected argument type 'NSCoder'

    Posted December 25, 2019 7:16pm by Asger Mathiasen
    Asger Mathiasen
    4,801 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    1 Answer

  • codyperryman3
    codyperryman3
    2,427 Points

    ERROR: SWIFT_VERSION 3.0 is unsupported, supported versions are: 4.0, 4.2, 5.0

    Posted October 4, 2019 2:00am by codyperryman3
    codyperryman3
    2,427 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    1 Answer

  • Dan Lee
    Dan Lee
    1,732 Points

    I get an error: SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0.

    Posted April 19, 2019 2:00pm by Dan Lee
    Dan Lee
    1,732 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    1 Answer

  • alexander88
    alexander88
    10,824 Points

    Use of unresolved identifier 'FoodVendingMachine'

    Posted March 12, 2019 12:04am by alexander88
    alexander88
    10,824 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    1 Answer

  • James Hall
    James Hall
    2,618 Points

    invalidSelection error: cant't find the problem.

    Posted December 18, 2018 11:28pm by James Hall
    James Hall
    2,618 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    0 Answers

  • Rea Rahhal
    PLUS
    Rea Rahhal
    Courses Plus Student 4,732 Points

    Use of unresolved identifier FoodVendingMachine. I followed all the steps .don't know what's wrong

    Posted April 10, 2018 10:30am by Rea Rahhal
    Rea Rahhal
    Courses Plus Student 4,732 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    0 Answers

  • imelda cloutier
    PLUS
    imelda cloutier
    Courses Plus Student 2,597 Points

    this line of code brings an error for me

    Posted December 13, 2017 8:49pm by imelda cloutier
    imelda cloutier
    Courses Plus Student 2,597 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    2 Answers

  • Bekzod Rakhmatov
    Bekzod Rakhmatov
    7,419 Points

    Error

    Posted July 10, 2017 8:03am by Bekzod Rakhmatov
    Bekzod Rakhmatov
    7,419 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    0 Answers

  • NIKOLA RUSEV
    NIKOLA RUSEV
    5,293 Points

    fatal error: invalidSelection: file /... help??

    Posted May 5, 2017 10:46am by NIKOLA RUSEV
    NIKOLA RUSEV
    5,293 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    1 Answer

  • Alex Chapple
    Alex Chapple
    3,196 Points

    I keep getting invalid Resource Fatal error?

    Posted April 8, 2017 12:15am by Alex Chapple
    Alex Chapple
    3,196 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    0 Answers

  • Alex Chapple
    Alex Chapple
    3,196 Points

    I keep getting Fatal Error with invalidSelection! What is wrong here?

    Posted April 6, 2017 7:35am by Alex Chapple
    Alex Chapple
    3,196 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    9 Answers

  • Matthew Ingram
    PLUS
    Matthew Ingram
    Courses Plus Student 4,718 Points

    it isn't printing the inventory

    Posted March 31, 2017 11:36pm by Matthew Ingram
    Matthew Ingram
    Courses Plus Student 4,718 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    1 Answer

  • James J. McCombie
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    James J. McCombie
    Python Web Development Techdegree Graduate 21,199 Points

    installation failed invalid argument

    Posted March 19, 2017 1:26pm by James J. McCombie
    .a{fill-rule:evenodd;}techdegree seal-36
    James J. McCombie
    Python Web Development Techdegree Graduate 21,199 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    0 Answers

  • Aananya Vyas
    Aananya Vyas
    20,157 Points

    i can not understand why 'selection' isn't recognised and the error isn't going away. please help.

    Posted March 17, 2017 4:03pm by Aananya Vyas
    Aananya Vyas
    20,157 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    4 Answers

  • Ingo Ngoyama
    Ingo Ngoyama
    4,882 Points

    I get a Fatal Error

    Posted February 28, 2017 5:08pm by Ingo Ngoyama
    Ingo Ngoyama
    4,882 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    0 Answers

  • Joe Hill
    Joe Hill
    15,063 Points

    VendingMachine.inventory not working in ViewController.swift

    Posted January 30, 2017 1:29am by Joe Hill
    Joe Hill
    15,063 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    1 Answer

  • David Miller
    David Miller
    5,118 Points

    I keep getting a fatal error. Not sure why.

    Posted January 25, 2017 11:50pm by David Miller
    David Miller
    5,118 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Loading Data From a Resource
    • Finishing Touches

    3 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.