我正在尝试在iOS小部件中使用Firestore。当我运行pod update然后清理,构建时,我得到以下信息:
error: unable to read module map contents from 'Target Support Files/GoogleUtilities/GoogleUtilities.modulemap': Error Domain=NSCocoaErrorDomain Code=260 "The file “GoogleUtilities.modulemap” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/James/Documents/Development/INDX420/Pods/Target Support Files/GoogleUtilities/GoogleUtilities.modulemap, NSUnderlyingError=0x7fb732c13f30 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
警告:未找到目标“ GoogleUtilities”的总体标头,将不会生成模块映射
有想法吗?
编辑:在第一次处理Facebook API问题之后,我解决了这个问题。无论如何,它现在可以编译我的主要目标,但由于该错误而立即死亡
dyld: Symbol not found: _OBJC_CLASS_$_GULAppDelegateSwizzler
引用自:/Users/James/Library/Developer/CoreSimulator/Devices/E3EF00D4-577A-43CF-85DC-95209216A72D/data/Containers/Bundle/Application/BC790D62-8CC5-4CF5-9330-4BF6E264BBBB/INDX01.app / INDX01 预期位于:/Users/James/Library/Developer/CoreSimulator/Devices/E3EF00D4-577A-43CF-85DC-95209216A72D/data/Containers/Bundle/Application/BC790D62-8CC5-4CF5-9330-4BF6E264BBBB/INDX01.app/Frameworks/ GoogleUtilities.framework / GoogleUtilities 在/Users/James/Library/Developer/CoreSimulator/Devices/E3EF00D4-577A-43CF-85DC-95209216A72D/data/Containers/Bundle/Application/BC790D62-8CC5-4CF5-9330-4BF6E264BBBB/INDX01.app/INDX01
现在,这是在主要目标中的功能,如果我从小部件目标中取出firestore吊舱,它将起作用。我已经完成了无数次删除所有pod的工作,安装,更新,删除,清理了数十次有关此问题的内容
答案 0 :(得分:0)
请尝试以下步骤:
第一步:
(在Xcode 9.x及更高版本中可能不再需要此步骤)
1.Open Xcode
2.Click Window (Menu Bar)
3.Click Projects
4.Remove all projects (e.g. use backspace)
5.Close Xcode
第二步:
1.Open a terminal app
2.cd ~/Library/Developer/Xcode/DerivedData
3.rm -rf Build/* see below if you have a customized build location
4.rm -rf ModuleCache/*
5.Close a terminal app
第三步:
1.Open Xcode
2.Product > Clean
3.Product > Run