Legacy Build System has been deprecated since Xcode10+ but can still choose to use it. In the newest xcode Xcode13 you would encounter an error if attempt to use it - release note reference
We were able to get our App build to device using the New Build System but it only works on the initial build. The subsequent builds will encounter a Unable To Install error. We find that reopen Xcode, close out simulators, clearing derivedData, Clean Build folder would make the build work again but only once then the "Unable To Install" error would appear again.
Anyone else seeing similar issues in Xcode13? If so, do you have suggestions or workaround?

This is the new option that needs to be added to WorkspaceSettings.xcsettings file:
<key>DisableBuildSystemDeprecationDiagnostic</key>
<true/
Here's a complete WorkspaceSettings.xcsettings file with both settings (please ignore the unrelated PreviewsEnabled option):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildSystemType</key>
<string>Original</string>
<key>DisableBuildSystemDeprecationDiagnostic</key>
<true/>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>
There should be an option in Xcode 13 to keep using the legacy build system. File-> Workspace Settings -> Check "Don't show a diagnostic issue about build system deprecation" and click done.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With