我试图让AWS框架在Xcode(Version11.2.1)中工作,方法是手动导入。让它们工作的唯一方法是将它们添加到构建阶段的嵌入框架中。在我将AWSMobileClient导入到我的一个快速文件之前,一切都很好。事情出了问题。如果我试图在设备模拟器上构建项目,就会得到以下错误:
Could not find module 'AWSMobileClient' for target 'x86_64-apple-ios-simulator'; found: arm64, armv7-apple-ios, arm64-apple-ios, arm, armv7然后,我切换到物理设备,并得到以下错误:
Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler: /Users/lukacefarin/Library/Mobile Documents/com~apple~CloudDocs/Projects/InoSupport/AWSMobileClient.framework/Modules/AWSMobileClient.swiftmodule/arm64-apple-ios.swiftmodule我在堆栈溢出上读到了这个错误,似乎除了等待AWS修复这个错误之外,我什么也做不了。
有什么解决办法吗?我的所有项目框架都是手动导入的,所以我不想使用Cocoapods或Carthage。
于2020年2月9日编辑
我在GitHub上发布了这个GitHub,并得到了他们正在研究解决方案的回放。在那之前,我想应该使用依赖关系管理器。
发布于 2020-05-22 14:12:27
我所面临的问题和你看到的一样,我的本地版本是5.1.3。
"Incompatible Swift version - framework was built with 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7) and the local version is 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)."因此,我不得不寻找aws版本,与我安装的快速版本5.1.3兼容。
您的安装快捷版本为5.1.2。在我的尝试中,我发现了一个aws版本与您的本地版本迅速5.1.2兼容。
尝试使用aws "2.13.0",我的日志说这个框架是用5.1.2.构建的。
*** Checking out aws-sdk-ios at "2.13.0"
*** Downloading aws-sdk-ios.framework binary at "AWS SDK for iOS 2.13.0"
*** Skipped installing aws-sdk-ios.framework binary due to the error:
"Incompatible Swift version - framework was built with 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) and the local version is 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)."https://stackoverflow.com/questions/58873371
复制相似问题