2017-04-10 148 views
0

我有一個aws的問題。 我所有的步驟從https://console.aws.amazon.com/mobilehub/home?region=us-east-1#/75a98ed6-3ba6-4974-a3b2-4ba9c53a9b8f/source?platform=ios-swift&topic=u101推送通知亞馬遜

但是當我建立我的項目時,我得到了很多錯誤。

Undefined symbols for architecture arm64: 
"_OBJC_CLASS_$_AWSS3PreSignedURLBuilder", referenced from: 
objc-class-ref in AWSMobileHubHelper(AWSContentManager.o) 
"_OBJC_CLASS_$_AWSS3ListObjectsOutput", referenced from: 
objc-class-ref in AWSMobileHubHelper(AWSContentManager.o) 
"_OBJC_CLASS_$_AWSS3GetPreSignedURLRequest", referenced from: 
objc-class-ref in AWSMobileHubHelper(AWSContentManager.o) 
"_OBJC_CLASS_$_AWSS3", referenced from: 
objc-class-ref in AWSMobileHubHelper(AWSContentManager.o) 

我使用cocoapod作爲其他庫。但對於aws我添加SDK到我的項目。

source 'https://github.com/CocoaPods/Specs.git' 

platform :ios, '10.0' 

target 'MovieLand' do 
use_frameworks! 
pod 'SVProgressHUD' 
pod 'Fabric' 
pod 'Crashlytics' 
pod 'Starscream' 
pod 'RealmSwift' 
pod 'SnapKit', '~> 3.0.2' 
pod 'Kingfisher' 
pod 'TZStackView' 
pod 'Alamofire', '~> 4.0' 
pod 'FontBlaster' 
pod 'IDMPhotoBrowser' 
pod 'CocoaLumberjack/Swift' 
pod 'UIColor_Hex_Swift' 
pod 'AlamofireObjectMapper', '~> 4.0' 
pod 'ObjectMapper', '~> 2.2' 
pod 'SwiftyJSON', git: 'https://github.com/BaiduHiDeviOS/SwiftyJSON.git', branch: 'swift3' 
end 

這是我的Podfile。

回答

1

我解決了我的問題。我要補充的東西podfile

pod 'FBSDKLoginKit', '~> 4.13.1' 
pod 'FBSDKCoreKit', '~> 4.13.1' 
pod 'GoogleSignIn', '~> 4.0.0' 
pod 'AWSSNS', '~>2.5.0' 
pod 'AWSS3', '~>2.5.0' 
pod 'AWSLambda', '~>2.5.0' 
pod 'AWSCognito', '~>2.5.0' 
pod 'AWSCognitoIdentityProvider', '~>2.5.0' 

這不是DOC亞馬遜