集成第三方框架时,Titanium模块构建失败

时间:2015-03-30 13:05:47

标签: iphone appcelerator titanium-alloy titanium-modules

我正在尝试整合第三方框架" LTU"用于图像处理。这个SDK集成到模块中的方式与我过去的经历略有不同。 SDK需要将整个xcode项目(这是框架本身)复制到模块中。

现在,当我尝试构建模块时,它会抛出错误,指出框架不存在于路径上。请参阅完整的错误日志:

invindmac6s-iMac:iphone paresh.thakor$ clear

invindmac6s-iMac:iphone paresh.thakor$ ./build.py
[WARN] please update the manifest key: 'copyright' to a non-default value
[WARN] please update the manifest key: 'license' to a non-default value
[WARN] please update the manifest key: 'copyright' to a non-default value
[WARN] please update the LICENSE file with your license text before distributing
Build settings from command line:
    SDKROOT = iphoneos8.1

2015-03-30 17:58:18.581 xcodebuild[61617:1682350] [MT] DVTAssertions: Warning in /SourceCache/IDEFrameworks/IDEFrameworks-6611/IDEFoundation/SourceControl/Model/IDESourceControlManager.m:423
Details:  Error Domain=com.apple.dt.IDESourceControlErrorDomain Code=-1 "Missing extension: public.vcs.subversion" UserInfo=0x7ff08954d6e0 {NSLocalizedDescription=Missing extension: public.vcs.subversion}
Object:   <IDESourceControlManager: 0x7ff08bcfb6e0>
Method:   -loadRepositories
Thread:   <NSThread: 0x7ff089403f50>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2015-03-30 17:58:18.643 xcodebuild[61617:1682350] [MT] IDELogStore: Log record's backing file ("/Users/paresh.thakor/Library/Developer/Xcode/DerivedData/LTUiOS-hgdzwjjxjorkmwatuqekdkbjheyl/Logs/Build/F0A63082-8D50-417C-805B-1B84F9CF63EA.xcactivitylog") is missing. Skipping.
2015-03-30 17:58:18.644 xcodebuild[61617:1682350] [MT] IDELogStore: Log record's backing file ("/Users/paresh.thakor/Library/Developer/Xcode/DerivedData/LTUiOS-hgdzwjjxjorkmwatuqekdkbjheyl/Logs/Build/33D52D5C-E146-4A0F-BEB2-AC4A6CDC2BBA.xcactivitylog") is missing. Skipping.
2015-03-30 17:58:18.644 xcodebuild[61617:1682350] [MT] IDELogStore: Log record's backing file ("/Users/paresh.thakor/Library/Developer/Xcode/DerivedData/LTUiOS-hgdzwjjxjorkmwatuqekdkbjheyl/Logs/Build/BCCEC865-598B-4C92-A37B-2CCB12A7220E.xcactivitylog") is missing. Skipping.
2015-03-30 17:58:18.644 xcodebuild[61617:1682350] [MT] IDELogStore: Log record's backing file ("/Users/paresh.thakor/Library/Developer/Xcode/DerivedData/LTUiOS-hgdzwjjxjorkmwatuqekdkbjheyl/Logs/Build/8C23F2B2-CD26-4FA6-8932-AC95A6F5431A.xcactivitylog") is missing. Skipping.
2015-03-30 17:58:18.645 xcodebuild[61617:1682350] [MT] IDELogStore: Log record's backing file ("/Users/paresh.thakor/Library/Developer/Xcode/DerivedData/LTUiOS-hgdzwjjxjorkmwatuqekdkbjheyl/Logs/Build/432B5641-C681-432F-9797-632210CA0D03.xcactivitylog") is missing. Skipping.
2015-03-30 17:58:18.645 xcodebuild[61617:1682350] [MT] IDELogStore: Log record's backing file ("/Users/paresh.thakor/Library/Developer/Xcode/DerivedData/LTUiOS-hgdzwjjxjorkmwatuqekdkbjheyl/Logs/Build/2FCDDE5D-E9DA-4F89-8484-863761130107.xcactivitylog") is missing. Skipping.
2015-03-30 17:58:18.645 xcodebuild[61617:1682350] [MT] IDELogStore: Log record's backing file ("/Users/paresh.thakor/Library/Developer/Xcode/DerivedData/LTUiOS-hgdzwjjxjorkmwatuqekdkbjheyl/Logs/Build/84ED421F-771F-42B5-BF82-B2264B4ACCF6.xcactivitylog") is missing. Skipping.
2015-03-30 17:58:18.645 xcodebuild[61617:1682350] [MT] IDELogStore: Log record's backing file ("/Users/paresh.thakor/Library/Developer/Xcode/DerivedData/LTUiOS-hgdzwjjxjorkmwatuqekdkbjheyl/Logs/Build/9839AC5F-F5F8-4FDD-B692-87DACFEECA11.xcactivitylog") is missing. Skipping.
2015-03-30 17:58:18.646 xcodebuild[61617:1682350] [MT] IDELogStore: Log record's backing file ("/Users/paresh.thakor/Library/Developer/Xcode/DerivedData/LTUiOS-hgdzwjjxjorkmwatuqekdkbjheyl/Logs/Build/27407B36-9F1A-421F-8E82-DE481A50AA4B.xcactivitylog") is missing. Skipping.
2015-03-30 17:58:18.646 xcodebuild[61617:1682350] [MT] IDELogStore: Log record's backing file ("/Users/paresh.thakor/Library/Developer/Xcode/DerivedData/LTUiOS-hgdzwjjxjorkmwatuqekdkbjheyl/Logs/Build/4848BA39-10CD-4DD5-94EB-473EB1A1137E.xcactivitylog") is missing. Skipping.
=== BUILD TARGET LTUiOS OF PROJECT LTUiOS WITH CONFIGURATION Release ===

