Search code examples
swiftxcodearkit

No such module 'ARKit'. Import error in xcode


I am a beginner in iOS development.

I started a new project > app > SwiftUI > Swift

I need to import ARKit for my project but I am receiving an error stating "No such module 'ARKit'." How do I fix this?

Does this require cocoapods?

Any link to documentation or a clear description of how to fix this error would be great. Thanks!


Solution

  • ARKit is not available on macOS so if you chose Multiplatform that won't compile.

    Create a new iOS project so that ARKit can be imported