Cocoapod Xcode Workspace -Swift and Objective -C源文件
首次尝试创建一个可可录项目。 我使用Swift语言选项使用了“ POD库创建名称”命令创建标准模板。
我已经在工作区中添加了C文件,但我不知道如何添加桥接标头文件,以便Swift可以导入C功能。
一项尝试导致编译器抱怨在框架中使用桥接标头。 是否可以混合和匹配Swift& (obj-)在同一Cocoapod工作区/项目中的C文件?
tia 标记
First time in trying to create a cocoapod project.
I used 'pod library create name' command creating the standard template, using the swift language option.
I have added in C-files to the workspace but I don't know how to add a bridging header file so swift can import the C functions.
An attempt resulted in the compiler complaining about using a bridging header in a framework.
Is it actually possible to mix and match swift & (obj-)C files in the same cocoapod workspace/project?
TIA
Mark
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
第二天早上醒来,找到了答案。
对不起,流量。
编辑xxx-umbrella.h文件。
Woke up next morning and found the answer.
Sorry for the traffic.
Edit the XXX-umbrella.h file.