使用cocoapods在bridging-Header中导入pod时无法构建模块错误

时间:2016-03-10 11:09:24

标签: objective-c swift cocoapods

使用可可豆荚在桥接标题中导入pod时出现以下错误。

在podfile中添加 use_frameworks!

/Users/harsha/Desktop/podTests/podTests/podTests-Bridging-Header.h:6:9: note: while building module 'DesignSystem' imported from /Users/harsha/Desktop/podTests/podTests/podTests-Bridging-Header.h:6:
#import <DesignSystem/PBDesignSystem.h>
        ^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/harsha/Desktop/podTests/Build/Products/Debug-iphonesimulator/DesignSystem.framework/Headers/DesignSystem-umbrella.h"
        ^
/Users/harsha/Desktop/podTests/Build/Products/Debug-iphonesimulator/DesignSystem.framework/Headers/DesignSystem-umbrella.h:13:9: note: in file included from /Users/harsha/Desktop/podTests/Build/Products/Debug-iphonesimulator/DesignSystem.framework/Headers/DesignSystem-umbrella.h:13:
#import "PBDesignSystem.h"
        ^
/Users/harsha/Desktop/podTests/Build/Products/Debug-iphonesimulator/DesignSystem.framework/Headers/PBDesignSystem.h:10:9: error: 'PBDesignSystem/PBFont.h' file not found
#import <PBDesignSystem/PBFont.h>
        ^
/Users/harsha/Desktop/podTests/podTests/podTests-Bridging-Header.h:6:9: error: could not build module 'DesignSystem'
#import <DesignSystem/PBDesignSystem.h>
        ^
<unknown>:0: error: failed to import bridging header '/Users/harsha/Desktop/podTests/podTests/podTests-Bridging-Header.h'

0 个答案:

没有答案