NEW: Subscribe to Hacking with Swift+ and accelerate your learning! >>

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 https://www.hackingwithswift.com/quick-start/swiftui/how-to-add-an-appdelegate-to-a-swiftui-app) 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?

   

Hacking with Swift is sponsored by Paw

SPONSORED Use Paw to build, test and describe web APIs. Paw has a lightning fast native macOS interface to compose requests, collaborate in real-time on API specs, and generate client code for your applications. You can import and export API definitions.

Discover Paw for Mac

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

Not logged in

Log in
 

Link copied to your pasteboard.