Check dependencies

Libtool build/LTUiOS.build/Release-iphoneos/LTUiOS.build/Objects-normal/armv7/libComInvestisLtu.a normal armv7
    cd /Source/Titanium_Studio_Workspace/LTUiOS/iphone
    export IPHONEOS_DEPLOYMENT_TARGET=6.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only armv7 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -L/Source/Titanium_Studio_Workspace/LTUiOS/iphone/build/Release-iphoneos -L/Source/Titanium_Studio_Workspace/LTUiOS/iphone/LTUSDK/Build/Products/Debug-iphonesimulator -filelist /Source/Titanium_Studio_Workspace/LTUiOS/iphone/build/LTUiOS.build/Release-iphoneos/LTUiOS.build/Objects-normal/armv7/ComInvestisLtu.LinkFileList /Source/Titanium_Studio_Workspace/LTUiOS/iphone/LTUSDK/Build/Products/Release-iphoneos/libLTUSDK-lib.a -framework CoreVideo -framework CoreImage -framework CoreMedia -framework AVFoundation -framework Foundation -o /Source/Titanium_Studio_Workspace/LTUiOS/iphone/build/LTUiOS.build/Release-iphoneos/LTUiOS.build/Objects-normal/armv7/libComInvestisLtu.a
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Source/Titanium_Studio_Workspace/LTUiOS/iphone/LTUSDK/Build/Products/Release-iphoneos/libLTUSDK-lib.a (No such file or directory)

Libtool build/LTUiOS.build/Release-iphoneos/LTUiOS.build/Objects-normal/arm64/libComInvestisLtu.a normal arm64
    cd /Source/Titanium_Studio_Workspace/LTUiOS/iphone
    export IPHONEOS_DEPLOYMENT_TARGET=6.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only arm64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -L/Source/Titanium_Studio_Workspace/LTUiOS/iphone/build/Release-iphoneos -L/Source/Titanium_Studio_Workspace/LTUiOS/iphone/LTUSDK/Build/Products/Debug-iphonesimulator -filelist /Source/Titanium_Studio_Workspace/LTUiOS/iphone/build/LTUiOS.build/Release-iphoneos/LTUiOS.build/Objects-normal/arm64/ComInvestisLtu.LinkFileList /Source/Titanium_Studio_Workspace/LTUiOS/iphone/LTUSDK/Build/Products/Release-iphoneos/libLTUSDK-lib.a -framework CoreVideo -framework CoreImage -framework CoreMedia -framework AVFoundation -framework Foundation -o /Source/Titanium_Studio_Workspace/LTUiOS/iphone/build/LTUiOS.build/Release-iphoneos/LTUiOS.build/Objects-normal/arm64/libComInvestisLtu.a
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Source/Titanium_Studio_Workspace/LTUiOS/iphone/LTUSDK/Build/Products/Release-iphoneos/libLTUSDK-lib.a (No such file or directory)

** BUILD FAILED **


The following build commands failed:
    Libtool build/LTUiOS.build/Release-iphoneos/LTUiOS.build/Objects-normal/armv7/libComInvestisLtu.a normal armv7
    Libtool build/LTUiOS.build/Release-iphoneos/LTUiOS.build/Objects-normal/arm64/libComInvestisLtu.a normal arm64
(2 failures)
xcodebuild failed
invindmac6s-iMac:iphone paresh.thakor$ 

构建后构建的框架会在构建后进入products文件夹,但编译器会尝试在错误提到的路径中找到它。

检查我的目录结构是否附在此处。 enter image description here

Module.xcconfig:

//
// PLACE ANY BUILD DEFINITIONS IN THIS FILE AND THEY WILL BE 
// PICKED UP DURING THE APP BUILD FOR YOUR MODULE
//
// see the following webpage for instructions on the settings
// for this file:
// http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/XcodeBuildSystem/400-Build_Configurations/build_configs.html
// 

//
// How to add a Framework (example)
//
// OTHER_LDFLAGS=$(inherited) -framework Foo
//
// Adding a framework for a specific version(s) of iPhone:
//
// OTHER_LDFLAGS[sdk=iphoneos4*]=$(inherited) -framework Foo
// OTHER_LDFLAGS[sdk=iphonesimulator4*]=$(inherited) -framework Foo
//
OTHER_LDFLAGS=$(inherited) -framework libLTUSDK-lib.a -framework CoreVideo -framework CoreImage -framework CoreMedia -framework AVFoundation -framework Foundation
//
// How to add a compiler define:
//
// OTHER_CFLAGS=$(inherited) -DFOO=1
//
//
// IMPORTANT NOTE: always use $(inherited) in your overrides
// 

如果此处有任何问题,请纠正我。

0 个答案:

没有答案