objective-cparse-platformpfobjectbftask

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


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 arguments cannot be applied to non-parameterized class 'BFTask'

This is the only error that shows, but it shows up multiple times in both PFAnalytics.h and probably more importantly PFObject.h.

Could someone tell me what this means and please suggest a solution? I hope I have provided enough information, but if not, let me know!

**Update 01:** I couldn't post the screenshot of the errors because my reputations aren't enough.

The code samples are as follows: In PFObject.h and PFAnalytics.h, everywhere there is the following:

(BFTask PF_GENERIC(XXSOMECLASS *)*) someMethod; 

the error is thrown. This is no code of mine, it is PFObject.h and PFAnalytics.h as stated before. Examples of the functions throwing the error in PFObject.h are below

- (BFTask PF_GENERIC(NSNumber *)*)saveInBackground; 
- (BFTask PF_GENERIC(NSNumber *)*)saveEventually;
- (BFTask PF_GENERIC(NSNumber *)*)deleteInBackground;
+ (BFTask PF_GENERIC(NSNumber *)*)saveAllInBackground:(PF_NULLABLE NSArray *)objects;
+ (BFTask PF_GENERIC(NSNumber *)*)deleteAllInBackground:(PF_NULLABLE NSArray *)objects;
// .... etc

when clicking on the stop sign the suggestion is to delete PF_GENERIC(NSNumber *), resulting in a method like this

 - (BFTask *)xxsomeMethod; 

but that doesn't help as it just gets a lot messier

Update 02: The contents of my Podfile:

# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'

target: 'BMR' do 
    pod 'AFNetworking', '~> 2.6' 
    pod 'ParseFacebookUtils', '~> 1.8' 
    pod 'Parse' 
    pod 'ParseUI', '~> 1.1' 
    pod 'FBSDKCoreKit', '~> 4.6' 
    pod 'FBSDKLoginKit', '~> 4.6'
    pod 'JSQMessagesViewController', '~> 7.2'
    pod 'IDMPhotoBrowser', '~> 1.7' 
    pod 'RNGridMenu', '~> 0.1' 
    pod 'APHorizontalMenu', '~> 1.3' 
    pod 'ASIHTTPRequest', '~> 1.8' 
    pod 'AutoScrollLabel', '~> 0.4' 
    pod 'CJAMacros', '~> 2.1' 
    pod 'CrittercismSDK', '~> 5.3'
end

Solution

  • 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".