我正在尝试在 OS X 10.11(El Capitan)上的 XCode 7 中构建现有的 Objective-C 项目。我从存储库中获取源代码,运行pod install
,然后打开.xcworkspace
文件并尝试构建。它找不到应该由 Pod 安装的“S3.h”。
这是 Pod 文件:
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 开发工具包是否发生了一些变化?现在我正在使用 XCode 7.0.1,是否需要进行其他一些配置更改?