// archives

macOS

This tag is associated with 65 posts
apple-silicon-homebrew@2x.jpg

How to Run Legacy Command Line Apps on Apple Silicon

Being in the “bleeding edge” has its drawbacks in addition to benefits. Blazing a fresh trail means it’s more rough and plenty of unknowns. Similarly in open source software, support for the ARM architecture is slim and even slimmer on the Mac. But there is a way to run “legacy” Intel-only command line apps on […]

notarized-disk-image@2x.png

Back to the Mac: How to Notarize Disk Images for Distribution Outside the Mac App Store

Distributing macOS apps as ZIP archives has been quaint since Sierra. Today’s macOS packaging requirements mandates notarization, otherwise it would say that your app is suspicious. This often means distributing apps within disk images since this container format can be signed, notarized, and stapled.

security-acorn-processor@2x.jpg

How to Compile OpenSSL 1.1.1 for Apple Silicon

The long-rumored ARM Mac is on the horizon. With this comes the big work of porting and re-compiling current applications. But many Mac App Store apps are dependent on OpenSSL, which doesn’t yet support ARM on the Mac. Here is how you can continue to test your mac app while waiting for official OpenSSL support […]

swift-server-test@2x.jpg

How to Unit Test Network Code in Swift

Testing network I/O code without accessing the backend is not easy. Here is how you can mock the backend by injecting code into the URL Loading System

ice-cream-samples@2x.jpg

How to Provide Free Time-Limited Trials in the App Store

Providing “lite” version of apps had been the strategy to provide free trials since the dawn of the App Store. However these reduced-functionality apps fall short on demonstrating its full capabilities, which in itself be ineffective in enticing the user to buy. Fortunately that is no longer the only option available for App Store apps.

library-bookshelf@2x.jpg

Code Signing Failure due to Symlink Folders

You try to reduce the application’s size by sharing resources in framework bundles and creating symbolic links so that other frameworks can find and use those resources. However this fell at odds with code signing (and probably notarization). Here is how to share code and resources in frameworks the right way.

swift-ui-design-2@2x.jpg

How Newbies Should Start Learning iOS User Interface Programming

When you’re just starting out in iOS development, there are so many options in which to place a button. There’s storyboard, auto layout, and even SwiftUI — that’s just scratching the surface. How should someone new to programming the platform chart a learning path?

point-golden-shopping-cart@2x.jpg

Modeling In-App Purchases Inventory

There are four types of in-app purchases in Apple’s App Store, with their own unique ways to manage it. The challenge is how to isolate the intricacies of these product types from the rest of the application. Otherwise a move from non-consumable in-app purchase to a subscription type would involve a major rewrite. Learn how […]

tap-to-purchase@2x.jpg

Time-Limited in-App Purchase

What if you need to create a “holiday special” in-app purchase? The item would only be available at a limited period some time in the future. However those who have bought the item would be able to use it beyond the purchase-able period, including restoring purchases should they need it.

disk-exposed.jpg

Notarizing Disk Images for Developer ID Distribution

Do you distribute your macOS apps as .zip files? That has been quaint since Sierra. You should package your apps as signed and notarized disk images instead. Otherwise Catalina would say that your package is suspicious. However creating disk images is a rather involved process. Read on to find out more.

upload-hand@2x.jpg

Selecting iTunes Provider for Notarization

When your Apple ID is also used for as a publisher for Apple Books or Apple Music, you may hit a snag when trying to notarize your Developer ID application. Here is how to fix it.

bundle-identifier@2x.jpg

Invalid Bundle Identifier Error at Notarization

Notarizing your app? Make sure you name your bundles correctly beforehand. This includes the main app, extensions, and any sub-bundles inside it.

senior-spice-store@2x.jpg

All About In-App Purchases

There are four types of in-app purchases in Apple’s App Store, with their own unique ways to manage it. Learn how to manage an app’s inventory of purchases, get the code base resilient to changes in the business side, and tips on how to implement some more esoteric business models as in-app purchases.

database@2x.jpg

Future-Proof Your Data Persistence

The data persistence stack that is an appropriate decision today may not be an optimal solution when your app has grown. You would need to design your app to withstand the test of time and be extensible for as it grows. Read more to learn how.

Categories

Archives