Fixing Git SSH After Upgrading to macOS Sierra

Yes. I’m a latecomer to the Sierra game (due mainly to an audio hardware driver I had to wait on to be upgraded to Sierra, which finally was updated but probably won’t be updated to High Sierra…), and most developers have probably already run into this problem and have dealt with it accordingly. However, I thought it might be a good idea to capture this here for posterity…

Just this morning, immediately after upgrading to macOS Sierra, I experienced a problem by which Git began incessantly asking for my passphrase. This was an unwelcome surprise to me, but thankfully there’s a reasonably simple fix, thanks to this SuperUser suggestion:

macOS keeps asking my ssh passphrase since I updated to Sierra – Super User

In the latest version of macOS (10.12.2), this is easy to fix. Just edit your ~/.ssh/config and enable the UseKeychain option:

Host *
 UseKeychain yes

There is no need to change anything else. Now everything works the way it used to work before the latest updates. You do not need to add keys to ssh-agent.

In my case, I couldn’t just edit the config file in question, because it didn’t exist. Therefore, I had to create the config file in my ~/.ssh directory with the information mentioned in the SuperUser post.

Thankfully, after creating the file, re-launching Terminal, and entering my credentials one final time, it seems to have worked and Git is happy again.

iOS Dev Break Episode 009: It Was A Very Googly Experience

The latest episode of iOS Dev Break has arrived! This one was recorded just before WWDC, and a new episode will be published shortly!

It Was A Very Googly Experience – IDB009 | iOS Dev Break

In this episode: The return of iOS Dev Break! Adventures with the Google Play Store, Swift 4 and the Codeable protocol, plus AirPods and their amazing user experience!

Google Chrome Pro Tip: How to Merge Multiple Tabs from Two Google Chrome Windows

I have been wanting the ability to merge two window’s collections of tabs in Google Chrome for some time now, because moving one tab a time from one window to another is tedious at best.

I thought I’d need an extension for it, but it turns out that you can already do it in Chrome without any extra extension! I found this tip on the Google Chrome Product Forums, which tells how to do it:

Merge two windows with multiple tabs

Left-click the first tab in the window you want to merge. While holding the shift key, left-click the right most tab. All of tabs for the current window are now selected, so you can drag and drop them as as group on the other window.

One thing the tip doesn’t mention is that you have to keep holding down the Shift key while doing this process to move all tabs, otherwise it shifts back into single-tab-move-mode.

Hope this helps!

Video: Forward Swift 2016 – “How Hot Is My Coffee? Sensors, Core Bluetooth and Swift!”

Somehow I don’t think I broadcasted this when it was available so now seems a good a time as any…

My Core Bluetooth talk from Forward Swift 2016, “How Hot Is My Coffee? Sensors, Core Bluetooth and Swift!” has been up since last year, but thankfully it’s still up!

Evan K. Stone: How Hot Is My Coffee? Sensors, Core Bluetooth and Swift! – Forward Swift 2016

Fitbit, Withings, Nest. The Internet of Things (IoT) innovation tidal wave has just begun, and those are just three of the more well-known players in the IoT and connected gadget landscape. It’s critical that iOS developers know how to connect and interact with BLE prototyping devices using the Core Bluetooth Framework provided by the iOS SDK. In this session, you’ll get the jump-start you need to begin creating engaging apps that bring these devices to life.

Big thanks to the awesome folks at Forward Swift!

Video: Forward Swift 2017 – “What’s this React Native Thing I Keep Hearing About?”

Here’s the video for the talk on React Native I did for Forward Swift in March of 2017 in San Francisco! I’m very glad I didn’t have to wait until November for this one – the Forward Swift team has done an amazing job of getting out their videos in record time!

Evan K. Stone: What’s This React Native Thing I Keep Hearing About?

In our daily lives as iOS developers, we can usually happily keep coding away in Swift and ignore what’s going on in other software development communities, like that of JavaScript. However, there may be some advantages to at least becoming familiar with what’s going on in the world of React Native, and in this session you will get an overview of what React Native is, and why it could be a useful addition to your toolbox an iOS developer.

Video: AltConf 2016 – “Saving Lives with iBeacons”

Evidently this got posted to Realm’s website back in November, and I was not informed. Better late than never!

Evan K. Stone – Saving Lives with iBeacons

You’ve probably heard of iBeacons, but have you seen them up close or developed apps for them? iBeacon technology is a fun and easy way to start working with Bluetooth Low Energy devices. Cloud City Development has been working with Pop Up Labs at MIT to help develop a solution for educating health professionals about the Maker Movement and how it positively affects the medical community. With the help of iBeacons, health professionals have learned how to start creating their own devices and tools!

In this talk from AltConf 2016, Evan will introduce you to iBeacons, show you examples of how to interact with them in an iOS app, and demonstrate how iBeacons were implemented in a Medical Maker Kit. By helping medical staff learn about the items in the kit, they are able to get creative, build new projects, and ultimately save lives! This talk will give you a glimpse of what can be accomplished with iBeacons and will encourage you to think of new ways in which Bluetooth Low Energy devices like iBeacons can be used to design and develop creative solutions that enhance the experience of life!

React Navigation: a Collaborative Effort in the React Native Community

React Navigation for React Native is “collaboration between people from Facebook, Exponent and the React community at large” as this comment on the project’s GitHub page indicates:

React Navigation is born from the React Native community’s need for an extensible yet easy-to-use navigation solution. It replaces and improves upon several navigation libraries in the ecosystem, including Ex-Navigation, React Native’s Navigator and NavigationExperimental components. React Navigation can also be used across React and React Native projects allowing for a higher degree of shared code. Once stable, NavigationExperimental will be deprecated in favor of React Navigation. React Navigation is a collaboration between people from Facebook, Exponent and the React community at large.

Also interesting is the revealing that React Native’s NavigationExperimental will be deprecated in favor of this new navigation system.

Details can be found here:

How to Bring Back the Star Rating in iOS 10 Music App

This was really bugging me because I don’t care for the Heart button Love/Dislike function in the latest versions of the Music app.

Therefore, to bring back the star rating in iOS 10 Music app, you can do the following:

  1. Open the iOS Settings app from your Home Screen
  2. Find the settings for the Music and open it.
  3. About the fourth item down is the “Show Star Ratings” switch.
  4. Switch it on.

When you enable the star ratings, you will find a new “Rate Song…” item when you tap on the song’s ellipsis button in the detail view of a playing song, with which you can rate the song with stars instead of Love/Disliking it.

Based on information found at iPhoneHacks.com

 

Posted in iOS

Zero to BLE Part Two Core Bluetooth Post Updated for Swift at Cloud City Development Blog!

I’m happy to announce that I recently updated Part Two of my Zero-to-BLE series on Core Bluetooth Post Updated for Swift at Cloud City Development Blog! It’s been updated for Swift 2, because when I wrote it, Swift 3 hadn’t officially been released and I honestly thought it would be published well in advance of the September 7 Apple Event.

Zero to BLE on iOS – Part Two – Swift Edition

Better late than never!

Who knows? Maybe there will be a Swift 3 version in the future? For sure all my code samples will be in Swift 3…

Hope you like it!