2015-10-05 26 views
0

我想要獲取OS X 10.11(El Capitan)上的XCode 7中現有的Objective-C項目。我從存儲庫中抓取源代碼,運行pod install,然後打開.xcworkspace文件並嘗試構建。它沒有找到應該由Pods安裝的'S3.h'。XCode 7:使用可可豆莢未找到AWS S3頭文件

這是波德文件:

source 'https://github.com/CocoaPods/Specs.git' 
platform :ios, '8.0' 

target 'App' do 

pod "AWSiOSSDKv2" 
pod "AWSCognitoSync" 

end 

target 'AppTests' do 
end 

產生以下Pods-App.release.xcconfig

GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AWSAutoScaling" "${PODS_ROOT}/Headers/Public/AWSCloudWatch" "${PODS_ROOT}/Headers/Public/AWSCognito" "${PODS_ROOT}/Headers/Public/AWSCognitoSync" "${PODS_ROOT}/Headers/Public/AWSCore" "${PODS_ROOT}/Headers/Public/AWSDynamoDB" "${PODS_ROOT}/Headers/Public/AWSEC2" "${PODS_ROOT}/Headers/Public/AWSElasticLoadBalancing" "${PODS_ROOT}/Headers/Public/AWSKinesis" "${PODS_ROOT}/Headers/Public/AWSMobileAnalytics" "${PODS_ROOT}/Headers/Public/AWSS3" "${PODS_ROOT}/Headers/Public/AWSSES" "${PODS_ROOT}/Headers/Public/AWSSNS" "${PODS_ROOT}/Headers/Public/AWSSQS" "${PODS_ROOT}/Headers/Public/AWSSimpleDB" "${PODS_ROOT}/Headers/Public/AWSiOSSDKv2" 
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/AWSAutoScaling" -isystem "${PODS_ROOT}/Headers/Public/AWSCloudWatch" -isystem "${PODS_ROOT}/Headers/Public/AWSCognito" -isystem "${PODS_ROOT}/Headers/Public/AWSCognitoSync" -isystem "${PODS_ROOT}/Headers/Public/AWSCore" -isystem "${PODS_ROOT}/Headers/Public/AWSDynamoDB" -isystem "${PODS_ROOT}/Headers/Public/AWSEC2" -isystem "${PODS_ROOT}/Headers/Public/AWSElasticLoadBalancing" -isystem "${PODS_ROOT}/Headers/Public/AWSKinesis" -isystem "${PODS_ROOT}/Headers/Public/AWSMobileAnalytics" -isystem "${PODS_ROOT}/Headers/Public/AWSS3" -isystem "${PODS_ROOT}/Headers/Public/AWSSES" -isystem "${PODS_ROOT}/Headers/Public/AWSSNS" -isystem "${PODS_ROOT}/Headers/Public/AWSSQS" -isystem "${PODS_ROOT}/Headers/Public/AWSSimpleDB" -isystem "${PODS_ROOT}/Headers/Public/AWSiOSSDKv2" 
OTHER_LDFLAGS = $(inherited) -ObjC -l"AWSAutoScaling" -l"AWSCloudWatch" -l"AWSCognito" -l"AWSCore" -l"AWSDynamoDB" -l"AWSEC2" -l"AWSElasticLoadBalancing" -l"AWSKinesis" -l"AWSMobileAnalytics" -l"AWSS3" -l"AWSSES" -l"AWSSNS" -l"AWSSQS" -l"AWSSimpleDB" -l"sqlite3" -l"z" -framework "Foundation" -framework "SystemConfiguration" -framework "UIKit" 
PODS_ROOT = ${SRCROOT}/Pods 

當我然後去打造,它未能找到S3.h即使它似乎在尋找其他文件如AWSCore.h

大約6個月前,該項目在XCode 6.3上成功完成。在過去的6個月中,AWS SDK發生了什麼變化?現在我需要使用XCode 7.0.1進行其他配置更改嗎?

回答

2

您還需要添加

莢 「AWSS3」

編輯

我莢文件看起來像這樣

# Uncomment this line to define a global platform for your project 
platform :ios, '7.0' 

target 'MyAppName' do 

pod 'AWSiOSSDKv2', '~> 2.2' 
pod 'AWSLambda', '~> 2.2' 
pod 'AWSCognito', '~> 2.2' 
pod 'UICKeyChainStore', '~> 2.0' 

end 

target 'My AppTests' do 

end 

#import <AWSS3/AWSS3.h> 

對我來說是

+0

都能跟得上做工精細,我關閉工作區,刪除了吊艙和鎖文件,添加AWSS3吊艙,吊艙運行安裝,重新打開工作區,並試圖建立。我收到了同樣的錯誤。 – Bill

+1

它的#import 不是s3.h 對我有用 – Imran

+0

看起來像這樣在SDK更新中改變了。謝謝! – Bill