After I updated Xcode to 7.0 (and Swift 2.0) my app no longer accepts one of my Parse statements. I have a standard Parse query. Within that query I have the following block of code:
for user in users! {
if !contains(accepted, user.username) && !contains(rejected, user.username){
self.usernames.append(user.username)
self.users.append(user as! PFUser)
if let data = user["image"] as? NSData {
self.userImages.append(data)
}
}
I get the following error on user.username
in the code above:
Value of type 'PFObject' has no member 'username'
I tried removing/readding the Parse SDK but no luck. I even edited the PFObject.h header file (a solution I found on another SO post) but that didn't work either. Any ideas? Did Parse SDK implementation change with Xcode 7? Am I missing something?
Thanks!!
EDIT: gist of full code: https://gist.github.com/jtansley/6c2bb4b8cb82459b8c10