ParseFacebookUtilsV4、Swift 和 CocoaPods:未解析的标识符
ParseFacebookUtilsV4, Swift and CocoaPods: unresolved identifier
我正在使用 XCode 7.0 beta 4 (7A165t) 和 Swift 2.0 开发一个 iOS 应用程序,该应用程序使用 Parse、Facebook 和 Google 地图。这是我的播客文件:
platform :ios, '8.0'
use_frameworks!
inhibit_all_warnings!
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'GoogleMaps'
pod 'Parse'
pod 'ParseFacebookUtilsV4'
pod 'SWRevealViewController'
我尝试遵循解析指南 (https://parse.com/docs/ios/guide#users-log-in-amp-sign-up),但收到此错误
error: use of unresolved identifier 'PFFacebookUtils'
这是我的桥接头
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
#import <FBSDKShareKit/FBSDKShareKit.h>
#import <SWRevealViewController/SWRevealViewController.h>
#import <ParseFacebookUtilsV4/PFFacebookUtils.h>
#import <Parse/Parse.h>
#import <Bolts/Bolts.h>
有什么建议吗?
在项目的构建设置下,确保在 Swift Compiler - Code Generation 中,您的 Objective-C Bridging Header 路径设置为 yourProjectName/nameOfYourBridgingHeader.h
只需在您的代码中导入 ParseFacebookUtilsV4
import ParseFacebookUtilsV4
这对我有用
我正在使用 XCode 7.0 beta 4 (7A165t) 和 Swift 2.0 开发一个 iOS 应用程序,该应用程序使用 Parse、Facebook 和 Google 地图。这是我的播客文件:
platform :ios, '8.0'
use_frameworks!
inhibit_all_warnings!
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'GoogleMaps'
pod 'Parse'
pod 'ParseFacebookUtilsV4'
pod 'SWRevealViewController'
我尝试遵循解析指南 (https://parse.com/docs/ios/guide#users-log-in-amp-sign-up),但收到此错误
error: use of unresolved identifier 'PFFacebookUtils'
这是我的桥接头
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
#import <FBSDKShareKit/FBSDKShareKit.h>
#import <SWRevealViewController/SWRevealViewController.h>
#import <ParseFacebookUtilsV4/PFFacebookUtils.h>
#import <Parse/Parse.h>
#import <Bolts/Bolts.h>
有什么建议吗?
在项目的构建设置下,确保在 Swift Compiler - Code Generation 中,您的 Objective-C Bridging Header 路径设置为 yourProjectName/nameOfYourBridgingHeader.h
只需在您的代码中导入 ParseFacebookUtilsV4
import ParseFacebookUtilsV4
这对我有用