title: iOS app crashes when I click Google Sign-In button
body: <p>I'm using the Google Sign-In library for iOS, and when I click the Sign-In button the app crashes with the following error:</p>
  
  <pre><code>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
   'Your app must support the following URL schemes: &lt;my bundleID&gt;,
   com.googleusercontent.apps.&lt;my client ID&gt;'
  </code></pre>
  
  <p>I inspected the signed version of my app to make sure that those URL schemes are defined, which they are.<br>I also added 'google' as the identifier for each of the URL schemes because I saw that that's what is done in the sample Google Sign-In app.<br><br>This only happens when I build the signed version of my app and do an ad-hoc installation on my phone.<br>It doesn't happen when running in the simulator through Xcode, or even when running the app for release on the simulator through Xcode.<br><br>Does anyone know what to do about this?</p>
  
  <p>Other info that might be useful:<br>
  I'm using the Google Sign-In library without cocoapods.<br>I dragged the library bundle and framework into my project.<br><br>Also, I'm using a generic provisioning profile which contains a wildcard in the App ID, and for some reason when I build the signed version of the app the bundle ID of my app gets changed to have the wildcard in it.<br>i.e. the bundle id gets changed from com.example.app to com.example.*.<br>Because of this, I added in a third URL scheme which contains the wildcard.</p>