“没有这样的模块"存档时出错

编程入门 行业动态 更新时间:2024-10-19 11:47:07
本文介绍了“没有这样的模块"存档时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的Swift 4应用程序可以重建并在除 Generic iOS Device 之外的所有模拟器上成功运行.如果我尝试对其进行存档或在 Generic iOS Device 上进行重建,则会收到与我的一个pod框架有关的 No such module 错误.

My Swift 4 app rebuilds and runs successfully on all simulators except for Generic iOS Device. If I try to archive it or do a rebuild on Generic iOS Device, I get a No such module error relating to one of my pod frameworks.

我尝试将框架添加到 Linked Frameworks and Libraries 中,这消除了该错误,但是在下一个pod框架上失败了,依此类推.我尝试了 Framework Search Paths 中的各种路径,但没有碰到运气.

I tried adding the framework to Linked Frameworks and Libraries, and that removed the error, but then it fails on the next pod framework, and so on. I have tried all sorts of paths in Framework Search Paths with no luck.

当前,该值设置为:

我什至尝试删除工作空间,pod锁定文件和pods文件夹,然后我进行了 pod安装来重建所有内容.再次,它可以在除通用模拟器之外的任何模拟器上重建干净的对象.在一般情况下,我在Pod框架的所有import语句上都没有没有这样的模块.

I even tried deleting the workspace, the pod lock file, and the pods folder, and then I did a pod install to rebuild everything. Again, it rebuilds clean on any simulator except the generic one. On the generic one, I get No such module on all import statements for pod frameworks.

任何建议都值得赞赏,因为这个问题使我完全停滞了,因为我无法发布版本.

Any suggestions appreciated, as this problem has me completely stalled, since I can't get a release out.

推荐答案

对我来说,已解决的问题是从我的Podfile中删除了一行,然后重新运行 pod安装.

For me what fixed it was removing one line from my Podfile and rerun pod install.

platform :ios, '11.0'

我认为Pod的版本与我的目标版本不符,导致出现此问题.

I think the version of the pods was not aligned with the version of my target, causing this issue.

更多推荐

“没有这样的模块"存档时出错

本文发布于:2023-11-26 06:51:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1633079.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模块   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!