我正在将CocoaPods(0.39.0)升级到最新版本(1.0.1)并移动一些直接集成的框架(复制在主项目中而不是使用CocoaPods-spec)。我正在使用XCode(7.2.1)。
以下是与CocoaPods 1.0.1一起使用的podfile:
platform :ios, '8.0'
target 'ABC-v2' do
# use_framework is required for dynamic frameworks integration.
use_frameworks!
pod 'SSKeychain', '~>1'
pod 'Mantle', '~>1'
pod 'GoogleAPIClient/Drive', '~>1'
pod 'GTMOAuth2', '~>1'
pod 'GTMSessionFetcher'
pod 'libextobjc/EXTScope', '~>0.4'
pod 'Typhoon', '~>3'
# swift framework test, would need this eventually.
#pod 'Alamofire', '~>3'
# PSPDFKit - 5.8.3
pod 'PSPDFKit', podspec:'https://customers.pspdfkit.com/cocoapods/.../latest.podspec'
#disabled it temporarily to separate out xcode build error.
#target :SSS do
# pod 'ABC-iOS-SDK', :path => 'submodules/abc-ios-sdk'
#end
#disabled it temporarily to separate out xcode build error.
#target :TW do
# pod 'ABC-iOS-SDK', :path => 'submodules/abc-ios-sdk'
#end
target :ABCTests do
inherit! :search_paths
pod 'OCMock', '~> 3'
pod 'OCMockito', '~> 1'
pod 'VCRURLConnection', '~> 0.2', :inhibit_warnings => true
end
end

现在我正在尝试在构建时解决编译错误,这与多次包含的库有关。
编译时的错误:
/ path ../ Pods / SSKeychain / Sources / SSKeychain.h:65:1:类'SSKeychain'
/ path ../ Pods / SSKeychain / Sources / SSKeychain.h:22:27:重新定义' SSKeychainErrorCode'
/ path ../ Pods / SSKeychain / Sources / SSKeychain.h:24:2:重新定义枚举器' SSKeychainErrorBadArguments'
请帮助解决这些错误的想法?
答案 0 :(得分:0)
通过修改SSKeychain.h的import语句来解决这个问题。