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 for error message when reloading iOS application during build #25

Merged
merged 3 commits into from
Mar 25, 2024

Conversation

filip131311
Copy link
Collaborator

@filip131311 filip131311 commented Mar 22, 2024

Description:
This is a primitive fix of a problem with reloading on iOS during build.

Before:
When reloading when subprocess running xcodebuild was active the information about that process being killed would leak and cause change in ProjectState.status to buildError despite the fact that new build was up and running.

After: this change prevents unwanted change in status, when it is caused by previous session

Fixes: #8

Copy link

vercel bot commented Mar 22, 2024

Someone is attempting to deploy this pull request to the software-mansion Team on Vercel.

To accomplish this, the commit author's email address needs to be associated with a GitHub account.

Learn more about how to change the commit author information.

Comment on lines 373 to 376
if (/Command was killed with SIGKILL \(Forced termination\): xcodebuild/.exec(e.message)) {
Logger.debug(e);
return;
}
Copy link
Member

@kmagiera kmagiera Mar 25, 2024

Choose a reason for hiding this comment

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

instead of this add extra check to the if block below to verify if this.deviceSession === newDeviceSession

also in line 324 do:

const prevSession = this.deviceSession;
this.deviceSession= undefined;
prevSession?.dispose();

Copy link
Member

@kmagiera kmagiera left a comment

Choose a reason for hiding this comment

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

Fix inline comment prior to merging

Filip Andrzej Kaminski added 2 commits March 25, 2024 15:42
@filip131311 filip131311 merged commit a09c849 into main Mar 25, 2024
1 of 2 checks passed
@filip131311 filip131311 deleted the @Filip131311/FixCanNotRunProjectOnReload branch May 10, 2024 13:39
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.

"can not run project" screen while using "clean build cache"
2 participants