简体   繁体   English

使用 Swift 5.2.4 编译的模块不能被 Swift 5.3.1 编译器导入

[英]Module compiled with Swift 5.2.4 cannot be imported by the Swift 5.3.1 compiler

Module compiled with Swift 5.2.4 cannot be imported by the Swift 5.3.1 compiler:
/Users/imac/Desktop/PixelPhoto/PixelPhotoSDK.framework/Modules/PixelPhotoSDK.swiftmodule/x86_64.swiftmodule

I have try many way to solve this but I can't resolve this issue.我尝试了很多方法来解决这个问题,但我无法解决这个问题。 I am trying with toolchain and convert code to latest version also.我正在尝试使用工具链并将代码转换为最新版本。

This is a framework issue.这是一个框架问题。 Apparently PixelPhotoSDK.framework has been built using either Xcode version 11.5 , 11.6 or 11.7 and more importantly without the BUILD_LIBRARY_FOR_DISTRIBUTION build configuration set to YES .显然PixelPhotoSDK.framework是使用 Xcode 版本11.511.611.7构建的,更重要的是没有将BUILD_LIBRARY_FOR_DISTRIBUTION构建配置设置为YES

Unfortunately, there is not much you can do about it, if you are not the creator of this framework, other than go back to previous Xcode versions.不幸的是,如果你不是这个框架的创建者,你无能为力,除了 go 回到以前的 Xcode 版本。

The creator of the framework can do one of 2 things: (or even better both)框架的创建者可以做两件事之一:(甚至更好)

  • Rebuild the framework using those old Xcode versions but with BUILD_LIBRARY_FOR_DISTRIBUTION configuration set to YES .使用旧的 Xcode 版本重建框架,但将BUILD_LIBRARY_FOR_DISTRIBUTION配置设置为YES (that will enable the ability to be used from an app that is build with different Swift compiler version. See Module Stability feature available since Swift 5.1) (这将使能够从使用不同 Swift 编译器版本构建的应用程序中使用的能力。请参阅自 Swift 5.1 起可用的模块稳定性功能)

  • Rebuild the framework using the Xcode version that you are currently using (probably version 12.2)使用您当前使用的 Xcode 版本(可能是 12.2 版)重建框架

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Swift 5.3.1 编译的模块不能被 Swift 5.1.3 编译器导入 - Module compiled with Swift 5.3.1 cannot be imported by the Swift 5.1.3 compiler 即使使用 Xcode 11.7 命令行工具,Swift 5.3 编译器也无法导入使用 Swift 5.2.4 编译的模块 - Module compiled with Swift 5.2.4 cannot be imported by the Swift 5.3 compiler even with Xcode 11.7 command line tools 使用Swift 4.1.2编译的模块不能由Swift 4.2编译器导入 - Module compiled with Swift 4.1.2 cannot be imported by the Swift 4.2 compiler 使用Swift 5.0编译的模块不能由Swift 4.2.1编译器导入 - Module compiled with Swift 5.0 cannot be imported by the Swift 4.2.1 compiler Swift 5.0.1 编译的模块不能被 Swift 5.1 编译器导入 - Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compiler Swift 5.1编译的模块不能被Swift 5.1.2编译器导入 - Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler Swift 5.0 编译器无法导入使用 Swift 4.2.1 编译的模块 - Module compiled with Swift 4.2.1 cannot be imported by the Swift 5.0 compiler Swift 4.2.1编译器无法导入使用Swift 4.0.3编译的模块 - Module compiled with Swift 4.0.3 cannot be imported by the Swift 4.2.1 compiler 用 Swift 5.3.2 编译的模块不能被 Swift 5.6 编译器导入 - Module compiled with Swift 5.3.2 cannot be imported by the Swift 5.6 compiler 用 Swift 5.5.1 编译的模块不能被 Swift 5.5.2 编译器 RazorPay 导入 - Module compiled with Swift 5.5.1 cannot be imported by the Swift 5.5.2 compiler RazorPay
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM