我有一个添加了 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)
最佳答案
错误最有可能发生是因为 .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/