资产目录编译错误 - TDDIstiller实例只能被提取一次

Mer*_*mis 19 xcode image objective-c ios

所以,我有一个我在Xcode中构建的应用程序,并且事情已经进行了一段时间.但是,我突然得到错误:

Images.xcassets: error: ERROR: Each TDDistiller instance can be distilled only one time!
Run Code Online (Sandbox Code Playgroud)

那么,有两个问题:

1)我不知道这意味着什么,显然谷歌,必应或雅虎也没有.

2)我不知道如何解决它.我几个月没有更改我的资产目录,所以我不知道是什么原因引入了这个错误.

以下是构建的错误日志:

2015-01-07 19:41:57.348 IBCocoaTouchImageCatalogTool[1226:17469] 
BOMStorage BOMStorageNewWithOptionsAndSys(const char *, 
CFDictionaryRef, BomSys *) can't open: 
'/Users/user/Library/Developer/Xcode/DerivedData/Videographer-
eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-
iphonesimulator/Videographer.app/Assets.car' Permission denied  2015-
01-07 19:41:57.349 IBCocoaTouchImageCatalogTool[1226:17469] Error: 
unable to create storage file 
/Users/user/Library/Developer/Xcode/DerivedData/Videographer-
eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-
iphonesimulator/Videographer.app/Assets.car error 'No such file or 
directory' /* com.apple.actool.errors */ 
/Users/user/Documents/Videographer/Videographer/Images.xcassets: 
error: ERROR: Each TDDistiller instance can be distilled only one 
time! /* com.apple.actool.document.notices */ 
Run Code Online (Sandbox Code Playgroud)

/Users/user/Documents/Videographer/Videographer/Images.xcassets:./AppIcon.appiconset/[iphone][57x57][1x]: notice: 57x57 app icons only apply to iPhone apps targeting releases of iOS prior to 7.0 /Users/user/Documents/Videographer/Videographer/Images.xcassets:./AppIcon.appiconset/[iphone][57x57][2x]: notice: 57x57@2x app icons only apply to iPhone apps targeting releases of iOS prior to 7.0 /Users/user/Documents/Videographer/Videographer/Images.xcassets:./AppIcon.appiconset/[ipad][50x50][1x]: notice: 50x50 iPad spotlight icons only apply to iPad apps targeting releases of iOS prior to 7.0 /Users/user/Documents/Videographer/Videographer/Images.xcassets:./AppIcon.appiconset/[ipad][50x50][2x]: notice: 50x50 iPad spotlight icons only apply to iPad apps targeting releases of iOS prior to 7.0 /Users/user/Documents/Videographer/Videographer/Images.xcassets:./AppIcon.appiconset/[ipad][72x72][1x]: notice: 72x72 app icons only apply to iPad apps targeting releases of iOS prior to 7.0 /Users/user/Documents/Videographer/Videographer/Images.xcassets:./AppIcon.appiconset/[ipad][72x72][2x]: notice: 72x72@2x app icons only apply to iPad apps targeting releases of iOS prior to 7.0 /* com.apple.actool.compilation-results */ /Users/user/Library/Developer/Xcode/DerivedData/Videographer-eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-iphonesimulator/Videographer.app/AppIcon29x29.png /Users/user/Library/Developer/Xcode/DerivedData/Videographer-eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-iphonesimulator/Videographer.app/AppIcon29x29@2x.png /Users/user/Library/Developer/Xcode/DerivedData/Videographer-eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-iphonesimulator/Videographer.app/AppIcon40x40@2x.png /Users/user/Library/Developer/Xcode/DerivedData/Videographer-eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-iphonesimulator/Videographer.app/AppIcon57x57.png /Users/user/Library/Developer/Xcode/DerivedData/Videographer-eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-iphonesimulator/Videographer.app/AppIcon57x57@2x.png /Users/user/Library/Developer/Xcode/DerivedData/Videographer-eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-iphonesimulator/Videographer.app/AppIcon60x60@2x.png /Users/user/Library/Developer/Xcode/DerivedData/Videographer-eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-iphonesimulator/Videographer.app/AppIcon40x40~ipad.png /Users/user/Library/Developer/Xcode/DerivedData/Videographer-eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-iphonesimulator/Videographer.app/AppIcon50x50~ipad.png /Users/user/Library/Developer/Xcode/DerivedData/Videographer-eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-iphonesimulator/Videographer.app/AppIcon50x50@2x~ipad.png /Users/user/Library/Developer/Xcode/DerivedData/Videographer-eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-iphonesimulator/Videographer.app/AppIcon72x72~ipad.png /Users/user/Library/Developer/Xcode/DerivedData/Videographer-eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-iphonesimulator/Videographer.app/AppIcon72x72@2x~ipad.png /Users/user/Library/Developer/Xcode/DerivedData/Videographer-eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-iphonesimulator/Videographer.app/AppIcon76x76~ipad.png /Users/user/Library/Developer/Xcode/DerivedData/Videographer-eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-iphonesimulator/Videographer.app/AppIcon76x76@2x~ipad.png /Users/user/Library/Developer/Xcode/DerivedData/Videographer-eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-iphonesimulator/Videographer.app/Assets.car /Users/user/Library/Developer/Xcode/DerivedData/Videographer-eubeafyfmzewucdlcmfhmdsusjng/Build/Intermediates/Videographer.build/Debug-iphonesimulator/Videographer.build/assetcatalog_generated_info.plist

有任何想法吗?我在Xcode 6.1.1中处理针对iOS 8.1的项目.

Mer*_*mis 28

清除项目的DerivedData文件夹为我消除了错误.

  • 抱歉,我在清除派生数据后没有得到帮助。我的项目是在 Xcode 8.3 上创建的,然后我将我的 macOS 更新到了高山脉 (10.13.2) 并将 Xcode 更新到了 9.2,之后我收到错误消息“每个 TDDistiller 实例只能蒸馏一次!” 这是 Assets.xcassets 相关问题。请帮忙 (3认同)

Adi*_*ain 9

退出Xcode,退出模拟器,重新打开Xcode并重新重新运行构建对我有用.不知道这个错误究竟是什么!


rog*_*oom 6

在我的情况下,可能与CocoaPod有关,导致我的Build目录用小写创建build.然后Distiller 在大写目录中查找Asset.car文件,Build正如您从日志的这一部分中看到的那样

/Users/user/Library/Developer/Xcode/DerivedData/Videographer-
eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-
iphonesimulator/Videographer.app/Assets.car error 'No such file or 
directory' 
Run Code Online (Sandbox Code Playgroud)

而没有找到它.通过手动重命名build目录,Build我能够解决此错误.但是,我认为这只是一个临时修复,因为无论设置目录build可能仍然存在.