-
Notifications
You must be signed in to change notification settings - Fork 55
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
Current working directory is incorrectly copied into dSYM zip file #155
Comments
I have discovered why my project is not generating a It feels as though a warning or fail should occur in the event an |
Hy @connor-alphero |
Hi @connor-alphero, Thanks for the report! Can you please tell me which version of the step you use and whether the issue persist with the latest version? |
Hello there, I'm a bot. On behalf of the community I thank you for opening this issue. To help our human contributors focus on the most relevant reports, I check up on old issues to see if they're still relevant. The community would appreciate if you could check if the issue still persists. If it isn't, please close it. If no comment left within 21 days, this issue will be closed. |
I'll close this issue as it doesn't seem to be relevant anymore. |
Description
I have a project (running Xcode 10.2.x, macOS 10.14 (Mojave) stack) that uses the xcode-archive and deploy to bitrise steps to export the app's desymbolication files as a zip file. The zip file ends up being ~300MB and contains a collection of dSYMs + a copy of the project source code. I would expect the dsym zip to contain just the dsym files.
Fault
I have identified the problematic code that spans two files
https://github.com/bitrise-io/go-xcode/blob/51984334e0fb83bf66588acf87f09c5ac624874b/xcarchive/ios.go#L329-L350
FindDSYMs()
defaults to an empty string if it cannot find a file ending with.app.dsym
The fact it returns an empty string if it cannot location a
.app.dsym
causes an issue in the xcode archive step.steps-xcode-archive/main.go
Lines 903 to 940 in 95e00f3
On line 903,
FindDSYMs()
is called to locate the dsym files for the app and frameworks. The app's dsym path is held inappDSYM
.On line 917, the
appDSYM
is copied into dsymDir. IfappDSYM
is an empty string, like it can be if there isn't a.app.dsym
file, it copies the entire current working directory.Ideally, there would be a check on the
appDSYM
before it performs the copy to make sure it does not copy the current working directory.The text was updated successfully, but these errors were encountered: