我的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.
更多推荐
“没有这样的模块"存档时出错
发布评论