[英]AWS Mobile iOS SDK not building AWSCognitoSyncService correctly (fails)
This was building previously but isn't anymore. 这是以前建造但不再是。 I updated cocoapods and pulled new data in with pod update but still can't build my iOS 9.0 app anymore:
我更新了cocoapods并使用pod更新提取了新数据,但仍无法构建我的iOS 9.0应用程序:
/Users/cdub/Developer/AppName/Pods/Headers/Public/
AWSCognito/AWSCognitoSyncService.h:198:4:
Type arguments cannot be applied to non-parameterized class 'AWSTask'
Why is this happening? 为什么会这样?
The version of AWSCore
and AWSCognito
need to match. AWSCore
和AWSCognito
的版本需要匹配。 It looks like your AWSCognito
is newer than AWSCore
. 您的
AWSCognito
看起来比AWSCore
更新。 How did you get AWSCognito
and AWSCore
? 您是如何获得
AWSCognito
和AWSCore
? Both through CocoaPods? 两者都通过CocoaPods? You need to use
pod update
when updating the pods instead of pod install
. 更新
pod install
而不是pod install
时,需要使用pod update
。
If you keep encountering the issue, you should delete Podfile.lock
and Pods/
and then run pod install
to cleanly install the SDK. 如果您遇到此问题,则应删除
Podfile.lock
和Pods/
,然后运行pod install
以干净地安装SDK。 AWS Mobile SDK iOS Developer Guide has more information about how to setup the SDK. AWS Mobile SDK iOS开发人员指南提供了有关如何设置SDK的更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.