Music, TV, and podcasts take center stage. ITunes forever changed the way people experienced. With the introduction of new macOS, 10.14 Mojave, Apple started building iOS-like apps for Macs. Aside from the adaption to the big screen, the apps look and work exactly the way they do on your iPhone or iPad. Run iPad Apps on Your Mac. Sticking with the iPad theme, macOS Catalina also makes it easier for iOS developers to port iPad apps to the desktop. Apple calls this Catalyst, and we should see an influx of apps coming to the Mac over the next few months as developers familiarize themselves with the porting process.
Streaming is available in most browsers,
and in the WWDC app.
It’s 2020, and Mac and iOS apps are apparently meant to be shared. This wasn’t always the case, of course: For the longest time, macOS and iOS apps ran on completely different tracks by design. But with macOS Catalina and Xcode 11, it’s really simple to bring mobile apps to the desktop.
Here, we’ll walk you through how to use Project Catalyst (which Apple officially calls “Mac Catalyst”) to bring mobile apps to the Mac—but first, let’s talk about why you’d want to.
(If you’re new to iOS development in general, check out our tutorials on the various aspects of Swift, including sets, arrays, strings, and Package Manager.)
Why Bring iOS and iPadApps to Mac?
One caveat to porting apps: You can only bring iPad apps to Mac. Apple hasn’t yet made it possible to bring iOS/iPhone apps to Mac, much less watchOS apps. This is a continuation of Apple’s conflating iPads with “computers,” so it’s unclear when (or if) Apple will allow iPhone-centric apps onto the desktop.
Those with iPadOS apps will find porting to the Mac simple, butmay wonder why they should bother. Cross-platform subscriptions are one factorto consider. If you have iPad and Mac versions of your app, it becomes moreattractive to users who use both platforms frequently.
![]()
Xcode 11.4 has added a feature allowing universal purchases, meaning that, when someone buys your iOS app, they can automatically receive the macOS version, as well. In-app purchases will also be shared.
How to Port iPad Apps to Mac Using Catalyst
Note: You will need macOS 10.15 or newer, and Xcode 11 or newer.
Here are the really simple step-by-step instructions for porting iPad apps to Mac:
![]()
Open your project’s ‘general’ interface from the project navigator:
Select ‘Mac’ under ‘Deployment Info’:
A popup will ask if you want to enable Mac support. Click ‘Enable’:
That’s it! You’ve now created an app available to iOS, iPad, andMac. It really is that simple.
TroubleshootingIpad Os Apps On Macos
There are a few things that can go wrong, but, fortunately, thefixes are as simple as creating a cross-platform app.
First, make sure you have a team assigned to your project.Sometimes, Xcode forgets that you have a team, or doesn’t default to a team.(I’ve noticed it sometimes toggles to ‘no team’ when targeting Mac underdeployment info, too.)
Simply head to your general interface, select ‘signing andcapabilities’ from the top menu, and add your team from the drop-down. If youdon’t have a team, adding one is simple. From the menu bar, go to Xcode >Preferences > Accounts. Here you can add your team (or teams).
Another thing people ignore: When you select Mac as a target, youmust have iPad selected, as well. Some will try to toggle iPad off, which automaticallytoggles Mac off as a target. You can target iPad without the Mac.
Run Ios Apps On MacosWhat’s Happening When I Target the Mac?
First, Apple adds all the Mac-y things your app may need, such askeyboard and touchpad/mouse support. Because Macs aren’t touchscreen, usersneed a way to interface with apps, and Apple makes it all really easy fordevelopers. It also sandboxes your app on desktop so you don’t have to worryabout basic security.
Second, your app gets a unique bundle identifier. If you paid close attention, you’ll notice that toggling Mac under the Deployment Info screen added an un-editable bundle identifier under your bundle identifier window. It’s simply adding
maccatalyst in front of your bundle identifier. Editing your bundle identifier likewise changes the ‘Mac Catalyst’ bundle identifier.
Porting iOS Apps to Mac is Easy!
Fortunately for you, we’re really not oversimplifying this process! It really is that simple to bring your iOS and iPadOS apps to macOS.
Your work may not be done. In the storyboard view, you can select myriad devices to work with, including a Mac window in dark or light mode (as seen above). We recommend making sure your apps are performant and beautiful across devices. This will add to your testing time and process, but it’s worth it if you’re asking users to pay for your app, and goes a long way to earning great reviews.
Membership has its benefits. Sign up for a free Dice profile, add your resume, discover great career insights and set your tech career in motion. Register now
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |