我有一个简单的简单PodFile用于空单视图应用程序目标和名为' tf'在工作区' ws'
platform :ios, '8.0'
use_frameworks!
workspace 'ws'
project 'tf/tf'
target 'tf' do
pod 'ShareKit/Facebook', '~> 5.0.0'
pod 'ShareKit/Tumblr', '~> 5.0.0'
end
使用1.0.0b6它会突然出现:
MacBook-Pro:testflurry steve$ pod install
Analyzing dependencies
Downloading dependencies
Installing Bolts (1.7.0)
Installing Facebook-iOS-SDK (3.24.4)
Installing PKMultipartInputStream (1.1.0)
Installing SAMTextView (0.2.2)
Installing SDWebImage (3.7.5)
Installing SSKeychain (1.2.3)
Installing ShareKit (5.0.0)
Installing UIActivityIndicator-for-SDWebImage (1.2)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 2 dependencies from the Podfile and 8 total pods installed.
它不会构建,无法找到sharekit中的导入
#import <UIActivityIndicator-for-SDWebImage/UIImageView+UIActivityIndicatorForSDWebImage.h>
原因显而易见,当您在pods项目中检查ShareKit目标时,HEADER_SEARCH_PATHS最终为
"${PODS_ROOT}/Headers/Private"
"${PODS_ROOT}/Headers/Public"
我认为$ {PODS_ROOT}评估为$ {SRCROOT}或项目目录和headers文件夹为空。似乎我错过了一些基本的东西,或者某些东西是不对的。帮助不大?