Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-24897

Build fails with jenkins XCode Integration Plugin with XCode 6.0.1

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Blocker Blocker
    • xcode-plugin
    • Jenkins version 1.581
      XCode 6.0.1
      XCode Integration Plugin 1.4.2
      OS X 10.9.4

      Build fails with XCode Integration Plugin only. (it builds fine with direct build on Mac with XCode.)

      Error message is as below.

      Please refer to the URL link for similar error with other projects. (not using Jenkins)

      ======================================================================================================
      2014-09-28 15:46:30.057 xcodebuild[27399:4007] error: InputFile /Users/Builder/Documents/jenkins/jenkins_slave/workspace/PRJ_Client/iOS/GameClient/Output/Unity-iPhone Tests/Unity-iPhone Tests-Prefix.pch 0 1407485124 204 33204... malformed line 10; 'InputFile' should have exactly five arguments
      CompileC build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone\ Tests.build/Objects-normal/armv7/Unity_iPhone_Tests.o Unity-iPhone\ Tests/Unity_iPhone_Tests.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
      cd /Users/Builder/Documents/jenkins/jenkins_slave/workspace/PRJ_Client/iOS/GameClient/Output
      export LANG=en_US.US-ASCII
      export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/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 armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -fno-objc-exceptions -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=4.3 -iquote /Users/Builder/Documents/jenkins/jenkins_slave/workspace/PRJ_Client/iOS/GameClient/Output/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone\ Tests.build/prj4kr-generated-files.hmap -I/Users/Builder/Documents/jenkins/jenkins_slave/workspace/PRJ_Client/iOS/GameClient/Output/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone\ Tests.build/prj4kr-own-target-headers.hmap -I/Users/Builder/Documents/jenkins/jenkins_slave/workspace/PRJ_Client/iOS/GameClient/Output/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone\ Tests.build/prj4kr-all-target-headers.hmap -iquote /Users/Builder/Documents/jenkins/jenkins_slave/workspace/PRJ_Client/iOS/GameClient/Output/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone\ Tests.build/prj4kr-project-headers.hmap -I/Users/Builder/Documents/jenkins/jenkins_slave/workspace/PRJ_Client/iOS/GameClient/Output/build/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/Builder/Documents/jenkins/jenkins_slave/workspace/PRJ_Client/iOS/GameClient/Output/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone\ Tests.build/DerivedSources/armv7 -I/Users/Builder/Documents/jenkins/jenkins_slave/workspace/PRJ_Client/iOS/GameClient/Output/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone\ Tests.build/DerivedSources -F/Users/Builder/Documents/jenkins/jenkins_slave/workspace/PRJ_Client/iOS/GameClient/Output/build -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -include /var/folders/ts/gck1fxcx60qc47njdw93k51h0000gn/C/com.apple.DeveloperTools/6.0.1-6A317/Xcode/SharedPrecompiledHeaders/Unity-iPhone\ Tests-Prefix-firlfgbhvycorlfuhztnwbuwnhig/Unity-iPhone\ Tests-Prefix.pch -MMD -MT dependencies -MF /Users/Builder/Documents/jenkins/jenkins_slave/workspace/PRJ_Client/iOS/GameClient/Output/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone\ Tests.build/Objects-normal/armv7/Unity_iPhone_Tests.d --serialize-diagnostics /Users/Builder/Documents/jenkins/jenkins_slave/workspace/PRJ_Client/iOS/GameClient/Output/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone\ Tests.build/Objects-normal/armv7/Unity_iPhone_Tests.dia -c /Users/Builder/Documents/jenkins/jenkins_slave/workspace/PRJ_Client/iOS/GameClient/Output/Unity-iPhone\ Tests/Unity_iPhone_Tests.m -o /Users/Builder/Documents/jenkins/jenkins_slave/workspace/PRJ_Client/iOS/GameClient/Output/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone\ Tests.build/Objects-normal/armv7/Unity_iPhone_Tests.o
      fatal error: file '/Users/Builder/Documents/jenkins/jenkins_slave/workspace/PRJ_Client/iOS/GameClient/Output/Unity-iPhone Tests/Unity-iPhone Tests-Prefix.pch' has been modified since the precompiled header '/var/folders/ts/gck1fxcx60qc47njdw93k51h0000gn/C/com.apple.DeveloperTools/6.0.1-6A317/Xcode/SharedPrecompiledHeaders/Unity-iPhone Tests-Prefix-firlfgbhvycorlfuhztnwbuwnhig/Unity-iPhone Tests-Prefix.pch.pch' was built
      note: please rebuild precompiled header '/var/folders/ts/gck1fxcx60qc47njdw93k51h0000gn/C/com.apple.DeveloperTools/6.0.1-6A317/Xcode/SharedPrecompiledHeaders/Unity-iPhone Tests-Prefix-firlfgbhvycorlfuhztnwbuwnhig/Unity-iPhone Tests-Prefix.pch.pch'
      1 error generated.

          [JENKINS-24897] Build fails with jenkins XCode Integration Plugin with XCode 6.0.1

          jminne added a comment -

          looks like a dupe

          jminne added a comment - looks like a dupe

          lacostej added a comment -

          I remember having lots of issues like " Tests/Unity-iPhone Tests-Prefix.pch' has been modified since the precompiled header "
          until I spent time properly cleaning the xcode temporary files in between Unity upgrades for example.

          It could also be because of spacing issues in file paths.
          Could you share your config to see where those are added ? I see some in Unity-iPhone\ Tests for example.

          lacostej added a comment - I remember having lots of issues like " Tests/Unity-iPhone Tests-Prefix.pch' has been modified since the precompiled header " until I spent time properly cleaning the xcode temporary files in between Unity upgrades for example. It could also be because of spacing issues in file paths. Could you share your config to see where those are added ? I see some in Unity-iPhone\ Tests for example.

          Sangjoon Park added a comment -

          I didn't update what I've found after this report, but it was clearly a spacing issue.
          I changed the build targets to remove Unity-iPhone Tests, and it works just fine.

          And.. which config do you mean, can you describe more specifics?

          Sangjoon Park added a comment - I didn't update what I've found after this report, but it was clearly a spacing issue. I changed the build targets to remove Unity-iPhone Tests, and it works just fine. And.. which config do you mean, can you describe more specifics?

          lacostej added a comment -

          By config, I meant config of the xcode-plugin within your job. Which fields are set and how to reproduce the issue.
          The best would be to have a test project and the associated part of the config.xml that is relevant to the xcode plugin configuration and environement.

          lacostej added a comment - By config, I meant config of the xcode-plugin within your job. Which fields are set and how to reproduce the issue. The best would be to have a test project and the associated part of the config.xml that is relevant to the xcode plugin configuration and environement.

          lacostej added a comment -

          I've created a test project with one test target with a scheme with space

          and I was able to build and run the tests by appending commands so that jenkins runs:

          /usr/bin/xcodebuild -scheme CocoaPodsExample -workspace CocoaPodsExample.xcworkspace build "CODE_SIGN_IDENTITY=........." test -destination "platform=iOS Simulator,name=iPhone 6"
          
          /Users/lacostej/.jenkins/jobs/xcode_JENKINS-24897_spaces/workspace/CocoaPodsExampleTests/CocoaPodsExampleTests.m:35: Test Case '-[CocoaPodsExampleTests testPerformanceExample]' measured [Time, seconds] average: 0.000, relative standard deviation: 71.133%, values: [0.000004, 0.000001, 0.000001, 0.000001, 0.000001, 0.000001, 0.000001, 0.000001, 0.000001, 0.000001], performanceMetricID:com.apple.XCTPerformanceMetric_WallClockTime, baselineName: "", baselineAverage: , maxPercentRegression: 10.000%, maxPercentRelativeStandardDeviation: 10.000%, maxRegression: 0.100, maxStandardDeviation: 0.100
          Test Case '-[CocoaPodsExampleTests testPerformanceExample]' passed (0.297 seconds).
          Test Suite 'CocoaPodsExampleTests' passed at 2014-12-14 11:38:27 +0000.
          	 Executed 2 tests, with 0 failures (0 unexpected) in 0.297 (0.298) seconds
          Test Suite 'CocoaPodsExample Tests.xctest' passed at 2014-12-14 11:38:27 +0000.
          	 Executed 2 tests, with 0 failures (0 unexpected) in 0.297 (0.300) seconds
          Test Suite 'All tests' passed at 2014-12-14 11:38:27 +0000.
          	 Executed 2 tests, with 0 failures (0 unexpected) in 0.297 (0.301) seconds
          Finished: SUCCESS
          

          So I will close this issue until I get something that I can reproduce.

          lacostej added a comment - I've created a test project with one test target with a scheme with space and I was able to build and run the tests by appending commands so that jenkins runs: /usr/bin/xcodebuild -scheme CocoaPodsExample -workspace CocoaPodsExample.xcworkspace build "CODE_SIGN_IDENTITY=........." test -destination "platform=iOS Simulator,name=iPhone 6" /Users/lacostej/.jenkins/jobs/xcode_JENKINS-24897_spaces/workspace/CocoaPodsExampleTests/CocoaPodsExampleTests.m:35: Test Case '-[CocoaPodsExampleTests testPerformanceExample]' measured [Time, seconds] average: 0.000, relative standard deviation: 71.133%, values: [0.000004, 0.000001, 0.000001, 0.000001, 0.000001, 0.000001, 0.000001, 0.000001, 0.000001, 0.000001], performanceMetricID:com.apple.XCTPerformanceMetric_WallClockTime, baselineName: "", baselineAverage: , maxPercentRegression: 10.000%, maxPercentRelativeStandardDeviation: 10.000%, maxRegression: 0.100, maxStandardDeviation: 0.100 Test Case '-[CocoaPodsExampleTests testPerformanceExample]' passed (0.297 seconds). Test Suite 'CocoaPodsExampleTests' passed at 2014-12-14 11:38:27 +0000. Executed 2 tests, with 0 failures (0 unexpected) in 0.297 (0.298) seconds Test Suite 'CocoaPodsExample Tests.xctest' passed at 2014-12-14 11:38:27 +0000. Executed 2 tests, with 0 failures (0 unexpected) in 0.297 (0.300) seconds Test Suite 'All tests' passed at 2014-12-14 11:38:27 +0000. Executed 2 tests, with 0 failures (0 unexpected) in 0.297 (0.301) seconds Finished: SUCCESS So I will close this issue until I get something that I can reproduce.

            Unassigned Unassigned
            ssahwang Sangjoon Park
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: