Post

Replies

Boosts

Views

Activity

Reply to CompileAssetCatalogVariant failed with nonzero exit code.
@DTS Engineer This is the whole error by the way: CoreUI: Error: unable to add asset to store *** Terminating app due to uncaught exception 'IBPlatformToolFailureException', reason: 'The tool closed the connection (AssetCatalogSimulatorAgent) Last command: _ON_QUEUE_sendMessage:toChannelReturningError:during: Backtrace of last command: 0 -[IBAbstractPlatformToolProxy _ON_QUEUE_sendMessage:toChannelReturningError:during:] (in IDEInterfaceBuilderKit) 1 __74-[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:]_block_invoke (in IDEInterfaceBuilderKit) 2 _dispatch_client_callout (in libdispatch.dylib) 3 _dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib) 4 DVTDispatchSync (in DVTFoundation) 5 -[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:] (in IDEInterfaceBuilderKit) 6 -[AssetCatalogRemoteAgentProxy compileItemsWithCatalogRelativeIdentifierPaths:tagSolutionSpace:andStickerPacksWithCatalogRelativeIdentifierPaths:options:] (in IDEInterfaceBuilderCocoaTouchIntegration) 7 -[IBICSimulatorToolCARCompiler compileCARItems:tagSolutionSpace:options:queue:completionHandler:] (in AssetCatalogCocoaTouchKit) 8 -[IBICAbstractPlatformAdapter compileCARItems:tagSolutionSpace:options:queue:completionHandler:] (in AssetCatalogFoundation) 9 __84-[IBICAbstractPlatformAdapter compileSelectedItems:options:queue:completionHandler:]_block_invoke (in AssetCatalogFoundation) 10 __93-[IBICAbstractPlatformAdapter compileStandaloneCatalogItems:options:queue:completionHandler:]_block_invoke (in AssetCatalogFoundation) 11 __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation) 12 __DVTDispatchAsync_block_invoke (in DVTFoundation) 13 _dispatch_call_block_and_release (in libdispatch.dylib) 14 _dispatch_client_callout (in libdispatch.dylib) 15 _dispatch_main_queue_drain.cold.5 (in libdispatch.dylib) 16 _dispatch_main_queue_drain (in libdispatch.dylib) 17 _dispatch_main_queue_callback_4CF (in libdispatch.dylib) 18 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ (in CoreFoundation) 19 __CFRunLoopRun (in CoreFoundation) 20 CFRunLoopRunSpecific (in CoreFoundation) 21 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] (in Foundation) 22 -[NSRunLoop(DVTNSRunLoopAdditions) dvt_spinRunLoopInMode:whileQueue:executesAsynchronously:] (in DVTFoundation) 23 -[NSRunLoop(DVTNSRunLoopAdditions) dvt_spinRunLoopInMode:whileBlockExecutesConcurrently:] (in DVTFoundation) 24 -[NSRunLoop(DVTNSRunLoopAdditions) dvt_spinRunLoopInMode:waitingForSemaphore:] (in DVTFoundation) 25 -[IBCLIImageCatalogToolPersona compileCatalogCollection:withPlatformAdapter:arguments:outputDictionary:] (in ibtoold) 26 -[IBCLIImageCatalogToolPersona invokeArguments:outputDictionary:] (in ibtoold) 27 -[IBCLIImageCatalogToolPersona runSingleInvocation:outputtingToFileHandle:andVerifyingEnvironment:] (in ibtoold) 28 IBCLIServerRunSingleInvocation (in ibtoold) 29 __IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess_block_invoke_2 (in ibtoold) 30 __IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess_block_invoke (in ibtoold) 31 -[IBCLIErrorForwarder forwardErrorOutputToDescriptor:whileInvokingBlock:] (in ibtoold) 32 IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess (in ibtoold) 33 main (in ibtoold) 34 start (in dyld) Execution Context: <IBSimulatorToolCoreSimulatorCLIExecutionContext: 0x6000023dbea0 busyCount=0, Idle for 0.0 secs, lifeTime=63.4 secs>, device=IBSimDeviceTypeiPad3x (ACD2DA5F-C94B-40B4-99A8-741B47BDDF57, iOS 18.5, Shutdown), idiom=<IBIPhoneIdiom: 0x6000031fc370> ' *** First throw call stack: ( 0 CoreFoundation 0x000000018e3bfae0 __exceptionPreprocess + 176 1 libobjc.A.dylib 0x000000018de82b90 objc_exception_throw + 88 2 CoreFoundation 0x000000018e3e4154 _CFBundleGetValueForInfoKey + 0 3 IDEInterfaceBuilderKit 0x0000000104c9c97c -[IBAbstractPlatformToolProxy _errorByAddingAdditionalCrashInformationToError:orRaiseIfNeededOnFailure:shouldRaiseOnFailures:waitForCrashLog:] + 1204 4 IDEInterfaceBuilderKit 0x0000000104c9c4a0 -[IBAbstractPlatformToolProxy errorByAddingAdditionalCrashInformationToError:orRaiseIfNeededOnFailure:] + 80 5 IDEInterfaceBuilderKit 0x0000000104c9e0c0 -[IBAbstractPlatformToolProxy _ON_QUEUE_sendMessage:toChannelReturningError:during:] + 188 6 IDEInterfaceBuilderKit 0x0000000104c9dfc8 __74-[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:]_block_invoke + 32 7 libdispatch.dylib 0x000000018e0c585c _dispatch_client_callout + 16 8 libdispatch.dylib 0x000000018e0bb7a8 _dispatch_lane_barrier_sync_invoke_and_complete + 56 9 DVTFoundation 0x00000001039820d4 DVTDispatchSync + 148 10 IDEInterfaceBuilderKit 0x0000000104c9df14 -[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:] + 196 11 IDEInterfaceBuilderCocoaTouchIntegr 0x000000011a029978 -[AssetCatalogRemoteAgentProxy compileItemsWithCatalogRelativeIdentifierPaths:tagSolutionSpace:andStickerPacksWithCatalogRelativeIdentifierPaths:options:] + 208 12 AssetCatalogCocoaTouchKit 0x000000010e220854 -[IBICSimulatorToolCARCompiler compileCARItems:tagSolutionSpace:options:queue:completionHandler:] + 924 13 AssetCatalogFoundation 0x00000001036cdee0 -[IBICAbstractPlatformAdapter compileCARItems:tagSolutionSpace:options:queue:completionHandler:] + 408 14 AssetCatalogFoundation 0x00000001036cd360 __84-[IBICAbstractPlatformAdapter compileSelectedItems:options:queue:completionHandler:]_block_invoke + 188 15 AssetCatalogFoundation 0x00000001036d195c __93-[IBICAbstractPlatformAdapter compileStandaloneCatalogItems:options:queue:completionHandler:]_block_invoke + 24 [...] 35 ibtoold 0x0000000102cdaf libc++abi: terminating due to uncaught exception of type NSException Command CompileAssetCatalogVariant failed with a nonzero exit code
Oct ’25
Reply to CompileAssetCatalogVariant failed with nonzero exit code.
@DTS Engineer creating an empty project and copy/pasting the assets catalog does indeed reproduce the issue, the problem is that such catalog contains over 3k files total and its size is around 1.2GB, I don't think one can attach samples that large. Of course in that 1.2GB there are assets that do not contribute to the issue, and I'm trying to slowly find a minimal set of assets that causes the issue to appear. Apple Support seems to require at most 50MB which is basically impossible for the scope of the project. The issue appears with every version of XCode, it just fails with this error when building with Archive scheme, but runs and builds fine if a simulator or physical device is selected.
Oct ’25
Reply to CompileAssetCatalogVariant failed with nonzero exit code.
@DTS Engineer I ended up moving part of the images from the assets catalogs to the bundle files, that is, I just dragged around 700MB of images under the project folder, and was then able to compile and send to the App Store. It looks like images were not corrupted so it wasn’t a problem with images. Still don’t know what caused it, my best bet is that the OS kills the process after it drains the CPU (it goes to 100% usage on all the mac I tried) for about 140 seconds.
4w