21

After updating Xcode 14.0 when I try to distribute application as adhoc or developer, from the Xcode organizer I get the Error like

"The operation couldn’t be completed. (AppThinning.StubError error 1.)" enter image description here

But when I select upload application on the app store or try to export app for the app store its working fine and upload app on the app store.

Please suggest me what the issue this and if any know the solution then please guide.

Mahesh
  • 956
  • 10
  • 17
  • 1
    I think Apple is having issues with this as a whole. I'm having the exact opposite problem as you (able to export an ad hoc build but unable to get through "processing" when uploading to the App Store). After a couple weeks of emailing and calling them, they said their developers are "working on this issue". They are incredibly unhelpful, and I think we can really only wait till they fix this issue... – kbunarjo Sep 20 '22 at 04:59
  • However, maybe your issue is separate from mine. They gave me this link to debug app thinning issues which might help you: https://developer.apple.com/library/archive/technotes/tn2432/_index.html – kbunarjo Sep 20 '22 at 05:00
  • I worked around it by switching from automatically managed signing to manual creation & selection of a valid Provisioning Profile. – RobDil Sep 22 '22 at 20:36
  • Yes, After some days its working Thanks for your comments guys – Mahesh Oct 02 '22 at 14:53
  • any solution for this because in Xcode 14.2 it is not working ? – Kishan Bhatiya Mar 28 '23 at 12:40
  • Same for me in 14.2 – malaki1974 Mar 30 '23 at 17:57
  • I am getting in 14.3 – Kudos May 24 '23 at 13:04

10 Answers10

16

You can use this trick:

After press next button

enter image description here

enter image description here

enter image description here

before having the error:

I pressed repeatedly Enter(Return) button on the keyboard and It passes the error.

I could have an ad-hoc IPA

Maziar Saadatfar
  • 1,286
  • 1
  • 5
  • 11
4

In my case, (Maybe install older version XCode 13.4.1 is not needed.) I install older version XCode 13.4.1, and distribute application as adhoc again, then still show "The operation couldn’t be completed. (AppThinning.StubError error 1.)", I Click Show Logs, it will open logs folder. Open IDEDistribution.standard.log file, then I saw the error: `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)

So I search keyword and find this article. https://github.com/sparklemotion/sqlite3-ruby/issues/240

I try these SUDO Command:

gem uninstall sqlite3 --all

ridk exec pacman -S mingw-w64-x86_64-sqlite3

gem inst sqlite3 --platform ruby

Then distribute application as adhoc again, distribute Successful! Now you can back to XCode 14.1, and work fine again.

dearchris
  • 41
  • 3
  • Thanks! This solved my issue on Xcode 14.1, but the SQLite3 log error appears now on `IDEDistribution.verbose.log` file. Important, you also need to restart Xcode after the gem install. – remacr Dec 08 '22 at 18:46
3

I installed sqlite3, and set to use system default.

$ sudo gem install sqlite3
$ rvm use system --default

I referenced below.

https://blog.csdn.net/RreamigOfGirls/article/details/128146944

debug_ing
  • 476
  • 3
  • 13
1

In my case, starting Xcode with Rosetta let me do the Ad-Hoc distribution

Frederic
  • 11
  • 1
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 21 '22 at 21:49
1

This was broken for me on Xcode 14.0.1 but seems to be working on Xcode 14.1. I'm not sure if it's random luck, or actually fixed, as it's not mentioned in the release notes that I could find.

Oded
  • 954
  • 12
  • 16
1

I have fixed the issue by running sudo gem install sqlite3

You may need to restart your computer after the installation

The reason is because of this line in the IDEDistribution.verbose.log file

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in require': cannot load such file -- sqlite3/sqlite3_native (LoadError)

It may be happening because you installed another version of ruby, causing sqlite3 to be missing

More info here

Kelok Chan
  • 706
  • 1
  • 8
  • 24
0

Disabling bitcode worked for me. This is probably with an internal change apple made for ad-hoc builds or an error. I hope it's the latter.

CgtyKy
  • 51
  • 10
  • 4
    Experiencing same issue. Even with disabled bitcode. From time to time it works, but in most cases it doesn't. Very frustrating. – milan.rancic Oct 07 '22 at 13:22
  • 2
    Having also the same issue (working in Xcode 13.4.1 but not in Xcode 14.0.1), I tried to disable bitcode but the problem persists. From some tests, I have noticed the problem doesn't happen with a new project, which makes me think is some configuration that clashing. Additionally any builds sent to TestFlight seems to get stuck in processing since Xcode 14 came up. – Pablo Oct 12 '22 at 10:04
  • I found some additional information in the logs: OS_at_encoder is implemented in both /usr/lib/libate.dylib and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin/assetutil however can't see where the "OS_at_encoder" is used – Pablo Oct 14 '22 at 08:28
  • Has anyone been able to solve this yet? I disabled bitcode and still same problem. On Xcode 14.0.1 – Adam S. Oct 15 '22 at 18:50
0

Hi These Error may occur due to low storage space remaining on your MacBook. Free Some storage space and try again.

0

Removing Xcode and reinstalling it again worked for me.

Viker
  • 3,183
  • 2
  • 25
  • 25
0

I met a similar issue, and I solved like below: Click apple icon on the top left of screen > About this Mac > Storage > Manage > Developer and Open the screen, delete all cache, then it should work well.

reference taken from

Mobi
  • 69
  • 8
  • The reference you link in turn references a [stack overflow post](https://stackoverflow.com/a/72238810/20287183). Also note that this answer you have posted is out of date and doesn't apply as of macOS 13. – HangarRash Jun 08 '23 at 15:38
  • i got my issue resolved today, I'm on macOS 13.4. – Mobi Jun 08 '23 at 20:32
  • That's great your issue is resolved. But you missed my point. The answer you gave doesn't apply to macOS 13+. There is no "Storage" option from "About this Mac" any more. You need to go to System Settings -> General -> Storage -> Developer. – HangarRash Jun 08 '23 at 20:51