Xcode9: Does not recognize Google-Info.plist?

Introduction

The new Xcode 9 is now available for everyone, with this update there are lot of changes  and new features, but also some bugs. There’s a special one which was noticed during the beta testings and it is still on the production version. This is the topic of this tutorial

Google-Info.plist

If you’re a familiar with some Google SDKs like the Google Sign-In SDK for iOS you know you need the Google-Info.plist file in order to make the SDK works. This configuration file provides a service-specific information for your app. Somehow when you drag and drop it to your app source file and after that try to run your app, it crashes and shows the error bellow:

Could not locate configuration file: ‘GoogleService-Info.plist’.

Even if you remove it, download it again and drag and drop it into your project’s source folder it won’t work. Fortunately there’s a solution for it.

On Xcode9 go to your project folder Right click on it and then click on Add files To “Your Project Name”:

Bildschirmfoto 2017-10-01 um 10.08.44

Then select your Google-Info.plist file and run the project again.

 

Acknowledgment

Thanks for reading this post, it is always a pleasure writing for you guys. If you like what you just read and somehow you want to support me, you can become a Patreon . Being my Patreon makes you get my private posts about programming with iOS and Ruby.

If you’d like to know more about me or what I do, you can follow me on Instagram or Twitter .

See you next time!

Advertisements

How to send Push Notifications from a Mac OS X – Push Robot

Mobile Developers love to imagine the users of their apps using the app all day. Push notifications allows developers to reach their users and perform small tasks even when users aren’t actively using an app.

Google has created Firebase Cloud Messaging for helping developers sending Push Notifications to their apps. You just need to login to your Google account and after some setup, you can easily send push notifications. What if you could send notifications from your Mac ? With this in mind, I’ve decided to create a Mac OS X App called Push Robot.

Push Robot allows you to send Push Notifications to your apps using FCM, all you need is the Server Key and the Topic or Device’s Token(to send push notifications to a single app).

Screen Shot 2017-04-12 at 07.54.21

To get the Server Key:

  1. click the settings icon/cog wheel next to your project name at the top of the new Firebase Console
  2. Click Project settings
  3. Click on the Cloud Messaging tab
  4. The key is right under Server Key

Now you can send a push notification to a topic which can reach millions of users or for specific users using the device’s token.

Acknowledgment

Thanks for reading this post, it is always a pleasure writing for you guys. If you like what you just read and somehow you want to support me, you can become a Patreon . Being my Patreon makes you get my private posts about programming with iOS and Ruby.

If you’d like to know more about me or what I do, you can follow me on Instagram or Twitter .

See you next time!