Search code examples
iosmacosswiftuiapple-m1

'Failed to finalize LSBundleWrapper' on SwiftUI app build for release


I have a new app which I'm building to be cross platform using SwiftUI

When I build for release I get a very odd error in a popup generated by Xcode.

Unable To Install “nomadgo.ProductivityDashboard”

Please try again later.
Failed to finalize LSBundleWrapper mutator instance for

enter image description here

I only get this error one I build for release. I tried restarting my Macbook.

Specs:

Xcode Version 12.5.1 (12E507) MacBook Air (M1, 2020) BigSur

The app is fresh project using all latest Xcode settings for cross platform SwiftUI.

I get the error when trying to run the app on my MacBook.enter image description here


Solution

  • I had exactly same issue. In my case deleting the project from Containers folder and cleaning the project in Xcode (⌘ + ⇧ + K) helped.