简体   繁体   English

归档时出现“没有这样的模块‘翠鸟’”错误

[英]“No such module 'Kingfisher'” error when archiving

I run or build an app successfully but when I archive an app, I have an error " No such module 'Kingfisher' " after I archived in Xcode 12.1.我成功运行或构建了一个应用程序,但是当我归档一个应用程序时,我在 Xcode 12.1 中归档后出现错误“ No such module 'Kingfisher' ”。 [1]: https://i.stack.imgur.com/M9kQM.png I made an app with min iOS 9.0. [1]: https://i.stack.imgur.com/M9kQM.png我用最低 iOS 9.0 制作了一个应用程序。 I've tried the solution from the link "No such module" error when archiving but it didn't work.在存档时尝试了链接“没有这样的模块”错误的解决方案,但它不起作用。 The error is just the same.错误是一样的。 But, the answers on the link are mostly users build on iOS 10 or 11 and they said it worked.但是,链接上的答案主要是用户在 iOS 10 或 11 上构建,他们说它有效。 I've tried reinstalling the pods, clearing derived data, but it doesn't work.我尝试重新安装 pod,清除派生数据,但它不起作用。 In my Podfile uses iOS 9 like the image below.在我的 Podfile 中使用 iOS 9 ,如下图所示。 [2]: https://i.stack.imgur.com/ujUSD.png Should I upgrade the iOS version from iOS 9.0 to be higher? [2]: https://i.stack.imgur.com/ujUSD.png我是否应该将 iOS 版本从 iOS 9.0 升级到更高版本?

Im not sure if it is 100% related.我不确定它是否 100% 相关。 But it seems that Kingfisher is supporting minimum iOS version 10. So for your question yes.但似乎翠鸟支持最低 iOS 版本 10。所以对于你的问题,是的。 I'd try to raise it.我会尝试提高它。

Podspec - https://github.com/onevcat/Kingfisher/blob/master/Kingfisher.podspec Podspec - https://github.com/onevcat/Kingfisher/blob/master/Kingfisher.podspec

a) Go to Pods products group and select all pods framework a) Go 到 Pods 产品组和 select 所有pods框架

b) Open build settings and select Architecture section b) 打开构建设置和 select 架构部分

c) Set 'Standard Architectures (arm64, armv7) - $(ARCHS_STANDARD) for Debug and Release mode c) 设置 'Standard Architectures (arm64, armv7) - $(ARCHS_STANDARD) 用于DebugRelease模式

在此处输入图像描述

I had this kind of issue.我有这种问题。 Fixed for me.为我固定。 Try this.尝试这个。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM