命令/Applications/Xcode-beta.app/Contents/Developer/usr/bin/actool执行失败,退出码为255。

12

在新的Xcode7 beta中发生了这种情况:

CompileAssetCatalog /Users/admin/Library/Developer/Xcode/DerivedData/InstaAd-ddgdnbxlpxipirebpndfmgrxspel/Build/Products/Debug-iphoneos/InstaAd.app InstaAd/Images.xcassets
    cd /Users/admin/Documents/git/InstaAdIOS/InstaAd
    export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode-beta.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/admin/Library/Developer/Xcode/DerivedData/InstaAd-ddgdnbxlpxipirebpndfmgrxspel/Build/Intermediates/InstaAd.build/Debug-iphoneos/InstaAd.build/assetcatalog_dependencies.txt --output-partial-info-plist /Users/admin/Library/Developer/Xcode/DerivedData/InstaAd-ddgdnbxlpxipirebpndfmgrxspel/Build/Intermediates/InstaAd.build/Debug-iphoneos/InstaAd.build/assetcatalog_generated_info.plist --app-icon AppIcon --launch-image LaunchImage --compress-pngs --enable-on-demand-resources YES --filter-for-device-model iPhone7,2 --filter-for-device-os-version 8.4 --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --platform iphoneos --compile /Users/admin/Library/Developer/Xcode/DerivedData/InstaAd-ddgdnbxlpxipirebpndfmgrxspel/Build/Products/Debug-iphoneos/InstaAd.app /Users/admin/Documents/git/InstaAdIOS/InstaAd/InstaAd/Images.xcassets

2015-08-10 14:25:53.366 IBCocoaTouchImageCatalogTool[1054:10336] CoreUI(DEBUG): CSIGenerator using 'LZVN' Compression coreui version (358.000000)
2015-08-10 14:25:56.449 ibtoold[675:6100] An uncaught exception was raised
2015-08-10 14:25:56.450 ibtoold[675:6100] The agent crashed

Application Specific Information:
CoreSimulator 179 - Device: IBSimDeviceTypeiPad1x - Runtime: iOS 9.0 (13A4325c) - DeviceType: IBSimDeviceTypeiPad1x


Thread 6 Crashed:: TDRenditionsDistiller._distill:
0   com.apple.CoreFoundation        0x000000010bc03f61 __CFBasicHashDrain + 353
1   com.apple.CoreFoundation        0x000000010bbf4a1c CFRelease + 300
2   com.apple.CoreFoundation        0x000000010bc03f42 __CFBasicHashDrain + 322
3   com.apple.CoreFoundation        0x000000010bbf4a1c CFRelease + 300
4   com.apple.ImageIO.framework     0x000000010d7f8028 modifyJPEG + 2859
5   com.apple.ImageIO.framework     0x000000010d6079b8 CGImageDestinationCopyImageSource + 576
6   com.apple.CoreThemeDefinition   0x000000010dbfcec9 -[TDSimpleArtworkRenditionSpec createCSIRepresentationWithCompression:colorSpaceID:document:] + 1690
7   com.apple.CoreThemeDefinition   0x000000010dc0555b -[TDRenditionsDistiller _distill:] + 609
8   com.apple.Foundation            0x000000010b2c73ab __NSThread__start__ + 1198
9   libsystem_pthread.dylib         0x000000010d236268 _pthread_body + 131
10  libsystem_pthread.dylib         0x000000010d2361e5 _pthread_start + 176
11  libsystem_pthread.dylib         0x000000010d23441d thread_start + 13


Last command:
_ON_QUEUE_sendMessage:toChannelReturningError:during:

