[英]MyClass is unavailable: cannot find Swift declaration for this class
I am building a custom framework in swift.I have builded the framework for all the architecture. 我正在迅速构建一个自定义框架。我已经为所有架构构建了框架。 I am using Debug-Universal build in my sample app.
我在示例应用程序中使用Debug-Universal构建。 Now when I run the app, It works fine in the simulator but while running on the device, I am getting the error Breeze is unavailable: cannot find Swift declaration for this class
现在,当我运行该应用程序时,它在模拟器中可以正常运行,但是在设备上运行时,我收到错误提示: Breeze不可用:找不到此类的Swift声明
When I am using Release-Universal it is giving No such Module BreezeSDK 当我使用通用发行版时, 没有给出这样的模块BreezeSDK
Follow these steps after creating the universal binaries: 按照创建通用二进制代码后下列步骤操作:
Before lipo
, you are building .framework
packages for the individual architectures. 在
lipo
之前,您正在为各个体系结构构建.framework
软件包。
For each package: 对于每个包装:
abc.framework/Modules/abc
abc.framework/Modules/abc
.swiftdoc
.swiftdoc
universal abc
universal abc
abc.framework/Modules/abc
abc.framework/Modules/abc
Repeat these steps for all architectures. 对所有体系结构重复这些步骤。
Finally your universal framework package path abc.framework/Modules/abc.swiftmodule/
should contain those files: 最后,通用框架包路径
abc.framework/Modules/abc.swiftmodule/
应该包含以下文件:
The Swift compiler needs swiftmodule map files for each architecture. Swift编译器需要每种架构的swiftmodule映射文件。
Follow these steps 跟着这些步骤
Hope this might solve the issue. 希望这可以解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.