简体   繁体   中英

Archive falied in Jenkins

I am trying to integrate CI & CD for my iOS project. I have setup Jenkins but when I am trying to get Archive I am getting below error

warning: non-portable path to file /Users/gavishal/.jenkins/workspace/DemoApp/bank42/bank42/PrecompiledHeader.pch"'; specified path differs in case from file name on disk [-Wnonportable-include-path]

include "/Users/gavishal/.jenkins/workspace/DemoApp/bank42/Bank42/PrecompiledHeader.pch"

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"/Users/gavishal/.jenkins/workspace/DemoApp/bank42/bank42/PrecompiledHeader.pch"

** ARCHIVE FAILED **

The following build commands failed: CompileC /Users/gavishal/Library/Developer/Xcode/DerivedData/bank42-aptdjjajsubwnddzbvkqkcjtmawh/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/bank42.build/Debug-iphoneos/MyApp.build/Objects-normal/armv7/AppDelegate.o /Users/gavishal/.jenkins/workspace/DemoApp/bank42/bank42/AppDelegate.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler

I can't understand what am I doing wrong here.

Please guide me what am I doing wrong here. Any suggestion would be better.

Run the following commands on the machine where you are trying to build from the commands line and everything should fall in place.

rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf ~/Library/Caches/com.apple.dt.Xcode

Be kind enough to use sudo if you have to :)

The problem you are having is because of the derived data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM