Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 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
  • Mads Bennicke
    Mads Bennicke
    2,630 Points

    When I try to run VendingMachine the debunk area says 2016-09-08 20:06:22.241 VendingMachine[3377:267843] Failed to

    Posted September 8, 2016 7:35pm by Mads Bennicke
    Mads Bennicke
    2,630 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Loading Data From a Resource
    • Finishing Touches

    0 Answers

  • Adam Young
    Adam Young
    4,147 Points

    App crashing when launching

    Posted August 7, 2016 5:20am by Adam Young
    Adam Young
    4,147 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Loading Data From a Resource
    • Finishing Touches

    2 Answers

  • Trent Christofferson
    Trent Christofferson
    18,846 Points

    Compiler Error

    Posted August 7, 2016 1:09am by Trent Christofferson
    Trent Christofferson
    18,846 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Loading Data From a Resource
    • Finishing Touches

    1 Answer

  • Kyle Papili
    Kyle Papili
    9,112 Points

    Argument type 'VendingItem' does not conform to expected type 'itemType'

    Posted July 30, 2016 4:38am by Kyle Papili
    Kyle Papili
    9,112 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Loading Data From a Resource
    • Finishing Touches

    1 Answer

  • Jordan George
    Jordan George
    9,926 Points

    VendingSelection cannot be constructed, it has no accessible initializers

    Posted July 23, 2016 4:54am by Jordan George
    Jordan George
    9,926 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Loading Data From a Resource
    • Finishing Touches

    0 Answers

  • Pema Khando Shachentsang
    PLUS
    Pema Khando Shachentsang
    Courses Plus Student 1,210 Points

    Vending machine

    Posted July 13, 2016 2:51pm by Pema Khando Shachentsang
    Pema Khando Shachentsang
    Courses Plus Student 1,210 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Loading Data From a Resource
    • Finishing Touches

    1 Answer

  • Amir Gamil
    Amir Gamil
    5,657 Points

    Initializer for conditional binding must have Optional type, not [String]

    Posted July 5, 2016 10:37am by Amir Gamil
    Amir Gamil
    5,657 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Loading Data From a Resource
    • Finishing Touches

    2 Answers

  • Tosin Peters
    Tosin Peters
    9,547 Points

    InvalidType: Fatal Error

    Posted June 29, 2016 3:00am by Tosin Peters
    Tosin Peters
    9,547 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Loading Data From a Resource
    • Finishing Touches

    2 Answers

  • jiranan supawong
    jiranan supawong
    5,716 Points

    How a constant of class instance is declared without initialization?

    Posted June 11, 2016 3:12pm by jiranan supawong
    jiranan supawong
    5,716 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Loading Data From a Resource
    • Finishing Touches

    1 Answer

  • Anthony Lafont
    Anthony Lafont
    17,075 Points

    I get a compiler error "type VendingMachine does not conform to protocol vendingMachineType"

    Posted June 9, 2016 4:57pm by Anthony Lafont
    Anthony Lafont
    17,075 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Loading Data From a Resource
    • Finishing Touches

    4 Answers

  • Igor Alves
    PLUS
    Igor Alves
    Courses Plus Student 4,115 Points

    Whats the difference between the guard else statement and the if else statement?

    Posted April 16, 2016 12:44pm by Igor Alves
    Igor Alves
    Courses Plus Student 4,115 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Loading Data From a Resource
    • Finishing Touches

    2 Answers

  • Alistair Cooper
    PLUS
    Alistair Cooper
    Courses Plus Student 7,020 Points

    ! Use of undeclared type 'VendingSelection' compiler error

    Posted April 7, 2016 2:35pm by Alistair Cooper
    Alistair Cooper
    Courses Plus Student 7,020 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Loading Data From a Resource
    • Finishing Touches

    2 Answers

  • Austin Hawks
    PLUS
    Austin Hawks
    Courses Plus Student 3,003 Points

    I'm getting the error cannot call non function type 'module<VendingMachine>'. Please help

    Posted April 4, 2016 11:58pm by Austin Hawks
    Austin Hawks
    Courses Plus Student 3,003 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Loading Data From a Resource
    • Finishing Touches

    1 Answer

  • Marcos Reboucas
    Marcos Reboucas
    12,890 Points

    Isn't "return vendingMachine.selection.count" in collectionView's numberOfItemsInSection method "hard coded"?

    Posted March 2, 2016 1:37pm by Marcos Reboucas
    Marcos Reboucas
    12,890 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Loading Data From a Resource
    • Finishing Touches

    1 Answer

  • Keli'i Martin
    Keli'i Martin
    8,227 Points

    Starter code doesn't have the required init

    Posted February 20, 2016 2:36am by Keli'i Martin
    Keli'i Martin
    8,227 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Loading Data From a Resource
    • Finishing Touches

    1 Answer

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