Cocoapod Xcode Workspace -Swift and Objective -C源文件

发布于 2025-02-08 11:15:58 字数 368 浏览 1 评论 0原文

首次尝试创建一个可可录项目。 我使用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?

Workspace hierarchy

TIA
Mark

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

洛阳烟雨空心柳 2025-02-15 11:15:58

第二天早上醒来,找到了答案。
对不起,流量。
编辑xxx-umbrella.h文件。

Woke up next morning and found the answer.
Sorry for the traffic.
Edit the XXX-umbrella.h file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文