簡體   English   中英

執行連續集成時找不到頭文件

[英]Header files not found when performing continuous integration

我正在使用一個私人可可豆莢,並且該項目構建並運行良好,當我嘗試在集成中運行機器人時出現了問題。 我剛剛開始設置構建服務器(使用OS X服務器和Xcode)。

這是錯誤之一:HM移動資產Bot的Bot問題(APIClient.h:10中的錯誤)HM移動資產Bot的集成#4在Xcode中打開:xcbot:// Xcode CI Server / botID / 6b81ceecaf09d4f1f4bdc2c592001f27 / integrationID / 6b81ceecaf09d4f1f4bc24

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

引入了3種集成方式

隨附此集成的完整日志。

這是日志:

===使用配置版本分析項目HM移動資產的目標HM移動資產===

CompileC /庫/開發人員/ XcodeServer / Integrations / Caches / 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正常的i386 Objective-c com.apple.compilers.llvm.clang.1_0.compiler cd / Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf09d4f1f4bdc2c592001f27 / Source / mobile-assets- ios export LANG = 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-arc -fmodules -fmodules-cache -path = /庫/開發人員/ XcodeServe r / Integrations / Caches / 6b81ceecaf09d4f1f4bdc2c592001f27 / DerivedData / ModuleCache -fmodules-prune-interval = 86400 -fmodules-prune-after = 345600 -fbuild-session-file = / Library / Developer / XcodeServer / Integrations / Caches / 6b2edc44De2 /Session.modulevalidation -fmodules-validate-on-per-per-build-session -Wnon-modular-include-in-framework-module -Werror = non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror =返回類型-Wunreachable代碼-Wno-implicit-atomic-properties -Werror =不推薦使用-objc-isa-usage -Werror = objc根類-Wno重復使用弱化-Wduplicate-方法匹配-Wno-missing-branchs-括號-Wswitch -Wunused函數-Wnounused標簽-Wnounused參數-Wunused變量-Wunused值-Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-四個字符常量-Wno轉換-Wconstant轉換-Wint轉換 -Wbool轉換-Wenum轉換-Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implements -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-blocks -fstrict-aliasing -Wprotocol -declarations -mios-simulator-version-min = 9.0 -g -fvisibility =隱藏-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 / 6b81ceecaf09d4f1f4bdc2c592001f27 / 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 / 6b81ceecaf09d4f1f4bdc2c592001f27 / DerivedData / Build / Intermediates / 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 / 6b81ceecaf09d4f1f4bdc2c592001fets / Heads / Source / AFNetworking -I / Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf09d 4f1f4bdc2c592001f27 / Source / mobile-assets-ios / Pods / Headers / Public / AFOAuth2Manager -I / Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf09d4f1f4bdc2c592001f27 / Source / mobile-assets-ios / Pods / Irashs / P Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf09d4f1f4bdc2c592001f27 / Source / mobile-assets-ios / Pods / Headers / Public / Fabric -I / Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf09d4f1f4ets-27 Pods / Headers / Public / MBProgressHUD -I / Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf09d4f1f4bdc2c592001f27 / Source / mobile-assets-ios / Pods / Headers / Public / MagicalRecord -I / Library / Developer / XcodeServer / Integration 6b81ceecaf09d4f1f4bdc2c592001f27 / Source / mobile-assets-ios / Pods / Headers / Public / SAKKit -I / Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf09d4f1f4bdc2c592001f27 / Source / mobile-assets-ios / Pic庫/開發人員/ XcodeServer /集成/緩存/ 6b81ceecaf09d4f 1f4bdc2c592001f27 / DerivedData / Build / Intermediates / HM \\ Mobile \\ Assets.build/Release-iphonesimulator/HM \\ Mobile \\ Assets.build/DerivedSources/i386 -I / Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf09d4f1f4bDC2c59中介/ HM \\ Mobile \\ Assets.build/Release-iphonesimulator/HM \\ Mobile \\ Assets.build/DerivedSources -F / Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf09d4f1f4bdc2c592001f27 / DerivedData / Build / Products / Release-iphonesimulator庫/開發人員/ XcodeServer /集成/緩存/ 6b81ceecaf09d4f1f4bdc2c592001f27 / Source / mobile-assets-ios / Pods / Crashlytics / iOS -F / Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf09d4f1f4bdcets / ios-Mobile Fabric / iOS -isystem /庫/開發人員/ XcodeServer / Integrations / Caches / 6b81ceecaf09d4f1f4bdc2c592001f27 / Source / mobile-assets-ios / Pods / Headers / Public -isystem / Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf0924f1b資產一 os / Pods / Headers / Public / AFNetworking -isystem / Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf09d4f1f4bdc2c592001f27 / Source / mobile-assets-ios / Pods / Headers / Public / AFOAuth2Manager -isystem / Library / tegration / Developer / Xcode緩存/ 6b81ceecaf09d4f1f4bdc2c592001f27 /源/ mobile-assets-ios / Pods / Headers / Public / Crashlytics -isystem / Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf09d4f1f4bdc2c592001f27 / Source / Pose-Fabs ISYSTEM /庫/開發商/ XcodeServer /集成/緩存/ 6b81ceecaf09d4f1f4bdc2c592001f27 /來源/移動資產IOS /莢/頭/公/ MBProgressHUD -isystem /庫/開發商/ XcodeServer /集成/緩存/ 6b81ceecaf09d4f1f4bdc2c592001f27 /來源/移動資產 - ios / Pods / Headers / Public / MagicalRecord -isystem / Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf09d4f1f4bdc2c592001f27 / Source / mobile-assets-ios / Pods / Headers / Public / SAKKit -isystem / Library / Developer / Integras / Inners / XcodeServer緩存/ 6b81ce ecaf09d4f1f4bdc2c592001f27 / Source / mobile-assets-ios / Pods / Headers / Public / SSKeychain -MMD -MT依賴項-MF / Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf09d4f1f4bdc2c592001f27 / DerivedData / Build / HMDS \\ HM。 / Release-iphonesimulator / HM \\ Mobile \\ Assets.build/Objects-normal/i386/Unit.d-序列化診斷/ 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。構建/對象正常/i386/Unit.o

在/ Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf09d4f1f4bdc2c592001f27 / Source / mobile-assets-ios / HM Mobile Assets / Model Classs / Unit.m中包含的文件中:11:/ Library / Developer / XcodeServer / Integrations / Caches / 6b81ceecaf4d27f / Source / mobile-assets-ios / HM移動資產/應用程序類/APIClient.h:10:9:致命錯誤:找不到“ SAKKit / HMAPIClient.h”文件

進口

    ^

產生1個錯誤。

從來沒有將此與本地吊艙一起使用。 文件路徑問題比比皆是。 最終決定調整podspec以從我們的私人git repo中提取。 在完成此操作並在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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM