Parse/Parse.h file not found when Xcode Quits

前端 未结 4 1596
悲哀的现实
悲哀的现实 2021-01-22 05:06

I added the Parse SDK in my project and everything was well. However when I quit Xcode and opened the project I got these errors:

Parse/Parse.h file not found
         


        
4条回答
  •  悲哀的现实
    2021-01-22 05:52

    create new parse app download parse sdk for ios

    create new project - master detail go to build settings under search paths >> framework search paths >> 1) debug - add $(PROJECT_DIR)/** 2) release - add $(PROJECT_DIR)/**

    go to general tab
    under Linked frameworks and libraries, Add the following frameworks from parse SDK Parse.framework ParseCrashReporting.framework Bolts.framework ParseUI.framework

            Also add the below frameworks
                AudioToolbox.framework
                SystemConfiguration.framework
    
            Add the below frameworks using "Add framewors popup" -->> Add other -->> ctrl+shift+g --> enter /usr/lib/ -->>
                choose the following
                    1) libz.1.dylib
                    2) libsqlite3.dylib
    

    create new file -->> chose Objective-C type -->>create. Xcode will ask you whether you want to create a bridging header? select yes. it create 2 files. one is .m file and one is .h file go to .h file, add the following line #import

    Open up the AppDelegate.swift file, uncomment and edit the setApplicationId line in the application:didFinishLaunchingWithOptions function with your keys: Example: Parse.setApplicationId("sJjEQei2m15RD9MJiZjVtygI1o6wQ23TxhdIllUo", clientKey: "IZDfhmPiO2b01yEacRBAStyKAznXrguFku78pWO3")

    Test the SDK

    First make sure to include our SDK imports at the top of your ViewController.swift file:

    import Parse

    Then copy and paste this code into your app, for example in the viewDidLoad function of ViewController.swift:

    let testObject = PFObject(className: "TestObject")
    testObject["foo"] = "bar"
    testObject.saveInBackgroundWithBlock { (success: Bool, error: NSError?) -> Void in
      print("Object has been saved.")
    }
    

    Run your app. A new object of class TestObject will be sent to the Parse Cloud and saved. When you're ready, click the button below to test if your data was sent.

提交回复
热议问题