【问题标题】:Twitter Digits 1.15.1 install error (Could not build module 'DigitsKit' || Use of undeclared identifier 'Digits')Twitter Digits 1.15.1 安装错误(无法构建模块 'DigitsKit' || 使用未声明的标识符 'Digits')
【发布时间】:2016-01-27 07:09:38
【问题描述】:

在 iOS 应用中安装 Digits 1.15.1 时,AppDelegate.m 文件中出现以下错误:

  1. 无法在导入语句 #import <DigitsKit/DigitsKit.h> 处构建模块“DigitsKit”
  2. didFinishLaunchingWithOptions 方法中的[Fabric with:@[[Digits class]]] 语句中使用未声明的标识符“数字”

【问题讨论】:

  • 感谢@Melissa Avery-Weir 的编辑

标签: ios objective-c twitter-fabric twitter-digits


【解决方案1】:

导航到项目名称 -> 构建设置 -> Apple LLVM 7.0-Language-Modules

启用模块(C 和 Objective-C) 设置为否(默认 - 是)。

这将解决这两个错误。但它会在 Digits.h 文件中显示另一个错误

解决错误

导航到Digits.h 文件并从所有错误语句中删除__TVOS_UNAVAILABLE

现在构建并运行将生成另一个错误语句的项目。

解决错误

导航到项目名称 -> 构建设置 -> Apple LLVM 7.0-Language-Modules

启用模块(C 和 Objective-C) 设置为是(默认 - 否)。

构建并运行项目,玩得开心。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-12
    • 2014-08-04
    相关资源
    最近更新 更多