简体   繁体   English

在Xcode中存档时找不到模块,但在“运行”期间找到模块

[英]Cannot find module when Archiving in Xcode, but module is found during “Run”

I installed Heap Analytics manually by copy and pasting the files over (and then added it to bridging header). 我通过复制和粘贴文件手动安装了Heap Analytics(然后将其添加到桥接头)。

When I run on a device, everything builds fine. 当我在设备上运行时,一切都很好。 However, when I archive, the error is "No such module Heap". 但是,当我存档时,错误是“没有这样的模块堆”。

Why is Archiving different than Running? 为什么Archiving与Running不同? Am I missing some configuration during the archiving process? 我在归档过程中错过了一些配置吗? As far as I know, nothing has been touched. 据我所知,没有任何事情被触及过。

我为Heap工作,并希望传递海报最终发现删除DerivedData文件夹中的数据清除了错误:

rm -frd ~/Library/Developer/Xcode/DerivedData/*

I could not compile the line: @import JavaScriptCore; 我无法编译该行: @import JavaScriptCore; and the error given was Module 'JavaScriptCore' not found . 并且给出的错误是Module 'JavaScriptCore' not found For me it was only necessary to delete the folder: ModuleCache . 对我来说,只需要删除文件夹: ModuleCache
The path was: ~/Library/Developer/Xcode/DerivedData/ModuleCache/ 路径是: ~/Library/Developer/Xcode/DerivedData/ModuleCache/

In Terminal: rm -rf ~/Library/Developer/Xcode/DerivedData/ModuleCache/* 在终端: rm -rf ~/Library/Developer/Xcode/DerivedData/ModuleCache/*

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

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