Pricing Request a Demo
Home / Apple
Enjoy the best mobile SDKs news, tips & tricks, sent to you by mail

NSLog or os_log: How to Log for Multiple iOS Versions?

February 27, 2017 3:53 PM

Our QA guy informed me one day that he doesn’t see our log messages when testing on an iOS 10 device.

“Good morning Siri darling, ” I clicked the round icon on the top right edge of my screen. “I don’t see my NSLog messages, please advise…”

“You should switch to os_log API”, she arrogantly replied. “And please stop asking me how much is 36 times purple, which bear is best or can Chuck Norris beat Thor in a fistfight”.

Thank you Siri, I’ll see what I can do.

Basically, a quick look around our code revealed that our NSLog calls are no longer displayed in the console application. Now, we write our code as a library. This means that our log messages within the app, the ones our QA looks for when testing, were part of a dylib compiled in release. And under those circumstances, NSLog doesn’t work starting with iOS 10.0. What does work? Well, according to Siri, a new API, the os_log API, should do the trick.

What is os_log API, you ask? Well, officially it’s called the “Unified Logging System.” Its function is described as “centralizing the storage of log data in memory and in a data store on disk.”

And so we were faced with quite the conundrum. The new os_log API is the way to go, Siri said so herself, but it’s only available starting with iOS 10.0. We had no choice – we had to use the new API when available, but still use NSLog for the old versions.

How were we to do that?

Continue Reading

The App Store Policy That Might Get You Rejected in 2017

December 21, 2016 9:48 AM

Update: Apple just announced that it is postponing the ATS compliance deadline. A new deadline is unknown at this time.


During WWDC 2016, in the What’s new in Security session, Apple announced it will start enforcing App Transport Security in the App Store by the end of 2016. Our research indicates that most apps are still using keys that disable this policy and are not ready for this new regulation.

App Transport security (ATS) was introduced during WWDC 2015: “If you link your app against OS X El Capitan or iOS 9, by default it won’t be able to make any unprotected HTTP connections; they will simply fail…”

Now, with 2017 only a few days away, apps face harsher scrutiny by Apple. As if it wasn’t already tough enough getting through the review process unscathed, app publishers are now checked at the door for unsecure connections. Any irregularity and you won’t be let into the store before doing some proper explaining.

Continue Reading

16 Industry Events for Mobile App Developers You Should Know Of

November 15, 2016 5:15 PM

As an app developer you must have heard how critical it is to attend industry events. Some talk about leveraging these events from a networking and reputational standpoint, others about fueling your BizDev efforts and some are in it just to learn and stay up to date with industry news, techniques and emerging tools.

Plus industry events break our daily routine which is always fun!

However, not everyone’s so positive about these events. Some complain about them being a waste of money, unfocused, not bringing any real news and lacking relevant colleagues to mingle with. On top of this, events can be viewed as not adding quality leads and as mainly serving to the financial interests of the event producers.

I say it’s all a matter of setting the right expectations and doing your research before attending, speaking or presenting at any given event.

Personally, I like to stay updated with all the relevant events in my industry. Of course, I don’t attend all the events but I base my decision to attend/not attend on key parameters and understanding the value I would gain from that specific event.

I’ve gathered a list of some mobile app / mobile dev / mobile games events (organized chronologically by date) that are focused on developers. Although some further mini research might be needed before you make a decision, the list below can get you off to a nice start.

In the mobile industry, events cover a wide array of topics including mobile innovation, full stack development, marketing solutions, game dev and more. Some events are quite popular among mobile app pros. Please drop us a note to: contact@safedk.com if we left any important events behind!

Continue Reading

Why Developers Must Analyze their Apps’ Store Reviews & How It’s Done

October 31, 2016 4:35 PM

During the course of my career, I’ve worked with app founders, app developers, product teams and marketers, and many times I have turned to store reviews to find answers. Eventually, I developed a method.

I’m assuming you’ve been in the industry for quite a while by now. I know it’s pretty hard to surprise you with tricks that you haven’t heard of or tried before. But let me try nonetheless.

Apparently, professionals in our industry follow a method, a way to qualitatively analyze their users’ inner thoughts. Using that they fine-tune their product efforts around what is specifically required in order to reach the results they are after.

First thing’s first: Let’s agree that you must find out what doesn’t work in your app, what your users don’t like, what they are struggling with and the issues many of them experience.  You can never guess what your users think of your app. You can never win this business unless you collect feedback methodically.


via GIPHY
Now, let’s talk about ‘the how’.

Continue Reading

6 New Year’s Resolutions for Mobile App Developers

December 31, 2015 4:16 PM

Welcome 2016! The new year is finally here.

For some, the Gregorian’s calendar birthday is an event worth celebrating as much (if not more so) than their own, while others may dismiss it as nothing more than a simple change of digits. But let’s admit something – when a new year arrives, it doesn’t go unnoticed. With everyone around rating the past year’s best and worst in numerous categories, I too find the occasional thought popping in, asking myself “what can I do different, better, from now on?”

So it got me thinking. I’ve been enthralled in the world of mobile development for quite some time now. I’ve seen things; I’ve done some; I’ve been around the mobile block.

Thinking of programming in general, and mobile programming in specific, I’ve gathered these 6 New Year’s resolutions that are not only how I wish to better myself, but also how I hope my fellow app developers are nicer to one another, code-wise.

Continue Reading

When SDKs Update: To Upgrade or Not To Upgrade

August 5, 2015 12:34 PM

SDKs are on the rise, there’s no denying that. They’re a great way for developers to work out the more common pieces of code often found in mobile applications. These SDKs are the kind that will make their product whole on one hand, but on the other won’t be what sets their solution apart from all the rest.

More and more SDKs are being developed, released and integrated into increasing number of apps. The benefits and services offered to app developers become more versatile and intriguing as time goes by. No matter how much you may dread putting someone else’s code inside your app, it’s getting harder and harder to resist these temptations. Especially when developing them yourself may be too expensive and time consuming.

But much like your own app, SDKs are always trying to better themselves by offering new features, fixing bugs or security risks, etc. Which may sound lovely at first, until you realize a service you’re dependent on has changed. And while change may be a positive thing, it can also break things. So what do you do when an SDK offers a new version? Do you automatically upgrade or do you approach it with much more caution, hoping the current version you use will still be supported in the foreseeable future?

Actually, there are no real guidelines. No easy “do’s and don’ts” list. App developers are left pretty much to rely on their gut reaction and their thorough testing. So let me offer you some food for thought when making these tough decisions.

Continue Reading