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?
5
Answers
File -> build system -> new build system.
This is the new option that needs to be added to WorkspaceSettings.xcsettings file:
Here’s a complete WorkspaceSettings.xcsettings file with both settings (please ignore the unrelated PreviewsEnabled option):
If using CLI, you can use the following commands:
Obviously, find the relevant file for the project to modify.
I have already installed both Apple Development and Distribution certificates in my local
Keychain Access
but I was facing the same problem with you though.Interestingly, only thing that I changed
Signing(Debug)
option toAutomatically manage signing
and it builded up on my real device finally.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.