gpt4 book ai didi

ios - 错误 : failed to import bridging header when trying to Archive

转载 作者:行者123 更新时间:2023-11-28 08:28:10 27 4
gpt4 key购买 nike

我正在尝试存档我的项目,但我不能,因为这个错误:

/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

但没有任何效果。

这是框架和头文件的位置:

location

我也在 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。

如何解决该问题以存档项目?

最佳答案

确保在“实用工具”面板 ->“目标成员资格”中为您尝试归档的目标勾选了框架复选框:

Target Membership

关于ios - 错误 : failed to import bridging header when trying to Archive,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39460095/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com