ios - 钛构建失败

标签 ios module appcelerator appcelerator-titanium

我有一个添加了 iOS 模块的应用程序。我想要执行一些方法,所以我创建了一个带有方法 (id) doSomething 的代理类; 我保存了对模块的更改并重新打包它——所以旧版本被重写了。现在在尝试构建项目时出现错误:

[ERROR] : ** BUILD FAILED **

[ERROR] : The following build commands failed:

[ERROR] : Ld build/Intermediates/Test.build/Debug-iphonesimulator/Test.build/Objects-normal/i386/Test normal i386

[ERROR] : Ld build/Intermediates/Test.build/Debug-iphonesimulator/Test.build/Objects-normal/x86_64/Test normal x86_64

[ERROR] : (2 failures)

enter image description here

最佳答案

错误最有可能发生是因为 .framework 文件没有正确链接。确保它在 Build Phases 以及您的 module.xcconfig 中链接,如下所示:

FRAMEWORK_SEARCH_PATHS=$(SRCROOT)/../../modules/iphone/ti.googlemaps/1.0.0/platform "~/Library/Application\Support/Titanium/modules/iphone/ti.googlemaps/1.0.0/platform"

OTHER_LDFLAGS =$(inherited) -framework Accelerate -framework AVFoundation -framework CoreBluetooth -framework CoreData -framework CoreGraphics -framework CoreLocation -framework CoreText -framework GLKit -framework ImageIO/usr/lib/libz. dylib/usr/lib/libc++.dylib/usr/lib/libicucore.dylib/usr/lib/libobjc.A.dylib -framework OpenGLES -framework QuartzCore -framework Security -framework SystemConfiguration -framework GoogleMaps

如果仍然无效,请链接您正在处理的模块。

关于ios - 钛构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37432418/

相关文章:

objective-c - 为 CoreAudio 设置效果音频单元

objective-c - 处理推送通知

ios - UIImagePickerController - 将图片裁剪成正方形(纵向)

javascript - Pico 找不到 python 模块

ios - 无法导出 Ad Hoc App Appcellerator Studio

ios - Swift 文件夹为空 - 应用程序被拒绝

ios - 无法在新的 Appcelerator studio 中打包 IOS 应用程序?

ios - 稍后在 View Controller 中更改 UINavigationBar

javascript - 如何在 node.js 中使用原型(prototype)

c - 将 V=s Flage 传播到所有子 makefile