【发布时间】:2017-01-20 11:14:52
【问题描述】:
我正在尝试存档我的项目,但我不能,因为这个错误:
/Users/username/Developer/clickbalance/cb-ventas/CB Ventas/CB Ventas/Header.h:12:9: error: 'StarIO_Extension/StarIoExt.h' file not found
#import <StarIO_Extension/StarIoExt.h>
^
<unknown>:0: error: failed to import bridging header '/Users/username/Developer/clickbalance/cb-ventas/CB Ventas/CB Ventas/Header.h'
** ARCHIVE FAILED **
我尝试了所有其他问题所说的关于类似错误的方法:Getting "file not found" in Bridging Header when importing Objective-C frameworks into Swift project
但没有任何效果。
这里是框架和头文件的位置:
我也在Link Binary With Libraries 中链接了.frameworks 文件。
这是我的头文件:
#import <Foundation/Foundation.h>
#ifndef StarIO_Extension_Bridging_Header_h
#define StarIO_Extension_Bridging_Header_h
#import <StarIO_Extension/StarIoExt.h>
#import <StarIO_Extension/StarIoExtManager.h>
#endif /* StarIO_Extension_Bridging_Header_h */
Objective-C Bridging Header 我设置为${PROJECT_DIR}/CB Ventas/Header.h 并设置在目标级别,而不是项目级别
我也在使用 Cocoapods。
我怎样才能解决这个问题来归档项目?
【问题讨论】:
-
@pableiors 你好,你找到解决方案了吗。我也面临同样的问题
标签: ios objective-c swift xcode cocoapods