At the beginning of this project, I made a mistake without having the com prefix in the bundle identifier. Now I am ready to check the flight, and I have an invalid packet identifier.
My package mycompany.myProject , but I want it to be com.mycompany.myproject . I have no problem navigating to the correct package identifier to archive the application and upload to the application store.
The steps I took to switch the application to the appropriate package identifier:
- Create a new application in the firebase console with the correct package ID.
- Download the Google-Info.plist of this new application and put it in the root project and drag it into the Xcode project.
- Change package id on Facebook
- Change package identifier in project settings
However, the application crashes with this error.
*** Terminating app due to uncaught exception 'InvalidPathValidation', reason: '(child:) Must be a non-empty string and not contain '.' '#' '$' '[' or ']''
The point at which this error occurs is when the Firebase method is called
- (NSString *) getUid { return [FIRAuth auth].currentUser.uid; }
This method returns nil , which passes the method to retrieve data from Firebase. Returning the nil method throws an InvalidPathValidation error.
I trust Facebook. I thought that the reason this is returning nil is because the application does not know who is logging in because I was not prompted to log in (my application checks to see if your Facebook account is registered with viewWillAppear at the opening of the ViewController) However, this does not make sense, since the only change I made is a change to the package identifier. I’ve been stuck with this problem for almost a week.
I just wonder what I need to change for Firebase in order to accept the package id changes.
source share