2016-07-07 41 views
0

我正在使用私有可可豆並且項目生成並運行良好,當我嘗試在集成中運行機器人時發生此問題。我剛開始建立一個構建服務器(使用OS X服務器和Xcode)。執行持續集成時未找到頭文件

這裏是錯誤之一: 集成#HM移動資產博特 打開在Xcode的4:xcbot:// Xcode的CI服務器/:對HM移動資產博特(10 APIClient.h誤差) 博特問題BOTID/6b81ceecaf09d4f1f4bdc2c592001f27/integrationID/6b81ceecaf09d4f1f4bdc2c5920c5565

斷言: 'SAKKit/HMAPIClient.h' 找不到文件 文件:移動資產IOS/HM移動資產/應用程序類/ APIClient.h:10

推出了3款整合前

此集成的完整日誌已附加。

這裏是日誌:

===分析項目HM移動資產TARGET HM移動資產配置版本===

CompileC /庫/開發商/ XcodeServer /集成/緩存/ 6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Intermediates/HM \ Mobile \ Assets.build/Release-iphonesimulator/HM \ Mobile \ Assets.build/Objects-normal/i386/Unit.o HM \ Mobile \ Assets/Model \ Classes/Unit.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios export LA NG = en_US.US-ASCII export PATH =「/ Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin: /Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin「 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length = 0 -fdiagnostics-show-note-include-stack -fmacro -backtrace-limit = 0 -std = gnu99 -fobjc -a -fmodules -fmodules-cache -path =/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/ModuleCache -fmodules-prune-interval = 86400 -fmodules-prune-after = 345600 -fbuild-session-file =/Library/Developer/XcodeServer/Integrations /Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-per-build-session -Wnon-modular-include-in-framework-module -Werror = non-m odular-include-in-framework-module -Wno-trigraphs -fascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror = return-type -Wunreachable-code -Wno- implicit-atomic-properties -Werror = deprecated-objc-isa-usage -Werror = objc-root-class -Wno-arc-repeated-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses - Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-常量-Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Winterinter-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector- match -Wundeclared-selector -Wno-deprecated-implementation -DCOCOAPODS = 1 -DNS_BLOCK_ASSERTIONS = 1 -DOBJC_OLD_DISPATCH_PROTOTYPES = 0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3。 sdk -fasm-bloc ks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version -min = 9.0 -g -fvisibility = hidden -Wno-sign-conversion -fobjc -abi-version = 2 -fobjc-legacy-dispatch -iquote/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Intermediates/HM \ Mobile \ Assets.build/Release-iphonesimulator/HM \ Mobile \ Assets.build/HM \ Mobile \ Assets-generated-files.hmap - I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Intermediates/HM \ Mobile \ Assets。build/Release-iphonesimulator/HM \ Mobile \ Assets.build/HM \ Mobile \ Assets-own-target-headers.hmap -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceef09d4f1f4bdc2c592001f27/DerivedData/Build/Intermediates/HM \ Mobile \ Assets.build/Release-iphonesimulator/HM \ Mobile \ Assets.build/HM \ Mobile \ Assets-all-target-headers.hmap -iquote/Library/Developer/XcodeServer/Integrations/Caches/6b81ceef09d4f1f4bdc2c592001f27/DerivedData/Build /中間體/ HM \ Mobile \ Assets.build/Release-iphonesimulator/HM \ Mobile \ Assets.build/HM \ Mobile \ Assets-project-headers.hmap -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Products/Release-iphonesimulator/include -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/AFNetworking -I/Librar y/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/AFOAuth2Manager -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/Crashlytics -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/Fabric -I/Library/Developer/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/MBProgressHUD -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/MagicalRecord -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/SAKKit -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/SSKeychain -I/Library /開發人員/ XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Intermediates/HM \ Mobile \ Assets.build/Release-iphonesimulator/HM \ Mobile \ Assets.build/DerivedSources/i386 -I/Library/Developer/XcodeServer/Integrations/Cached/6b81ceef09d4f1f4bdc2c592001f27/DerivedData/Build/Intermediates/HM \ Mobile \ Assets.build/Release-iphonesimulator/HM \ Mobile \ Assets.build/DerivedSources -F/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Products/Release-iphonesimulator -F/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Crashlytics/iOS -F/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27 /移動資產-ios/Pods/Fabric/iOS -isystem/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public -isystem/Library/Developer/XcodeServer/Integrations /高速緩存s/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/AFNetworking -isystem/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/AFOAuth2Manager - isystem/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/Crashlytics -isystem/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/ios/Pods/Headers/Public/Fabric -isystem/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/MBProgressHUD -isystem/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/MagicalRecord -isystem/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/SAKKit - ISYSTEM/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/SSKeychain -MMD -MT dependencies -MF/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Intermediates/HM \ Mobile \ Assets.build/Release-iphonesimulator/HM \ Mobile \ Assets.build/Objects-normal/i386/Unit.d --serialize-diagnostics/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Intermediates/HM \ Mobile \ Assets.build/Release-iphonesimulator/HM \ Mobile \ Assets.build/Objects-normal/i386/Unit.dia -c/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/HM \ Mobile \ Assets/Model \ Classes/Unit.m -o/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Intermediates/HM \ Mobile \ Assets.build/Release-iphonesimulator/HM \ Mobile \ Assets.build/Objects-normal/i386/Unit。11: /庫/開發/ XcodeServerØ

在文件從/庫/開發商/ XcodeServer /集成/緩存/ 6b81ceecaf09d4f1f4bdc2c592001f27 /來源/移動資產IOS/HM移動資產/模型類/ Unit.m包括/集成/緩存/ 6b81ceecaf09d4f1f4bdc2c592001f27 /來源/移動資產IOS/HM移動資產/應用程序類/ APIClient.h:10:9:致命錯誤:沒有發現 'SAKKit/HMAPIClient.h' 文件

進口

^

生成1個錯誤。

回答

0

從來沒有得到這個工作與當地的豆莢。文件路徑問題很多。最後決定調整podspec以從我們的私人git回購中拉出。在做完這些並在Podfile中進行所需的更改後,現在就可以使用了。如果您嘗試使用本地私有cocoapod並在運行集成時遇到路徑問題,請將該引用移動到某處的git服務器並調整Podfile。作爲參考,這裏是我podspec:

Pod::Spec.new do |s| 
    s.name  = "SAKKit" 
    s.version = "1.0.0" 
    s.summary = "SUMMARY HERE" 
    s.source = { :git => "https://YOURGITSERVER/sakkit-ios.git" } 
    s.platform  = :ios, '8.0' 
    s.requires_arc = true 
    s.author = { "NAME" => "EMAIL" } 
    s.homepage  = "HOMEPAGE" 
    s.public_header_files = 'SAKKit/**/*.h' 
    s.source_files = 'SAKKit/**/*.{h,m}' 

    s.dependency 'AFNetworking', '2.6.3' 
    s.dependency 'AFOAuth2Manager' 
    s.dependency 'SSKeychain' 

end 

這裏是Podfile工作區:

target 'MYAPP-Prod' do 
    pod 'SAKKit', :git => 'https://YOURGITSERVER/sakkit-ios.git' 
    pod 'Fabric' 
    pod 'Crashlytics' 
end 

target 'MYAPP-InHouse' do 
    pod 'SAKKit', :git => 'https://YOURGITSERVER/sakkit-ios.git' 
    pod 'Fabric' 
    pod 'Crashlytics' 
end