“没有这样的模块"存档时出错 [英] "No such module" error when archiving
问题描述
我的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.
这篇关于“没有这样的模块"存档时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!