Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这里我附上创建的头文件的截图
我在 xcode 中创建了一个新的头文件并将其命名为 (projectname)-Bridging-Header.h。但我无法找到路径并使其工作。如何找到文件的路径?
首先进入项目构建设置,
然后在搜索框中搜索 Swift in
之后,您将在Swift 编译器代码生成区域中找到一个Objective C Bridging Header选项
为此Objective C 桥接头选项添加桥接头路径
路径应为
您还可以在屏幕截图下方找到参考。