【问题标题】:Titanium Appcelerator Module with FastPDFKit fails to be built无法构建带有 FastPDFKit 的 Titanium Appcelerator 模块
【发布时间】:2012-05-17 10:16:13
【问题描述】:

我正在尝试使用 FastPDFKit 创建 Appcelerator 模块。我已经用 XCode 中的演示代码测试了这个模块并且它正在工作。所以,我开始为它实现模块。

我已完成文档中显示的所有步骤以集成 SDK:

  1. 创建了钛模块。并打开为此创建的 XCode 项目 模块。
  2. 已将FastPdfKit.embeddedframework 复制到Othe sources 目录。
  3. 将代码从 FastPdfKit.embeddedframework\Resources\Snippets.txt 进入 特别是 .h.m 文件。
  4. 设置配置并从项目的info 选项卡中选择FastPdfKitFramework

但是当我尝试构建模块时,我在 #import "ReaderViewController.h" 上收到一个错误,显示 ReaderViewController.h file not found. 我不知道为什么这个错误只发生在模块开发中以及为什么它没有在 XCode 中发生演示项目的来源。有没有其他设置?请让我知道是否有任何事情可以帮助我,或者只是给我关于 how to integrate custom libraries for Appcelerator modules 的建议。

【问题讨论】:

    标签: appcelerator-mobile titanium-modules


    【解决方案1】:

    我已关注 Tutorial 2 @ this Tutorials。我在 Target Dependencies 文件中添加了 FPKReaderLib,在 Extra resources 文件夹中添加了 .bundle。但是这一次,当我尝试导入 FastPdfKit.h 时,我收到关于 File not found 的错误。因此,另外,我在 Module target 以及 Projectbuild settingsUser Header Search Path 中添加了路径。

    /Backup/Titanium\ Apps/FastPdfKit

    /Backup/Titanium\ Apps/FastPdfKit/Classes

    /Backup/Titanium\ Apps/FastPdfKit/FPKCore

    一旦我添加了这些路径,我就会收到很多错误,例如 Expected Identifier or ')', missing context for method declaration, expected method body, etc. 这些所有错误都显示在库文件中。请任何人告诉我如何解决它们。事件它在float 变量类型上显示错误。

    【讨论】:

    • 我已经联系了 Appcelerator 支持论坛并为此提出了请求。最近我收到了回复,这对我来说没问题,并使我的构建成功。但是当我尝试测试它时,“Titanium Run”它给了我“i386的未定义符号:...”的错误代码中使用的几个类。
    • Titanium 的人告诉我,这个框架不能与 Titanium Module 集成。它使用与 Titanium 相同的类“AudioStreamer”。我不知道这是什么意思。
    • 我离开了这个框架的使用。它不能用这个框架构建模块。 “AudioStreamer”是 Appcelerator 使用的框架,所以我们使用它时会出现重复错误。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-10-05
    • 1970-01-01
    • 1970-01-01
    • 2013-04-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多