Type arguments cannot be applied to non-parameterized class BFTask in PFAnalytics and PFObject

前端 未结 3 1670
你的背包
你的背包 2020-12-31 07:55

I\'ve updated my project to iOS 9, my podfile, and all necessary files, but it will not build. The source of my grief is in the following error message:

Type a

相关标签:
3条回答
  • 2020-12-31 08:57

    You have two Bolts.framework, old from FacebookSDK and new from Parse. So go to the FacebookSDK folder from where you added the FacebookSDK into the xcode and delete the Bolts.framework. Keep the new Bolts.framework and everything will be fine now.

    If you still is not able to find the old Bolts.framework find the class file showing error and right click it and select show in finder and traceback the facebook folder from the finder and make sure it is in Facebook SDK folder and delete the Bolts.framework. Make sure you don't delete the new Bolts.framework you added from Parse SDK folder.

    0 讨论(0)
  • 2020-12-31 08:57

    I had the same problem (spent a few hours investigating whats going on). I messed up old FacebookSDK framework with the one I installed via cocoapods

    1. Check the following path ~/Documents/FacebookSDK to see if there are some outdated SDK
    2. Remove any import of Facebook SDK #import <FacebookSDK/FacebookSDK.h>
    3. Install it via cocoapods
      pod 'FBSDKCoreKit' pod 'FBSDKLoginKit' pod 'FBSDKShareKit'
      or add the new framework manually.
    0 讨论(0)
  • 2020-12-31 09:01

    Make sure that you don't have a duplicate version of the Bolts.framework.

    If you are using both Parse SDK and Facebook SDK you will encounter a problem where Parse SDK contains an older version of Bolts (currently 1.1.5) and the FB SDK has the newest version of Bolts SDK (>= 1.2.2)

    Once you remove an older version of the Bolt.framework that comes with Parse SDK you should be fine.

    To check what version of Bolts.SDK you have simply go to the Bolts.framework file, right - click and choose "Get Info".

    0 讨论(0)
提交回复
热议问题