【问题标题】:Titanium build failed钛构建失败
【发布时间】:2016-05-25 09:04:55
【问题描述】:

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

[错误] : ** 构建失败 **

[ERROR] : 以下构建命令失败:

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

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

[错误]:(2 次失败)

【问题讨论】:

    标签: ios module appcelerator appcelerator-titanium


    【解决方案1】:

    这个错误很可能是因为.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

    如果还是不行,请链接你正在开发的模块。

    【讨论】:

      猜你喜欢
      • 2021-06-20
      • 2021-08-05
      • 2021-11-11
      • 2021-04-27
      • 1970-01-01
      • 2022-07-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多