Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Archive (zip) doesn't contain dSYM #15

Open
karstenlitsche opened this issue Aug 5, 2011 · 1 comment
Open

App Archive (zip) doesn't contain dSYM #15

karstenlitsche opened this issue Aug 5, 2011 · 1 comment

Comments

@karstenlitsche
Copy link

The dSYM informations are needed to make crash logs readable. They can't be reproduced with an equal build, so you can say they are unique for every build.
Therefore it is really important to archive them too.

For more informations see: http://developer.apple.com/tools/xcode/symbolizingcrashdumps.html

@vtim
Copy link

vtim commented Sep 8, 2011

I am also missing this, it would be really helpful if the dSYM was included in the App Archive.
Until this is included, I created this Groovy script to zip up the dSYM.
You need the Groovy Builder plug-in to run this. Create a new build step "Execute Groovy script" after the SICCI build step, pick "Groovy command" and paste the following code:

println "-- Groovy script to zip the .dSYM package: ${new File('.').absolutePath}"
File workspaceDir = new File('.')
File buildDir = new File(workspaceDir.absolutePath + '/build')
println "-- Build directory: ${buildDir.absolutePath}"

def ant = new AntBuilder()

buildDir.eachDir { subdir ->
    subdir.eachFileMatch(~/.*\.dSYM/) { dsym ->
        println "--Zipping: ${dsym.absolutePath}"
        ant.zip(baseDir:subdir, destFile:"${dsym.absolutePath}.zip", includes:"${dsym.name}/**")
    }
}

In "Archive artefacts", I added to keep the zipped .dSYM.

build/**/*.dSYM.zip

Hope this helps!

-Tim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants