NEW: Start my new Ultimate Portfolio App course with a free Hacking with Swift+ trial! >>

Migrating app to multi-platform iOS 14/macOS 10.16 - creating new app folder structure?

Forums > Swift

I've been working on an app that I started on a few months back with iOS 13 and now I'd like to have it only support iOS 14+ and also be able to build to a macOS app. I updated the checkboxes in the Project file to support macOS and then I created a new app file that includes @main (along with adding the appdelegate mentioned here and I commented out "@UIApplicationMain" in AppDelegate.swift.

Now the build succeeds but instantly crashes for some symbol not found error with the directory mentioning maccatalyst (dyld: Symbol not found: _$s4Body7SwiftUI3AppPTl).

I created a new multiplatform app from scratch and noticed it has a new folder structure: Shared, iOS, macOS. Do I need to manually create this folder structure myself?


Did you ever figure something out for this issue? I just ran into the exact same thing. I could start over with a fresh multi-platform app, but I'm curious to see if you found a solution!


Hacking with Swift is sponsored by Fernando Olivares

SPONSORED Would you describe yourself as knowledgeable, but struggling when you have to come up with your own code? Fernando Olivares has a new book containing iOS rules you can immediately apply to your coding habits to see dramatic improvements, while also teaching applied programming fundamentals seen in refactored code from published apps.

Try the book!

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.