-
Notifications
You must be signed in to change notification settings - Fork 899
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: improve overall run-ios experience and get rid of CFBundleIdentifier #139
Conversation
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.
Nice work! I left a comment about error phrasing, but this looks great otherwise!
Nice work! 👏
Cool, so this will prevent us to have a |
packages/cli/src/util/logger.js
Outdated
const debug = (...messages: Array<string>) => { | ||
console.log(`${chalk.black.bgWhite(' DEBUG ')} ${joinMessages(messages)}`); | ||
}; | ||
|
||
class ProcessError extends Error { |
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.
This doesn't belong to logger. Can you move it to some kind of errorHelpers
?
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.
Yup, good idea. I'd suggest "errors" for now.
errorOutput | ||
) | ||
); | ||
return; |
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.
is this return necessary after we reject
ed?
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's not - just my personal preference of early returns over /else clause (visual appearance).
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.
I think I'll update it to if/else here 👌
Check @thymikee if you are happy with the last commit and if yes, let's merge it 🔥 |
|
||
class ProcessError extends Error { | ||
constructor(msg: string, processError: string) { | ||
super(`${chalk.red(msg)}\n\n${chalk.gray(processError)}`); |
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.
Looks silly, but I'm cool with that :)
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.
I would say it's a "temporary" solution when we figure out proper logging. I think it's a good starting point.
I follow the issue " ":CFBundleIdentifier", Does Not Exist"to here, and this issue is still exist🙁 |
Please note this is only available since RN 0.59 which is still in RC period. Your project uses 0.57. |
Fixes #107
Summary:
Bugs fixed:
Changes made:
Test Plan:
Here's how the error messages look before/now:
While try to build a project with a wrong "schema" :
Before:
After:
While building a project that has a typo in "AppDelegate.m":
Before:
After:
You can try it out by running
run-ios
command on a broken project (typo, wrong configuration) or by passing a non-existingschema