简体   繁体   English

Cocoapod xcode 工作区 - swift 和 Objective-c 源文​​件

[英]Cocoapod xcode workspace - swift and objective-c source files

First time in trying to create a cocoapod project.第一次尝试创建 cocoapod 项目。 I used 'pod library create name' command creating the standard template, using the swift language option.我使用 'pod library create name' 命令创建标准模板,使用 swift 语言选项。

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.我已将 C 文件添加到工作区,但我不知道如何添加桥接头文件,以便 swift 可以导入 C 函数。

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?实际上是否可以在同一个 cocoapod 工作区/项目中混合和匹配 swift & (obj-)C 文件?

工作区层次结构

TIA Mark TIA 标志

Woke up next morning and found the answer.第二天早上醒来,找到了答案。 Sorry for the traffic.对不起交通。 Edit the XXX-umbrella.h file.编辑 XXX-umbrella.h 文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM