Skip to content

[msbuild] Don't rm -rf the .dSYM dir in the _CompileToNative target - #1266

Merged
spouliot merged 1 commit into
cycle8-xifrom
cycle8-xi-msbuild-bug-41231
Dec 7, 2016
Merged

[msbuild] Don't rm -rf the .dSYM dir in the _CompileToNative target#1266
spouliot merged 1 commit into
cycle8-xifrom
cycle8-xi-msbuild-bug-41231

Conversation

@jstedfast

Copy link
Copy Markdown
Member

That logic wrongly assumed that mtouch will always output a new
native executable file and that the dSYMs will need to be regenerated,
but that is not the case.

Move the rm -rf logic into the _GenerateDebugSymbols target instead,
so that we only delete the dSYMs if we've already committed to
regenerating them.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=41231

For a walk-through of the problem, see
https://bugzilla.xamarin.com/show_bug.cgi?id=47803#c9

That logic wrongly assumed that mtouch will always output a new
native executable file and that the dSYMs will need to be regenerated,
but that is not the case.

Move the rm -rf logic into the _GenerateDebugSymbols target instead,
so that we only delete the dSYMs if we've already committed to
regenerating them.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=41231

For a walk-through of the problem, see
https://bugzilla.xamarin.com/show_bug.cgi?id=47803#c9
@monojenkins

Copy link
Copy Markdown
Contributor

Build failure

@jstedfast

Copy link
Copy Markdown
Member Author

hudson.plugins.git.GitException: Command "git submodule update --init --recursive" returned status code 143:

@jstedfast

Copy link
Copy Markdown
Member Author

build

@monojenkins

Copy link
Copy Markdown
Contributor

Build success

@spouliot spouliot added the requires-approval-before-merge The pull request requires special approval before it can be merged label Nov 30, 2016
@spouliot

Copy link
Copy Markdown
Contributor

@jstedfast I have not seen the trello card for it in https://trello.com/b/FRdVOYky/platform-cycle-8-service-release-2 ?

@spouliot
spouliot merged commit 070338a into cycle8-xi Dec 7, 2016
@jstedfast
jstedfast deleted the cycle8-xi-msbuild-bug-41231 branch December 7, 2016 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

requires-approval-before-merge The pull request requires special approval before it can be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants