-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Non-ASCII character in app name causes crash in +[NSBundle bundleWithIdentifier:] #3951
Comments
This comment has been minimized.
This comment has been minimized.
@burkaslarry can you share the full stack trace of the crash? You can print the stack trace in the debugger by running |
Also, there's some logging we have in this area that may help narrow down possible causes. Could you enable debug logging and post the output? |
Hey @burkaslarry. We need more information to resolve this issue but there hasn't been an update in 7 days. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Since there haven't been any recent updates here, I am going to close this issue. @burkaslarry if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
I have same problem when my app name is chinese, once I change app name to english then it work fine, how can i fix it? It work fine when I use Firestore 5.9.0, but crash when I upgrade to 6.11.0. |
@flyingbacon can you share the full stack trace of the crash and debug logs mentioned above? |
do you mean this? |
Thanks, it looks like this is the relevant stack trace:
@flyingbacon can you also share the debug logs mentioned in this comment: #3951 (comment) |
@morganchen12 i only got this log after i enable debug logging |
@flyingbacon Based on the callstack it looks like the crash is actually happening in iOS CoreFoundation code, not in Firestore, which would be pretty strange. As a sanity-check, can you just call Also, just to confirm, the problem only happens if you have Chinese characters in the app name? Can you provide an example of a problematic name and how you are setting it (i.e. Packaging > Product Name under the Target settings in XCode? Or something else?). I can try to reproduce and see what happens. Thanks! |
I call [NSBundle bundleWithIdentifier:@"org.cocoapods.grpcpp"]; like the image show, and it work fine. About the app name with chinese characters, this is how I setting it and the problem just happen with project using latest version firebase, my old project with version 5.9.0 just fine. maybe you can give me some suggestion to downgrade? |
OK. If you keep having issues or are able to come up with a way for us to reproduce it, please let us know. |
Seeing the exact same issue with app name containing the letter "Ø". |
@rolfb Thanks! Can you provide exact instructions in order to reproduce? Or an existing project that we can just open / run? |
@mikelehen Fastest way to reproduce is to change the target product name of an existing app to something like |
@rolfb Thank you! The tip about looking for It looks like this is most likely an Apple bug. I can reproduce the same crash by just calling |
Potentially related to rdar://26897226, since it's failing in bundle path validation. |
I created a minimal-ish repro here and (I think?) logged a bug against Apple using their "Feedback assistant" here: https://feedbackassistant.apple.com/feedback/7454511 though I'm not sure if that's public or not. For now, we have a possible workaround for Firestore that @var-const is working on implementing. |
@mikelehen that’s really great. The link wasn’t available even if I logged in with my Apple Developer ID. Appreciate the thoroughness. |
Manually setting CFBundleDisplayName in Info.plist –– viewed as source, not Plist –– to |
FYI, we shipped our workaround for this issue as a part of FirebaseFirestore 1.8.1. |
I use firebase firestore to develop . In this morning , no crash
as night, it gives exception at [NSBundle bundleWithIdentifier:@“org.cocoapods.grpcpp”] as screenshot stated . I have no clue on my pod settings or code... Would you please tell me what to fix?
Below is my screen shot :
Below is my code :
Personally, I have tested that even using Dispatch async to update the progress but it fails .
Below is my Installed dependencies :
The text was updated successfully, but these errors were encountered: