SimBuddy – Your Simulator’s BFF •

Have you ever ever added code like this to your app?

print(FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!.path)

Or possibly you’ve been pissed off that you would be able to’t add that code since you’re in the midst of debugging?

Yeah, me too. Many instances.

The places present above, and plenty of others, can be found from Xcode utilizing the xcrun simctl command. Each utility on each system on each platform will be queried. However these lookups are tough for builders as a result of the knowledge is structured round mechanically generated GUIDs. The GUID you’re on the lookout for modifications each time a brand new OS is out there, a tool is added, or an utility is put in. And we do this loads!

There are different instruments out there that can assist you navigate the Simulator, however all of them do far more than I actually need and take up area in my menu bar despite the fact that they’re used sometimes. Moreover, none of those instruments assist discover the “On My iPhone/iPad” container utilized by the Information app: a folder that I take advantage of each time I’m testing import and export code.

By now, you in all probability know the place that is going: sure, I wrote my very own utility and name it SimBuddy. It’s a FREE obtain from the Iconfactory.

SimBuddy makes use of two popup menus for navigation: the highest one exhibits which units are working within the Simulator and the one under exhibits all of the purposes put in on that system (your apps are listed first). When you make a alternative with these popups, you should utilize the buttons on the backside of the window to navigate within the Finder. If you’re utilizing app group containers for sharing data between an extension/widget and your major app, you open these folders by deciding on the ID and utilizing “Open”.

If the Terminal is extra your factor, you possibly can maintain down the choice key whereas clicking a button and a path to the folder is placed on the clipboard. Paste that right into a command line and away you go!

It’s not a sophisticated app, as you possibly can see from the supply code, nevertheless it’s one which I’m very joyful to have in my developer toolbox now. I hope you take pleasure in it, too!

P.S. I like placing Easter eggs in apps. This time it’s within the app icon.

Related Articles


Please enter your comment!
Please enter your name here

Latest Articles