Backtrace of last command:
  0  0x00000001111c69f6 -[IBAbstractPlatformToolProxy _ON_QUEUE_sendMessage:toChannelReturningError:during:] (in IDEInterfaceBuilderKit)
  1  0x00000001111c68bb __74-[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:]_block_invoke (in IDEInterfaceBuilderKit)
  2  0x00007fff8c046c13 _dispatch_client_callout (in libdispatch.dylib)
  3  0x00007fff8c047e5e _dispatch_barrier_sync_f_invoke (in libdispatch.dylib)
  4  0x000000011007aabc DVTDispatchSync (in DVTFoundation)
  5  0x00000001111c67de -[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:] (in IDEInterfaceBuilderKit)
  6  0x000000011aae2526 (in IDEInterfaceBuilderCocoaTouchIntegration)
  7  0x000000011aacda8b (in IDEInterfaceBuilderCocoaTouchIntegration)
  8  0x000000011111dbf3 __84-[IBICAbstractPlatformAdapter compileSelectedItems:options:queue:completionHandler:]_block_invoke (in IDEInterfaceBuilderKit)
  9  0x000000011007abb0 __DVTDispatchAsync_block_invoke (in DVTFoundation)
 10  0x00007fff8c04b323 _dispatch_call_block_and_release (in libdispatch.dylib)
 11  0x00007fff8c046c13 _dispatch_client_callout (in libdispatch.dylib)
 12  0x00007fff8c052cbf _dispatch_main_queue_callback_4CF (in libdispatch.dylib)
 13  0x00007fff8d58b3f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ (in CoreFoundation)
 14  0x00007fff8d54668f __CFRunLoopRun (in CoreFoundation)
 15  0x00007fff8d545bd8 CFRunLoopRunSpecific (in CoreFoundation)
 16  0x00000001111912bc -[NSRunLoop(IBIDEFoundationRunLoopAdditions) ib_spinRunLoopInMode:whileBlockExecutesConcurrently:] (in IDEInterfaceBuilderKit)
 17  0x00000001111914ba -[NSRunLoop(IBIDEFoundationRunLoopAdditions) ib_spinRunLoopInMode:waitingForSemaphore:] (in IDEInterfaceBuilderKit)
 18  0x000000010fde887a (in ibtoold)
 19  0x000000010fde9e30 (in ibtoold)
 20  0x000000010fdea2b0 (in ibtoold)
 21  0x000000010fdf7e6f (in ibtoold)
 22  0x000000010fdf8523 (in ibtoold)
 23  0x000000010fdf83fa (in ibtoold)
 24  0x000000010fde76c2 (in ibtoold)
 25  0x000000010fdf7a64 (in ibtoold)
 26  0x000000010fdf6cc9 (in ibtoold)
 27  0x00007fff8eb585c9 start (in libdyld.dylib)
2015-08-10 14:25:56.451 ibtoold[675:6100] (
    0   CoreFoundation                      0x00007fff8d63803c __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00007fff980b976e objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff8d637bd9 -[NSException raise] + 9
    3   IDEInterfaceBuilderKit              0x00000001111c5b55 -[IBAbstractPlatformToolProxy _errorByAddingAdditionalCrashInformationToError:orRaiseIfNeededOnFailure:shouldRaiseOnFailures:waitForCrashLog:] + 1632
    4   IDEInterfaceBuilderKit              0x00000001111c54cb -[IBAbstractPlatformToolProxy errorByAddingAdditionalCrashInformationToError:orRaiseIfNeededOnFailure:] + 98
    5   IDEInterfaceBuilderKit              0x00000001111c6a90 -[IBAbstractPlatformToolProxy _ON_QUEUE_sendMessage:toChannelReturningError:during:] + 227
    6   IDEInterfaceBuilderKit              0x00000001111c68bb __74-[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:]_block_invoke + 38
    7   libdispatch.dylib                   0x00007fff8c046c13 _dispatch_client_callout + 8
    8   libdispatch.dylib                   0x00007fff8c047e5e _dispatch_barrier_sync_f_invoke + 57
    9   DVTFoundation                       0x000000011007aabc DVTDispatchSync + 62
    10  IDEInterfaceBuilderKit              0x00000001111c67de -[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:] + 393
    11  IDEInterfaceBuilderCocoaTouchIntegration 0x000000011aae2526 IBUISegmentConfiguration + 6975
    12  IDEInterfaceBuilderCocoaTouchIntegration 0x000000011aacda8b IBUIControlEventTypeToUIControlEventMask + 17323
    13  IDEInterfaceBuilderKit              0x000000011111dbf3 __84-[IBICAbstractPlatformAdapter compileSelectedItems:options:queue:completionHandler:]_block_invoke + 230
    14  DVTFoundation                       0x000000011007abb0 __DVTDispatchAsync_block_invoke + 69
    15  libdispatch.dylib                   0x00007fff8c04b323 _dispatch_call_block_and_release + 12
    16  libdispatch.dylib                   0x00007fff8c046c13 _dispatch_client_callout + 8
    17  libdispatch.dylib                   0x00007fff8c052cbf _dispatch_main_queue_callback_4CF + 861
    18  CoreFoundation                      0x00007fff8d58b3f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
    19  CoreFoundation                      0x00007fff8d54668f __CFRunLoopRun + 2159
    20  CoreFoundation                      0x00007fff8d545bd8 CFRunLoopRunSpecific + 296
    21  IDEInterfaceBuilderKit              0x00000001111912bc -[NSRunLoop(IBIDEFoundationRunLoopAdditions) ib_spinRunLoopInMode:whileBlockExecutesConcurrently:] + 500
    22  IDEInterfaceBuilderKit              0x00000001111914ba -[NSRunLoop(IBIDEFoundationRunLoopAdditions) ib_spinRunLoopInMode:waitingForSemaphore:] + 131
    23  ibtoold                             0x000000010fde887a ibtoold + 10362
    24  ibtoold                             0x000000010fde9e30 ibtoold + 15920
    25  ibtoold                             0x000000010fdea2b0 ibtoold + 17072
    26  ibtoold                             0x000000010fdf7e6f ibtoold + 73327
    27  ibtoold                             0x000000010fdf8523 ibtoold + 75043
    28  ibtoold                             0x000000010fdf83fa ibtoold + 74746
    29  ibtoold                             0x000000010fde76c2 ibtoold + 5826
    30  ibtoold                             0x000000010fdf7a64 ibtoold + 72292
    31  ibtoold                             0x000000010fdf6cc9 ibtoold + 68809
    32  libdyld.dylib                       0x00007fff8eb585c9 start + 1
    33  ???                                 0x0000000000000002 0x0 + 2
)
Command /Applications/Xcode-beta.app/Contents/Developer/usr/bin/actool failed with exit code 255
如何解决这个问题?

