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

fix issue with not being able to find .dSYM files #2831

Merged
merged 1 commit into from
Oct 7, 2016

Conversation

madhurig
Copy link
Contributor

@madhurig madhurig commented Oct 7, 2016

@@ -229,7 +229,10 @@ var submitToTestCloud = function (index) {
// For an iOS .ipa app, look for an accompanying dSYM file
if (dsym && path.extname(appFiles[index]) == '.ipa') {
// Find dSYM files matching the specified pattern
var alldsymFiles = tl.find(path.dirname(appFiles[index]));
// Check in one folder up since IPAs are now generated under a timestamped folder
var ipaFolder = path.dirname(path.dirname(appFiles[index]));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this cause any back compat issue?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will you be able to unit test this code by mocking path.dirname?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yacaovsnc: It shouldn't cause any compat issue since we will just be looking for .dSYM files one level up. Since the Xamarin support for Xcode 7 the IPAs are generated in a folder under the outDir where as the .dSYM file is under the outDir. So the task hasn't been finding the .dSYM files.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jpricketMSFT: To mock path.dirname, we have to create a dirname method in the task-lib. I will check if the new L0 framework allows a simpler way to mock this.

@@ -229,7 +229,10 @@ var submitToTestCloud = function (index) {
// For an iOS .ipa app, look for an accompanying dSYM file
if (dsym && path.extname(appFiles[index]) == '.ipa') {
// Find dSYM files matching the specified pattern
var alldsymFiles = tl.find(path.dirname(appFiles[index]));
// Check in one folder up since IPAs are now generated under a timestamped folder
var ipaFolder = path.dirname(path.dirname(appFiles[index]));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will you be able to unit test this code by mocking path.dirname?

@madhurig madhurig merged commit 84a014a into master Oct 7, 2016
@madhurig madhurig deleted the users/mg/xamarinios branch October 7, 2016 19:52
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

Successfully merging this pull request may close these issues.

4 participants