":CFBundleIdentifier", Does Not Exist - Mitigating confusion around it #21303
Labels
DX
Issues concerning how the developer experience can be improved.
📮Known Issues
This indicates an issue that refers to a bug or limitation of RN that is not currently being handled
p: Facebook
Partner: Facebook
Partner
Platform: iOS
iOS applications.
Resolution: Locked
This issue was locked by the bot.
Tech: Bundler 📦
This issue is related to the bundler (Metro, Haul, etc) used.
Type: Discussion
Long running discussion.
Print: Entry, ":CFBundleIdentifier", Does Not Exist pops up constantly in GitHub issues. This is the last line of output for a number of unrelated issues.
This message will appear in the logs whenever a React Native project fails to compile or link.
The Print: Entry, ":CFBundleIdentifier", Does Not Exist error, by itself, is too generic to give direction, and does not indicate whether the error is in React Native, third party libraries, or application code.
With this in mind, we are automatically marking issues that mention the
:CFBundleIdentifier
error as duplicates of this issue. This issue will remain locked in order to avoid confusing matters any further, while still allowing core contributors to discuss ways to mitigate the problem.Troubleshooting
If you're landing on this issue because you've observed the :CFBundleIdentifier message in your output, please read the following carefully:
Troubleshooting by Example
For an actual example of how such an issue can be investigated, take a look at
https://gist.github.com/mhorowitz/ea67d8e1793e803b2ca273395ac12ed2. The important lines are 9-10:
Those messages appear about 80 lines before the :CFBundleIdentifier line. As you can see, the hint for the root cause can sometimes be found much earlier in the logs. The root cause in the above example is completely unrelated to a missing
:CFBundleIdentifier
entry.Always provide a full repro
As you can see in the example above, having a full repro is very helpful. Someone trying to debug can see all the relevant errors and input files. Even with the errors in the example above, without being able to see the full list of dependences and look at project files, someone could not have identified the actual bug.
Related issues
For Discussion
Let's come up with a plan to mitigate confusion here. If this error constantly shows up for any number of unrelated failures, we can likely do a better job of surfacing the actual issue rather than simply leading people on a wild goose chase.
The text was updated successfully, but these errors were encountered: