title: Changing bundle ID for Firebase
body: <p>Early on in this project I made the error of not having the prefix <code>com</code> in the bundle identifier. Now I am ready to test flight and I have an invalid bundle identifier.</p>
  
  <p>Currently, my bundle identifier is <code>mycompany.myProject</code> but I want it to be <code>com.mycompany.myproject</code>. I have no problem switching to the desired bundle id for archiving the app and uploading to the app store. </p>
  
  <p>The steps I took to switch the app to the appropriate bundle identifier:</p>
  
  <ol>
  <li>Create new app in firebase console with correct bundle ID. </li>
  <li>Download Google-Info.plist of this new app and place in projects root and drag into Xcode project.</li>
  <li>Change bundle identifier on Facebook </li>
  <li>Change bundle identifier in project settings</li>
  </ol>
  
  <p>However, the app crashes fatally with this error.</p>
  
  <pre><code>*** Terminating app due to uncaught exception 'InvalidPathValidation', reason: '(child:) Must be a non-empty string and not contain '.' '#' '$' '[' or ']''
  </code></pre>
  
  <p>The point at which this error arises is when a Firebase method is called</p>
  
  <pre><code>- (NSString *) getUid {
  return [FIRAuth auth].currentUser.uid;
  }
  </code></pre>
  
  <p>This method returns <code>nil</code> which feeds a method for retrieving data from Firebase. This method's <code>nil</code> return causes the <code>InvalidPathValidation</code> error.</p>
  
  <p>I am authenticating with Facebook. I thought maybe the reason this is returning <code>nil</code> is that the app doesn't know who is logged in, because I was never prompted to login (my app checks if your logged in through Facebook in <code>viewWillAppear</code> on the opening ViewController). However this doesn't make sense because the only change I made was changing the bundle ID. I have been stuck on this problem for almost a week. </p>
  
  <p>I am specifically wondering what do I need to change for Firebase to accept the bundle identifier changes.</p>