Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updated to Xcode 13, get unique error code when trying to run SwiftUI app on iOS but not macOS

Tags:

xcode

ios

swiftui

When I try to build my app I receive the following error:

Unable to find a profile type for platform iOS and purpose development. You may need to reinstall Xcode.

Which I promptly did, but it does not fix the issue. Neither does cleaning build folder, rebooting, restarting, etc. Anybody encountered this before?

like image 441
FrontFacingWindowCleaner Avatar asked Sep 27 '21 17:09

FrontFacingWindowCleaner


People also ask

What versions of iOS does Xcode 13 support?

Overview. Xcode 13 includes SDKs for iOS 15, iPadOS 15, tvOS 15, watchOS 8, and macOS Big Sur 11.3. The Xcode 13 release supports on-device debugging for iOS 9 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 13 requires a Mac running macOS 11.3 or later.

Does Xcode 13 support iOS 14?

While apps built with Xcode 13 will be required, the newest version of the SDK will still support older Apple software, including iOS 14, iPadOS 14 and macOS Big Sur. Apple is currently on Xcode version 13.3, which was released on March 14 alongside iOS 15.4, iPadOS 15.5, and other updates on Monday.

Is Xcode 13 required for iOS 15?

Starting April 25, 2022, iOS, iPadOS, and watchOS apps submitted to the App Store must be built with Xcode 13, which includes the SDKs for iOS 15, iPadOS 15, and watchOS 8.


2 Answers

I fixed this by removing "Allow Multi-Platform Builds" in Build Settings.

like image 184
bryceco Avatar answered Oct 10 '22 02:10

bryceco


I got the same problem, it was building only on simulator and not in device. This happened after I installed a new package in SPM (SwiftLint).

And this is what worked for me:

  1. Go to target
  2. Build Settings
  3. In "Build Options", set "Allow Multi-platforms Builds" to "No"
like image 32
swifthing Avatar answered Oct 10 '22 04:10

swifthing