Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord