title: Why does the simulator not display my google button until I stop running it
body: <p>I have followed through <a href="https://developers.google.com/identity/sign-in/ios/sign-in?ver=swift" rel="nofollow noreferrer">Google's tutorial</a> to integrate their sign-in button in my new iOS project, but the sign-in button doesn't display when I build. Oddly enough, it only shows when I stop running and open the app on the simulator myself. It seems very strange, and I have a really hard time debugging this issue because I'm a total beginner in swift(and honestly find it a tad bit confusing as a newbie). </p>
  
  <p>I have pretty much copy pasted their code in my project(and added my clientID where needed) and followed through every one of their steps. The button works fine when the simulator stops running. Does it have to do anything with Main.storyboard vs LaunchScreen.storyboard(my button is in Main)? What am I missing here? </p>
  
  <p>Here is my ViewController:</p>
  
  <pre><code>import UIKit
  import GoogleSignIn
  
  class ViewController: UIViewController
  {
      @IBOutlet weak var signInButton: GIDSignInButton!
  
      override func viewDidLoad()
      {
          super.viewDidLoad()
          GIDSignIn.sharedInstance().presentingViewController = self
  
          // Automatically sign in the user.
          GIDSignIn.sharedInstance().restorePreviousSignIn()
  
      }
  
      @IBAction func didTapSignOut(_ sender: AnyObject)
      {
          GIDSignIn.sharedInstance().signOut()
      }
  }
  </code></pre>
  
  <p>And this is what I added in the beginning of AppDelegate:</p>
  
  <pre><code>func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -&gt; Bool
  {
  
      GIDSignIn.sharedInstance().clientID = "My client ID"
      GIDSignIn.sharedInstance().delegate = self
  
      return true
  }
  
  @available(iOS 9.0, *)
  func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any]) -&gt; Bool {
    return GIDSignIn.sharedInstance().handle(url)
  }
  func application(_ application: UIApplication,
                   open url: URL, sourceApplication: String?, annotation: Any) -&gt; Bool {
    return GIDSignIn.sharedInstance().handle(url)
  }
  
  func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!,
            withError error: Error!)
  {
      if let error = error
      {
          if (error as NSError).code == GIDSignInErrorCode.hasNoAuthInKeychain.rawValue
          {
              print("The user has not signed in before or they have since signed out.")
          }
          else
          {
              print("\(error.localizedDescription)")
          }
          return
      }
      // Perform any operations on signed in user here.
      let userId = user.userID                  // For client-side use only!
      let idToken = user.authentication.idToken // Safe to send to the server
      let fullName = user.profile.name
      let givenName = user.profile.givenName
      let familyName = user.profile.familyName
      let email = user.profile.email
      // ...
  }
  
  func sign(_ signIn: GIDSignIn!, didDisconnectWith user: GIDGoogleUser!,
            withError error: Error!) {
    // Perform any operations when the user disconnects from app here.
    // ...
  }
  </code></pre>
  
  <p>Thank you</p>