How to Build a Simple iOS Chat App – Ep 3 – Adding the Parse Framework into a Swift Xcode Project

[ad_1]
Adding the Parse Framework into a Swift Xcode Project

This lesson shows you how to add the Parse Framework (which is an Objective-C library) into a Swift Xcode project. A lot of people get stumped on this but It’s actually pretty easy to do!

We also test the connection to our Parse backend by saving an object.

The Xcode project for this lesson (remember to add your own Parse application and client key to the AppDelegate):

For more tutorials on how to build iPhone apps, make sure you subscribe and visit my site where you’ll find a community of like minded learners! Learning something new is always more fun with other people!

Youtube:
Website:
Facebook:
Twitter:

CodeWithChris is dedicated to teaching beginners and non-programmers all about building iOS apps. On the site, you’ll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have successfully picked up Swift, Objective-C, Xcode and app building from my course and materials!

Intro & Outro music
“get out” by Jahzzar (


Posted

in

by

Tags:

Comments

23 responses to “How to Build a Simple iOS Chat App – Ep 3 – Adding the Parse Framework into a Swift Xcode Project”

  1. Mix Avatar

    12:25 , how to do this with Firebase?

  2. Abhishek Chauhan Avatar

    Great tutorial Chris but facebook is shutting down parse.. so do you have any tuts on chat without parse?

  3. abdijabar mohamed Avatar

    Hey Chris. I am new to this. Do I need to memorize those 3 lines of code that you wrote to finish the touches of connecting parse with Xcode. I just know swift and I have no idea on Objective-C

  4. FlyteWizard Avatar

    Parse now has a swift option 😀

  5. Andrew Watson Avatar

    Really digging the music, great videos!

  6. Vedant Patel Avatar

    for the error 'PFObject' does not have member named 'subscript'

    replace this line code
    testObject["foo"] = "bar"

    to
    testObject.setValue("bar", forKey: "foo")

    the error will be eliminated
    this is because of the incompatibility with the new framework

  7. WealthyGoals Avatar

    i searched but could not find these last too in the frameworks and libraries
    libz.dylib
    libsqlite3.dylib
    did i do something wrong?

  8. kalyffo3 Avatar

    Hi Chris,
    great tutorials you are doing! but could you update the code in the description or comment in order to follow with the new Parse Swift SDK please?!
    I got stuck at minute 15' when PfObject gives "Use of undeclared type "PfObject".
    Thanks you!

  9. Carlos Moreno Avatar

    When im adding the frameworks do I need to add the libz.dylib and the libsqlite3.dylib? Because when I search for them they do not appear please someone help me! Thanks

  10. abhishek thakuria Avatar

    In ViewController.swift when i m creating a new PF Object [ var newMessage:PFObject(className:"Message") ]and after that setting the key to the message TextField [ newMessageObject["Text"]=self.messageTextField.text ]it is showing an errorr PFObject does not have a member name Subscript please help me i am unable to find any correct solution to this problem.

  11. Nalla Namban Avatar

    I got error like this "PFObject does not have a member named subcript"

  12. Jack Beeby Avatar

    hi do you know hoe to add a riding header in code 6.4

  13. Amin Amiri Avatar

    There's a something wrong here, Most of us followed your way, but still we are getting error, now I'm stuck in import Parse and even in SimpleChatApp-Bridging-Header
    what's the problem? I did everything you did but I'm having error and you don't have at all !!

  14. Şenol Şahin Avatar

    Awesome tutorial. Thank you!

  15. Hatim Thayyil Avatar

    +Code With Chris  FYI…. Parse have created a new Swift library and now you wont need to do it like above.

    And btw… your tutorials are awesome… Keep it up

  16. Nqo M Avatar

    Do i need to have a Mac to create applications on Parse or i can use Windows 7?

  17. Nqo M Avatar

    how do i get to Xcode??

  18. Joe Moslemian Avatar

    I typed the following exactly as you did:

    let testObject:PFObject = PFObject … etc.

    However, I keep having my build fail because Xcode says:

    'PFObject' does not have a member named 'subscript'

    I am new to Xcode and programming in general and I have no idea how to fix this. Online someone mentioned something about the object being optional? They also mentioned that Xcode beta 6 changed a number of foundation APIs. Do you know how to fix this so my code will build? I would greatly appreciate an help. Thank you.

  19. CodeWithChris Avatar

    Ep 3 of building a simple chat app! Adding the Parse framework into our Swift Xcode project:

  20. Josh Lopez Avatar

    Hey all, if you start having trouble using parse you might have to add #import <Bolts/Bolts.h> to your bridging header. This was a problem I couldn't find an answer to for a while so I hope it helps someone.

  21. Noel Burow Avatar

    Really nice !! love your how to Vids 😉

Leave a Reply

Your email address will not be published. Required fields are marked *