On: MacBook M1, MacOS 12.4, Xcode 13.4.1 (the issue was present in the previous Xcode version too).
When executing (for an iOS app): "xcrun altool --upload-package ...", I've started getting (it didn't happen before) this error sequentially 28 times:
2022-06-07 07:58:57.740 *** Error: /Applications/Xcode.app/Contents/Developer/usr/bin/bitcode-build-tool, terminated with status: 2 2022-06-07 07:58:57.740 *** Error: /Applications/Xcode.app/Contents/Developer/usr/bin/bitcode-build-tool (2): bitcode-build-tool internal error Traceback (most recent call last): File "/Applications/Xcode.app/Contents/Developer/usr/bin/bitcode-build-tool", line 10, in bitcode_build_tool_main(sys.argv) File "/Applications/Xcode.app/Contents/Developer/usr/bin/../lib/bitcode_build_tool/main.py", line 65, in main env.initState(args) File "/Applications/Xcode.app/Contents/Developer/usr/bin/../lib/bitcode_build_tool/buildenv.py", line 160, in initState self.logger.debug("SDK path: {}".format(self.sdk)) AttributeError: 'BuildEnvironment' object has no attribute 'sdk'
After the errors are printed the upload-package starts the upload – though it no longer will show the upload progress – and eventually finishes without issue. I added some debug prints in buildenv.py and sure enough the args has "sdk_path=None".
Anyone else experiencing this? Any ideas on how to fix it?
After updating to Xcode 14 I'm no longer getting this error message and the upload time is back down to ~120 seconds for me (when the error occurred upload time was ~400 seconds).
One thing I did notice too in Xcode 14 is that it appears that "xcrun altool --upload-package" is in debug b/c it is printing out a lot of debug-like text.
I'm going to mark this as answered b/c this is no longer an issue for me after upgrading to Xcode 14.