FacebookSDK Corekit框架错误(FacebookSDK Corekit framework error)
我正在尝试使用FacebookSDK Sharekit / Corekit框架在我的应用程序中包含发布功能。 我将
FBSDKCoreKit.framework
和FBSKShareKit.framework
到Xcode项目中。当我构建应用程序时,它在以下3个FBSDKCoreKit.framework头文件中给出了错误:
- FBSDKProfile.h
- FBSDKGraphRequest.h
- FBSDKAccessToken.h
这是错误的图像
这是给出此错误的代码。
- (instancetype)initWithTokenString:(NSString *)tokenString permissions:(NSArray *)permissions declinedPermissions:(NSArray *)declinedPermissions appID:(NSString *)appID userID:(NSString *)userID expirationDate:(NSDate *)expirationDate refreshDate:(NSDate *)refreshDate NS_DESIGNATED_INITIALIZER;
它说
Lexical or Preprocessor Issue Expected ':'
不确定为什么框架文件会出错。 请帮忙!
提前致谢
I am trying to use the FacebookSDK Sharekit/Corekit framework for including posting feature in my app. I dragged and dropped
FBSDKCoreKit.framework
andFBSKShareKit.framework
in to Xcode project.When I build the app it gave me error in 3 of the following FBSDKCoreKit.framework header file:
- FBSDKProfile.h
- FBSDKGraphRequest.h
- FBSDKAccessToken.h
Here is an image of the error
Here is the code that gives this error.
- (instancetype)initWithTokenString:(NSString *)tokenString permissions:(NSArray *)permissions declinedPermissions:(NSArray *)declinedPermissions appID:(NSString *)appID userID:(NSString *)userID expirationDate:(NSDate *)expirationDate refreshDate:(NSDate *)refreshDate NS_DESIGNATED_INITIALIZER;
It says
Lexical or Preprocessor Issue Expected ‘:’
Not sure why would a framework file give error. Please help!
Thanks in advance
满意答案
在尝试了一切之后,解决方案是从Xcode 5升级到Xcode 7。
After trying everything, the solution was to upgrade to Xcode 7 from Xcode 5.
相关问答
更多当我甚至没有使用Bolts时,为什么我会收到有关Bolts框架和FacebookSDK的错误?(Why am I getting an error regarding Bolts framework and FacebookSDK when I'm not even using Bolts?)
无法为FacebookSDK 4构建模块“FBSDKCoreKit”(Could not build module 'FBSDKCoreKit' For FacebookSDK 4)
Monotouch Binding和FacebookSDK(Monotouch Binding and FacebookSDK)
如何使Xcode找到文件FacebookSDK.h?(How to make Xcode find file FacebookSDK.h?)
未找到“FacebookSDK / FacebookSDK.h”文件('FacebookSDK/FacebookSDK.h' file not found)
找不到FacebookSDK错误GADCustomEventBanner.h(FacebookSDK Error GADCustomEventBanner.h not found)
#import 未找到IOS目标C.(#import not found IOS objective C)
使用UnitTest时未找到FacebookSDK / FacebookSDK.h(FacebookSDK/FacebookSDK.h not found when using UnitTest)
找不到选项FacebookSDK的目录(directory not found for option FacebookSDK)
FacebookSDK Corekit框架错误(FacebookSDK Corekit framework error)
相关文章
更多IOS-Social.framework
AMF: ASP.NET Mobile Framework
eclipse里报:An internal error occurred during:
安卓应用程序插件化开发框架 -AAP Framework
安卓应用程序插件化开发框架 -AAP Framework
The connection to adb is down, and a severe error has occured.
solr error logs org.apache.solr.common.SolrException: ERROR: [doc=17] unknown field alias
Solr安装异常:SolrException: Error loading class 'solr.VelocityResponseWriter'
error C2668: 'M' : ambiguous call to overloaded function
win8安装VirtualBox-4.2.18提示Installation failed!error:系统找不到指定的路径
最新问答
更多Python / IPython奇怪的不可重现列表索引超出范围错误(Python/IPython strange non reproducible list index out of range error)
故事板从表格单元中延伸出来并显示其详细信息披露按钮(storyboard segue from a tablecell an its Detail Disclosure Button)
我们可以将Gherkin功能文件与testcomplete集成(Can we integrate Gherkin feature files with testcomplete)
TrustAllCertificatesCallback被忽略(TrustAllCertificatesCallback is ignored)
返回嵌套元素的索引(Return index of nested element)
在数组中重新编号元素的有效方法(Efficient way of re-numbering elements in an array)
Express app定义的`static`文件夹无法正常工作(Express app defined `static` folder not working properly)
Javascript错误:未捕获TypeError:无法读取null的属性'value'[duplicate](Javascript error: Uncaught TypeError: Cannot read property 'value' of null [duplicate])
使用node.js和socket.io每秒广播一次(Using node.js and socket.io to broadcast every second)
如何让XMLSerializer将命名空间添加到嵌套对象中的属性?(How do I get the XMLSerializer to add namespaces to attributes in nested objects?)
Copyright ©2023 656463.com All Rights Reserved.滇ICP备2022006988号-50
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们,本站将尽快处理。谢谢合作!