-
Notifications
You must be signed in to change notification settings - Fork 904
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: properly create .xcode.env file with doctors auto fix #1668
fix: properly create .xcode.env file with doctors auto fix #1668
Conversation
@cipolleschi since you've added this feature with #1585 can I have your eyes on this please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me, thanks for taking the time to fix this.
Just a question: does it now works properly also with a newly created app? If not, could you fix that as well?
Well.. there's another issue with that - when I create fresh project with |
Thank you so much for checking this as well! |
const templateXcodeEnv = '_xcode.env'; | ||
const projectRoot = findProjectRoot(); | ||
|
||
const templateIosPath = path.dirname( | ||
require.resolve('react-native/template/ios'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this silently failed, can we make sure the runAutomaticFix
has a proper error handler that surfaces to the exit code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Summary:
Noticed that doctor does not create
.xcode.env
file when it should.It was happening because this command was failing silently:
Test Plan:
Create fresh project and then delete
.xcode.env
file. Then rundoctor
command and try to autofix the error.Run doctor again and error is still present: