Facebook登录iOS,使用Parse&椰子树的错误 [英] Facebook login on iOS with Parse & cocoapods errors
问题描述
我试图遵循本教程使用Parse从iOS创建facebook / twitter身份验证。
I'm trying to follow this tutorial to create facebook/twitter authentication from iOS using Parse.
我的Podfile如下所示:
My Podfile looks like this:
platform :ios, '8.1'
xcodeproj 'MyApp'
target :Connectd, :exclusive => true do
pod 'Parse'
pod 'ParseUI'
pod 'ParseFacebookUtilsV4'
pod 'ParseTwitterUtils'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
end
有关Stackoverflow有关图书馆冲突的一些报告,但我认为都老了如果我正在正确阅读Podfile.lock文件,那么所有的pod都应该使用Bolts 1.5。
There are a bunch of reports on stackoverflow about library conflicts, but I think they are all old. If I am reading the Podfile.lock file correctly then all of the pods should work with Bolts 1.5
- Bolts (1.5.0):
- Bolts/AppLinks (= 1.5.0)
- Bolts/Tasks (= 1.5.0)
- Bolts/AppLinks (1.5.0):
- Bolts/Tasks
- Bolts/Tasks (1.5.0)
- FBSDKCoreKit (4.8.0):
- Bolts (~> 1.1)
- FBSDKCoreKit/arc (= 4.8.0)
- FBSDKCoreKit/no-arc (= 4.8.0)
- FBSDKCoreKit/arc (4.8.0):
- Bolts (~> 1.1)
- FBSDKCoreKit/no-arc (4.8.0):
- Bolts (~> 1.1)
- FBSDKCoreKit/arc
- FBSDKLoginKit (4.8.0):
- FBSDKCoreKit
- Parse (1.10.0):
- Bolts/Tasks (~> 1.5)
- ParseFacebookUtilsV4 (1.9.1):
- Bolts/Tasks (>= 1.5)
- FBSDKCoreKit (~> 4.8)
- FBSDKLoginKit (~> 4.8)
- Parse (~> 1.9)
- ParseTwitterUtils (1.9.1):
- Bolts/Tasks (~> 1.5)
- Parse (~> 1.9)
- ParseUI (1.1.7):
- Bolts/Tasks (~> 1.3)
- Parse (~> 1.9)
当我编译时,我得到15错误。这是第一个...
When I compile, I get 15 errors. Here are the first few...
Controller/PFCurrentConfigController.m:81:88: error: expected '>'
return [[self _getPersistenceGroupAsync] continueWithSuccessBlock:^id(BFTask<id<PFPersistenceGroup>> *task) {
^
Controller/PFCurrentConfigController.m:81:88: error: interface type 'BFTask' cannot be passed by value; did you forget * in 'BFTask'?
return [[self _getPersistenceGroupAsync] continueWithSuccessBlock:^id(BFTask<id<PFPersistenceGroup>> *task) {
^
*
Controller/PFCurrentConfigController.m:81:88: error: expected ')'
Controller/PFCurrentConfigController.m:81:78: note: to match this '('
return [[self _getPersistenceGroupAsync] continueWithSuccessBlock:^id(BFTask<id<PFPersistenceGroup>> *task) {
推荐答案
解析最新版本和XCode 6.4,更新XCode或尝试此版本,适用于我:
looks like an problem between Parse latest version and XCode 6.4, update XCode or try this versions, works for me:
pod 'Parse', '1.8.1'
pod 'ParseUI'
pod 'ParseFacebookUtilsV4', '~> 1.8'
pod 'ParseTwitterUtils', '~> 1.8'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
这篇关于Facebook登录iOS,使用Parse&椰子树的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!