Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode13 - Legacy Build System deprecated, unable to install to device with New Build System

Tags:

xcode

ios

xcode13

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?

enter image description here

like image 934
OLIVER.KOO Avatar asked Oct 24 '25 23:10

OLIVER.KOO


2 Answers

This is the new option that needs to be added to WorkspaceSettings.xcsettings file:

  1. Right click on <<Your_Project>>.xcworkspace file and click show package contents
  2. open xcshareddata folder
  3. edit 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>
like image 183
Rahul R Avatar answered Oct 26 '25 22:10

Rahul R


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.

like image 42
Cristian Zumelzu Avatar answered Oct 26 '25 22:10

Cristian Zumelzu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!