ios - 如何读取 Classes 文件夹中的 Header 以在我自己的 cocoapods 中使用?

标签 ios objective-c swift header cocoapods

我制作了 Say 类以便在 Cocoapods 中使用,该类需要这样的标题:
enter image description here

还有我的 header.h:

#import <CommonCrypto/CommonCryptor.h>
#import <CommonCrypto/CommonDigest.h>
#import <CommonCrypto/CommonHMAC.h>  

但是说类没有读取 Header.h
如何解决这个问题并将其添加到 Objective-C 桥接 header ?

最佳答案

请使用如下命名在您的项目中添加桥接 header 类

<#YourProjectName>-Bridging-Header.h

在此导入项目文件中所需的所有框架头文件类。

关于ios - 如何读取 Classes 文件夹中的 Header 以在我自己的 cocoapods 中使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44128638/

相关文章:

objective-c - 实时gif解码的乐趣

ios - 如何将手势和动画结合在一起

objective-c - 为 xcode 中的所有类设置全局图像

objective-c - MPMediaItem 和 iTunes Match

swift - 基于 View 的 NSTableView 不显示单元格内容

swift 。将 UIImagePicker 的委托(delegate)作为参数传递

iOS : pan around within a view

ios - swift ,线程 1 : EXC_BAD_INSTRUCTION error

objective-c - UIView 模态弹出窗口带有嵌入式 UITableView 和 UIToolbar,工具栏随表格移动

ios - 如何为 iCarousel 提供可访问的滑动操作