ios - Swift 编译器 - Xcode 9.1 中缺少常规

标签 ios swift xcode bridging-header xcode9.1

我试图在 target -> Build settings -> Objective C Bridging header

中提供桥接 header

我可以使用使用 Xcode 9

创建的项目来做到这一点

enter image description here

但我在 Xcode 9.1 中找不到 Objective C Bridging header。它在 Xcode 9.1 中创建的项目中丢失,如下所示。

enter image description here

最佳答案

确保您的build设置被选择为“全部”“组合”看下图

enter image description here

点击上图看得更清楚。只需在搜索栏中搜索 “bridg”,您就会看到 Objective C Bridging header

关于ios - Swift 编译器 - Xcode 9.1 中缺少常规,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47473381/

相关文章:

iphone - 尝试将照片库中的图像保存到 iPad 应用程序包中

ios - 通过在 iOS 中点击弹出 View 之外的任意位置来设置选择器值

ios - Swift 以编程方式向按钮添加显示操作

swift - 现有 Realm 数据库无法在 swift 3.1 xcode 8 中工作

ios - UITableViewCell 在点击时突出显示

C++ for循环不会改变变量

ios - 在 UIWebView 中仅加载网站上的 div

ios - Collection View 不会每次都重新加载

ios - 从 UITableViewController 重新加载 tableView

swift - graphql apollo 无法运行脚本