首页 > 解决方案 > 伞框架 - 未找到嵌套框架的标头

问题描述

我正在尝试在不使用 pod 的情况下构建https://github.com/dji-sdk/Mobile-UXSDK-Beta-iOS,而是自己创建 xcode 工作区。

我可以成功构建包含所有嵌套框架的伞形框架,但是当我在我的应用程序中导入这个框架时。我得到错误:

UXSDKCore/UXSDKCore.h' file not found

由于某些原因,嵌套框架中的所有标头都不会复制到最终的伞形框架中。但是当我检查 DerivedData 中的各个框架时,那些公共标头就在那里,只是没有复制到最终的伞形框架中。

有“伞头” DJIUXSDKBeta.h

#import <UIKit/UIKit.h>
#import <DJISDK/DJISDK.h>

//! Project version number for DJIUXSDK.
FOUNDATION_EXPORT double DJIUXSDKVersionNumber;

//! Project version string for DJIUXSDK.
FOUNDATION_EXPORT const unsigned char DJIUXSDKVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <DJIUXSDK/PublicHeader.h>

#import <UXSDKCore/UXSDKCore.h>
#import <UXSDKFlight/UXSDKFlight.h>
#import <UXSDKMap/UXSDKMap.h>
#import <UXSDKAccessory/UXSDKAccessory.h>

阅读该声明In this header, you should import all the public headers of your framework using statements,我认为 xcode 以某种方式发挥了作用,我不需要包含这些标头,但 nada.

标签: iosswiftxcode

解决方案


推荐阅读