Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implicit declaration of function 'FBSDK_NOT_DESIGNATED_INITIALIZER' is invalid in C99 Expected ')'

I'm using Facebook SDK for iOS 4.6.0 and just today above error encountered after updating cocoapods to 0.38.2. I'm not sure this error has anything to do with cocoapods.

Error screenshot: enter image description here

like image 845
virengujariya Avatar asked Oct 01 '15 00:10

virengujariya


People also ask

What does implicit declaration of function is invalid in c99 mean?

implicit declaration of function means you do not have Prototypes for your functions. You should have a Prototype before the function is used. "call the block" I assume your Blocks are functions. 9/30/2020.

What is implicit declaration of function?

If a name appears in a program and is not explicitly declared, it is implicitly declared. The scope of an implicit declaration is determined as if the name were declared in a DECLARE statement immediately following the PROCEDURE statement of the external procedure in which the name is used.

What is implicit declaration of function error in C?

implicit declaration of function. So what does the gcc warning 'implicit declaration of function' mean (other compiler report a 'implicit parameter declaration')? Basically it means that the compiler has found a call to function for which he does not have a prototype.


1 Answers

I had the same issue. The problem appeared because, I was connecting both "ParseFacebookUtils" (which was loading "Facebook-iOS-SDK" (which is the deprecated version) and "FBSDKCoreKit" separately.

"Facebook-iOS-SDK" and "FBSDKCoreKit" both have "FBSDKMacros.h" which has different declarations of "FBSDK_NOT_DESIGNATED_INITIALIZER" and that is why message in XCode appear.

What I suggest, if "ParseFacebookUtils" is not in your podfile list, check which cocoaPod loading "Facebook-iOS-SDK" and try to update it with the newer version of that framework.

If "ParseFacebookUtils" is your case than easily change it to 'ParseFacebookUtilsV4'

And surely don't forget to run 'pod update' to make all changes active

Hope this helps.

like image 74
Illya Bakurov Avatar answered Sep 17 '22 17:09

Illya Bakurov