注:只是其中一种情况,做记录用,不喜勿喷。

背景:工程中导入使用C、C++等编写的库或者文件。

现象:iOS开发之Debug之Unknown type name

解决方法:

在头文件中使用

#ifdef __OBJC__

#import <Foundation/Foundation.h>

#import <UIKit/UIKit.h>

#import"xxxx.h"

#endif

相关文章:

  • 2022-12-23
  • 2021-12-10
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2021-05-06
  • 2021-07-21
  • 2022-12-23
猜你喜欢
  • 2021-06-23
  • 2021-05-09
  • 2021-09-10
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2022-02-09
相关资源
相似解决方案