How to fix Bool Return error with Parse?

Asked

Viewed 60 times

0

When I compile the code parse asks to put in appdelegate.Swift appears "Return in Function to Return Bool" but when I enter Return true, there are more than 30 errors and still not working, follow the appdelegate code:

import UIKit

import Parse

import Bolts

@UIApplicationMain

class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

        Parse.enableLocalDatastore()

        // Initialize Parse.

        Parse.setApplicationId("xxxxxxxxxxxxxxxxxxxj",

        clientKey: "xxxxxxxxxxxxxx")

        PFAnalytics.trackAppOpenedWithLaunchOptions(launchOptions)

        return true

}
  • Ola Kroise, can you describe more about the mistakes that are giving?

  • talks man, then what happens and what appear after I put the "Return true" errors like "audioServiesCreateSystem", "Scnetworkreachbility", "sqlite3_bind_blod" by ai @Lucaseduardo

  • 1

    If you can put all the code of your appDelegate so we can analyze it better, apparently there are no problems in this excerpt you posted... other than the detail of being missing close the key } of func didFinishLaunchingWithOptions

  • @iTSangar I managed to resolve by importing some frameworks, vlw by help!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.