Backendless Support
 
Solved

after Updating to Xcode 7.3 i got this warning: could not load any Objective-C class information ?

Hi guys,

I've created an app and its working fine until yesterday i've updated the Xcode to 7.3 version

when i rub my app on my device after pressing the login Button I got this error

55fb7c7556a4d12c174de58b47a85814

and this is my login code

  1. import UIKit

    class login_VC: UIViewController {

    @IBOutlet weak var emailText: UITextField!

    @IBOutlet weak var passText: UITextField!

    override func viewDidLoad() {

    super.viewDidLoad()

    self.emailText.borderStyle = UITextBorderStyle.RoundedRect

    self.passText.borderStyle = UITextBorderStyle.RoundedRect

    backendless.initApp(APP_ID, secret:SECRET_KEY, version:VERSION_NUM)

    }

    override func viewDidAppear(animated: Bool) {

    }

    @IBAction func loginButton(sender: AnyObject) {

    Types.tryblock({ () -> Void in

    let user = backendless.userService.login(self.emailText.text, password: self.passText.text)

    print("User has been logged in (SYNC): \(user)")

    let backendless2 = Backendless.sharedInstance()

    backendless2.userService.setStayLoggedIn( true )

    },

    catchblock: { (exception) -> Void in

    print("Server reported an error: \(exception as! Fault)")

    })

    }

    @IBAction func signUpButton(sender: AnyObject) {

    self.performSegueWithIdentifier("goToSignUp", sender: self)

    }

    @IBAction func forgotPassButton(sender: AnyObject) {

    }

    func loginUserAndGetPredefinedProperty() {

    Types.tryblock({ () -> Void in

    let user = backendless.userService.currentUser

    if (user != nil) {

    // get user's email (i.e. mandatory/predefined property)

    let userEmail = user.email

    self.performSegueWithIdentifier("goToHomeOnline", sender: self)

    print(user)

    print("User email: \(userEmail)")

    }

    else {

    print("User hasn't been logged")

    }

    },

    catchblock: { (exception) -> Void in

    print("Server reported an error: \(exception as! Fault)")

    }

    )

    }

    func displayAlert(title: String, message: String) {

    let alert = UIAlertController(title: title, message: message, preferredStyle: UIAlertControllerStyle.Alert)

    alert.addAction((UIAlertAction(title: "cancel", style: .Default, handler: { (action) -> Void in

    })))

    self.presentViewController(alert, animated: true, completion: nil)

    }

    }

Leave a Comment

Comments (3)

photo
1

Hi Nasser,

We are investigating this issue. We let you know about.

Regards,

Slava

photo
1

Please see this my comment in another thread. Hope it will be helpful for you.

Also you should upgrade the latest Backendless SDK from CocoaPods (3.0.10 release) or ios-SDK github.

photo
1

thanks Slava

the upgrading(SDK) make it Works again