While trying to export (distribute) an archive (Mac M1 Ventura 13.3, Xcode 14.3) I get the following error:
The operation couldn’t be completed. (AppThinning.StubError error 1.)
The logs show the following error:
'/Library/Ruby/Gems/2.6.0/gems/sqlite3-1.6.0/lib/sqlite3/sqlite3_native.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
In the past, I've ran Xcode using Rosetta, which isn't possible anymore...
So it seems like an Arm / x86 issue...
I've tried (from here):
gem install CFPropertyList
gem install sqlite3
And even
gem install sqlite3 --platform arm64-darwin
No luck... Any ideas?