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

Build IPA causes dSYM.zip to include absolute paths

    Details

    • Similar Issues:

      Description

      Here is a sample of the 1.2.1 Xcode plugin build IPA:

      [build] $ zip -r -T -y MyApp-Alpha-380-dSYM.zip MyApp.app.dSYM
      adding: MyApp.app.dSYM/ (stored 0%)
      adding: MyApp.app.dSYM/Contents/ (stored 0%)
      adding: MyApp.app.dSYM/Contents/Info.plist (deflated 52%)
      adding: MyApp.app.dSYM/Contents/Resources/ (stored 0%)
      adding: MyApp.app.dSYM/Contents/Resources/DWARF/ (stored 0%)
      adding: MyApp.app.dSYM/Contents/Resources/DWARF/MyApp (deflated 69%)

      Here is the output of the 1.3.1 release Xcode plugin build IPA:

      [build] $ zip -r -T -y MyApp-Alpha-416-dSYM.zip /Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM
      adding: Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM/ (stored 0%)
      adding: Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM/Contents/ (stored 0%)
      adding: Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM/Contents/Info.plist (deflated 52%)
      adding: Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM/Contents/Resources/ (stored 0%)
      adding: Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM/Contents/Resources/DWARF/ (stored 0%)
      adding: Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM/Contents/Resources/DWARF/ExpediaBookings (deflated 69%)

        Attachments

          Activity

          Hide
          edog1203 Evan Doll added a comment -

          This is causing some problems when we upload our zipped .dSYM to our crash reporting service.

          I've modified it locally to use "ditto -c -k --keepParent -rsrc" rather than zip, seems to work fine.

          Show
          edog1203 Evan Doll added a comment - This is causing some problems when we upload our zipped .dSYM to our crash reporting service. I've modified it locally to use "ditto -c -k --keepParent -rsrc" rather than zip, seems to work fine.
          Hide
          edog1203 Evan Doll added a comment -

          Added a pull request with a fix: https://github.com/jenkinsci/xcode-plugin/pull/13

          Show
          edog1203 Evan Doll added a comment - Added a pull request with a fix: https://github.com/jenkinsci/xcode-plugin/pull/13
          Hide
          lacostej lacostej added a comment -

          I tested the 2 alternatives pull requests on the command line (https://github.com/jenkinsci/xcode-plugin/pull/12 and https://github.com/jenkinsci/xcode-plugin/pull/13)

          rm -r tmp
          mkdir -p tmp
          cd tmp
          mkdir -p Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM/
          mkdir -p  Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM/Contents/ 
          echo "HIHO" > Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM/Contents/Info.plist 
          mkdir -p Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM/Contents/Resources/DWARF/
          echo "HIHO" > Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM/Contents/Resources/DWARF/ExpediaBookings
          
          # pull request #12
          zip -r -T -y -j zip-dSYM.zip Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM
          # pull request #13
          ditto -c -k --keepParent -rsrc Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM ditto-dSYM.zip 
          
          unzip -l zip-dSYM.zip
          unzip -l ditto-dSYM.zip
          

          Only pull request #13 preserves the directory layout.

          Show
          lacostej lacostej added a comment - I tested the 2 alternatives pull requests on the command line ( https://github.com/jenkinsci/xcode-plugin/pull/12 and https://github.com/jenkinsci/xcode-plugin/pull/13 ) rm -r tmp mkdir -p tmp cd tmp mkdir -p Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM/ mkdir -p Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM/Contents/ echo "HIHO" > Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM/Contents/Info.plist mkdir -p Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM/Contents/Resources/DWARF/ echo "HIHO" > Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM/Contents/Resources/DWARF/ExpediaBookings # pull request #12 zip -r -T -y -j zip-dSYM.zip Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM # pull request #13 ditto -c -k --keepParent -rsrc Users/Shared/Jenkins/Home/jobs/MyApp/workspace/build/MyApp.app.dSYM ditto-dSYM.zip unzip -l zip-dSYM.zip unzip -l ditto-dSYM.zip Only pull request #13 preserves the directory layout.
          Hide
          lacostej lacostej added a comment -

          On the command line, I had to invert the arguments. Ditto requires the zip file last. This is suspicious.
          Unfortunately I am unable to get a job config where my project generates a separate dSYM directory. My dSYM directory appears as part of the .ipa instead.
          So I am unable to test the merged patch.

          Please test https://buildhive.cloudbees.com/job/jenkinsci/job/xcode-plugin/ws/target/xcode-plugin.hpi and report.

          Show
          lacostej lacostej added a comment - On the command line, I had to invert the arguments. Ditto requires the zip file last. This is suspicious. Unfortunately I am unable to get a job config where my project generates a separate dSYM directory. My dSYM directory appears as part of the .ipa instead. So I am unable to test the merged patch. Please test https://buildhive.cloudbees.com/job/jenkinsci/job/xcode-plugin/ws/target/xcode-plugin.hpi and report.
          Hide
          lacostej lacostej added a comment -

          OK. I finally got xcode to run the command and it indeed fails. Patch coming.

          Show
          lacostej lacostej added a comment - OK. I finally got xcode to run the command and it indeed fails. Patch coming.
          Hide
          lacostej lacostej added a comment -

          Fixed in xcode 1.3.2

          Show
          lacostej lacostej added a comment - Fixed in xcode 1.3.2

            People

            • Assignee:
              lacostej lacostej
              Reporter:
              bcrahn33 Bryan Rahn
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: