找不到Swift模块映射文件

时间:2020-05-14 04:50:51

标签: swift xcode frameworks cocoapods carthage

所以我开始将项目从可可足类转换为迦太基,然后我开始使用cryptoSwift。我已经做过一千遍了,但是这次我得到了:

    <unknown>:0: error: module map file '/Users/user/Library/Developer/Xcode/DerivedData/name-ditwjskujinmcmbfwjaeagfywgvu/Build/Products/Debug-iphonesimulator/CryptoSwift/CryptoSwift.modulemap' not found
<unknown>:0: error: module map file '/Users/user/Library/Developer/Xcode/DerivedData/name-ditwjskujinmcmbfwjaeagfywgvu/Build/Products/Debug-iphonesimulator/CryptoSwift/CryptoSwift.modulemap' not found
<unknown>:0: error: module map file '/Users/user/Library/Developer/Xcode/DerivedData/name-ditwjskujinmcmbfwjaeagfywgvu/Build/Products/Debug-iphonesimulator/CryptoSwift/CryptoSwift.modulemap' not found
<unknown>:0: error: module map file '/Users/user/Library/Developer/Xcode/DerivedData/name-ditwjskujinmcmbfwjaeagfywgvu/Build/Products/Debug-iphonesimulator/CryptoSwift/CryptoSwift.modulemap' not found
<unknown>:0: error: module map file '/Users/user/Library/Developer/Xcode/DerivedData/name-ditwjskujinmcmbfwjaeagfywgvu/Build/Products/Debug-iphonesimulator/CryptoSwift/CryptoSwift.modulemap' not found
<unknown>:0: error: module map file '/Users/user/Library/Developer/Xcode/DerivedData/name-ditwjskujinmcmbfwjaeagfywgvu/Build/Products/Debug-iphonesimulator/CryptoSwift/CryptoSwift.modulemap' not found
<unknown>:0: error: module map file '/Users/user/Library/Developer/Xcode/DerivedData/name-ditwjskujinmcmbfwjaeagfywgvu/Build/Products/Debug-iphonesimulator/CryptoSwift/CryptoSwift.modulemap' not found
<unknown>:0: error: module map file '/Users/user/Library/Developer/Xcode/DerivedData/name-ditwjskujinmcmbfwjaeagfywgvu/Build/Products/Debug-iphonesimulator/CryptoSwift/CryptoSwift.modulemap' not found
<unknown>:0: error: module map file '/Users/user/Library/Developer/Xcode/DerivedData/name-ditwjskujinmcmbfwjaeagfywgvu/Build/Products/Debug-iphonesimulator/CryptoSwift/CryptoSwift.modulemap' not found
<unknown>:0: error: module map file '/Users/user/Library/Developer/Xcode/DerivedData/name-ditwjskujinmcmbfwjaeagfywgvu/Build/Products/Debug-iphonesimulator/CryptoSwift/CryptoSwift.modulemap' not found
<unknown>:0: error: module map file '/Users/user/Library/Developer/Xcode/DerivedData/name-ditwjskujinmcmbfwjaeagfywgvu/Build/Products/Debug-iphonesimulator/CryptoSwift/CryptoSwift.modulemap' not found
<unknown>:0: error: module map file '/Users/user/Library/Developer/Xcode/DerivedData/name-ditwjskujinmcmbfwjaeagfywgvu/Build/Products/Debug-iphonesimulator/CryptoSwift/CryptoSwift.modulemap' not found
12 errors generated.
<unknown>:0: error: failed to emit precompiled header '/Users/user/Library/Developer/Xcode/DerivedData/slappiOS-ditwjskujinmcmbfwjaeagfywgvu/Build/Intermediates.noindex/PrecompiledHeaders/the-Bridging-Header-swift_3GGM83YCQRDVU-clang_1Y97NZ8UJF7VF.pch' for bridging header '/Users/user/Documents/company/something/projectname/the-Bridging-Header.h'

关于这个问题,更奇怪的是,我只为1个方案(我有多个方案)得到这个,但是我所看到的它们之间没有区别。

有人知道为什么吗?

1 个答案:

答案 0 :(得分:-1)

Xcode找不到链接的框架。

删除DerivedData。洒在左肩上。重新整合迦太基。仔细阅读如何将迦太基集成到您的项目中,它有一些陷阱。