【问题标题】:Xcode 7.3 <CoreTelephony/CTCallCenter.h> & <CoreBluetooth/CoreBluetooth.h> file not foundXcode 7.3 <CoreTelephony/CTCallCenter.h> & <CoreBluetooth/CoreBluetooth.h> 文件未找到
【发布时间】:2016-08-06 23:02:27
【问题描述】:

我运行项目很久了。突然它开始出错。我刚刚将 Xcode 更新到 7.3 创建证书并在 iTunes 上上传 App 进行试飞。现在当我运行项目时,它会给出错误“CoreTelephony/CTCallCenter.h 文件未找到”。 我已删除这些文件并再次运行,这次它给出“CoreBluetooth/CoreBluetooth.h 文件未找到”。

框架已经存在于应用中

  • 我已经清理并重建项目,重新启动 xcode,重新启动 pc。
  • 我已将“$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include”行添加到“标题搜索路径”。 但是没有任何效果,那么如何解决这个错误呢?

【问题讨论】:

    标签: ios objective-c core-bluetooth core-telephony xcode7.3


    【解决方案1】:

    Watch OS 2.x 上不存在 CoreBluetooth 和 CoreTelephony。这是我的建议:

    • 在项目设置中定义预处理器宏。在我的情况下是 APPLE_WATCH=1
    • 您的代码现在应该是这样的
    #ifndef APPLE_WATCH
       // YOUR CODE HERE
    #endif
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-08-01
      • 2020-02-02
      • 1970-01-01
      • 1970-01-01
      • 2017-01-10
      • 2018-06-03
      • 2017-01-23
      相关资源
      最近更新 更多