我使用 Cocoapods 安装了 ParseFacebookUtilsV4,但在使用该框架时遇到了一些问题。当我尝试在 AppDelegate 中导入它时,Xcode 返回错误:
Could not build Objective-C module 'ParseFacebookUtilsV4'
PFUV4 中的错误是
'Bolts/BFTask.h' file not found
这是我的 Podfile:
# Uncomment this line to define a global platform for your project
platform :ios, ‘8.0’
# Uncomment this line if you're using Swift
use_frameworks!
target 'Cashy' do
pod 'FBSDKCoreKit', '~> 4.10'
pod 'FBSDKLoginKit', '~> 4.10'
pod 'Parse', '~> 1.13'
pod 'ParseFacebookUtilsV4', '~> 1.11'
end
我发现了一些由 #import <"framework"> 语句引起的类似问题(替换为 #import "module.h")。但如果我尝试用这种方式解决问题,我应该将语句替换一百万次(所有 Parse、PFUV4 等文件!)。
您有解决此问题的建议吗?我已经这样做了数千次,但现在使用 Xcode 7.3 它不起作用。
最佳答案
我认为这是因为你使用了use_frameworks!
# Uncomment this line to define a global platform for your project
platform :ios, ‘8.0’
# Uncomment this line if you're using Swift
# use_frameworks!
target 'Cashy' do
pod 'FBSDKCoreKit', '~> 4.10'
pod 'FBSDKLoginKit', '~> 4.10'
pod 'Parse', '~> 1.13'
pod 'ParseFacebookUtilsV4', '~> 1.11'
end
关于Xcode:无法构建 ParseFacebookUtilsV4 (Cocoapods),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36554581/