错误是由模拟器引起的,如果已经打开,请关闭您的模拟器,然后再次运行您的应用程序,它应该可以正常工作。 - swiftBoy
10个回答

10

这是由于资源目录中的JPG图片问题导致的,所以我直接将JPG图片导入项目中,现在它可以正常工作了。


为什么会这样呢?难道资源目录不支持JPG格式吗? - sdoowhsoj
似乎它支持,因为你甚至可以将jpg文件添加到其中,但是在xcode beta中它开始崩溃。但是当我从资源目录中删除了所有的jpg文件后,它立即开始工作。 - Paul T.
这个问题在GM种子版本中已经修复(自9月9日起可用)。XC资源目录对我来说工作正常。 - felixthecat
是的,问题是由于其他图像类型引起的。它应该只有PNG格式的图像。 - zaheer

2
我在使用Xcode V7b6添加JPG图片到资源文件时遇到了相同的问题。奇怪的是,有些JPG图片正常工作,而另一些则不行。后来我查看了这些JPG图片的颜色配置文件、exif数据和其他元数据,通过使用GraphicConverter删除它们解决了该问题,并使Xcode成功编译。

1
在图像资源中使用PDF文件会导致此错误。我使用@1x @2x @3x图像的png文件,Xcode运行良好。

1
这个错误发生是因为图片名称包含了一些不支持的字符(它被Xcode保存为c71a25e%2FÍcone-XPTO Imagem - 120x120.png,即使放在.xcassets中)。更改图片名称解决了这个错误。

0
有时候,你应该取消"alpha"选项,将你的png图片导出到Xcode。这解决了我的问题。
打开“预览”应用程序 - 文件 - 导出 - 取消选中“alpha”选项,然后替换Xcode项目中的旧图像。

0

我之前也遇到了这个问题,并用普通的.JPG文件替换了XC Assets。对我解决了问题。

然而,我刚刚安装了Xcode 7的GM种子版本,并使用了XC资源目录进行编译,现在不再出现错误了。所以看起来已经被修复了。


0

我只需要简单地重启Xcode就解决了这个错误。


0
对于Xcode的所有beta版本,您应该前往偏好设置->位置,确保命令行工具指向正确的版本,并且派生数据和档案指向与稳定版Xcode不同的文件夹。

0

在 Xcode 8 Beta 6 中构建简单的贴纸包时,出现了actool错误。

似乎是一个已知的动画贴纸错误,很快就会被修复。


0

尽管有所有的建议,我仍然无法解决这个问题。 在我的操作系统更新后,我遇到了这个问题。

当我开始清除Xcode缓存时,它对我起作用了。 具体来说,删除以下内容: 〜/Library/Caches/com.apple.dt.Xcode 〜/Library/Caches/com.apple.dt.Xcode.ITunesSoftwareService 〜/Library/Caches/com.apple.dt.Xcode.sourcecontrol.Git

我不得不删除并添加所需的模拟器。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接