资产目录编译错误 - TDDIstiller 实例只能提取一次
Asset Catalog Compile Error - TDDIstiller instance can only be distilled only one time
所以,我有一个正在 Xcode 中构建的应用程序,一段时间以来一切进展顺利。但是,突然我收到错误消息:
Images.xcassets: error: ERROR: Each TDDistiller instance can be distilled only one time!
所以,两个问题:
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 */
/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.
的项目
清除项目的 DerivedData 文件夹消除了我的错误。
退出 Xcode,退出模拟器,重新打开 Xcode 并重新 运行 重新构建对我有用。不知道这个错误是怎么回事!
正在卸载 Xcode9 并重新安装
在我的例子中,可能与 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'
并没有找到它。通过手动将 build
目录重命名为 Build
我能够解决这个错误。但是,我认为这只是临时修复,因为将目录设置为 build
的内容可能仍然存在。
感谢的回答。我不使用 cocoaPod,就我而言,我的产品名称有问题。
勾选。编辑 project.pbxproj 解决了我的问题。
有时候,Product-Clean
就可以解决这个问题。
如果没有,是时候删除位于 /Users/user/Library/Developer/Xcode/DerivedData/
的文件夹了
解决此问题的最简单方法是使用以下命令删除所有 DerivedData:
rm -rf ~/Library/Developer/Xcode/DerivedData
上面的命令对我来说真的很管用。
Xcode现在9.4了,还是这个问题。
经过几次尝试,按照以下顺序删除 DerivedData 文件夹的所有内容对我有用:
/Product/Clean
Xcode/Preferences..位置。在查找器中打开派生数据(带箭头)
3.关闭Xcode.
4.Delete derivedData 文件夹的所有内容(这是一个缓存)。
5.Empty 垃圾。
6.Open Xcode 和 运行 项目。
祝你好运!
我在这里尝试了所有方法,包括卸载 XCode 以达到不同程度的完整性。唯一解决这个问题的方法是从头开始创建一个新项目,然后重新添加我的所有文件和设置。
(但是你看,这样实际上更好,它只是工作!你为什么要 运行 一个项目 XCode 无论如何?此外,如果你有一个旧项目,这只是 Apple 确保您保持最新状态的方式。想象一下,如果他们不这样做,您会遇到什么样的更大问题!;)
我尝试了以上所有解决方案,但都没有成功。所以以下对我有用。
1.In XCode 转到文件 -> 项目设置
2.Click 高级按钮
3.Select"Custom"和select"Relative to Workspace"在下拉
4.Set "Build/Products" 在 Products 字段中,如果未在我的情况下设置,则还有其他值。然后点击完成。
无需清除 DerivedData 文件夹。 Product > Clean Build Folder 在这种情况下似乎就足够了。
我的问题是我安装了 Xcode 12.0 测试版。切换到 12.2(非测试版)解决了这个问题。
所以,我有一个正在 Xcode 中构建的应用程序,一段时间以来一切进展顺利。但是,突然我收到错误消息:
Images.xcassets: error: ERROR: Each TDDistiller instance can be distilled only one time!
所以,两个问题:
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 */
/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.
的项目清除项目的 DerivedData 文件夹消除了我的错误。
退出 Xcode,退出模拟器,重新打开 Xcode 并重新 运行 重新构建对我有用。不知道这个错误是怎么回事!
正在卸载 Xcode9 并重新安装
在我的例子中,可能与 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'
并没有找到它。通过手动将 build
目录重命名为 Build
我能够解决这个错误。但是,我认为这只是临时修复,因为将目录设置为 build
的内容可能仍然存在。
感谢
勾选
有时候,Product-Clean
就可以解决这个问题。
如果没有,是时候删除位于 /Users/user/Library/Developer/Xcode/DerivedData/
解决此问题的最简单方法是使用以下命令删除所有 DerivedData:
rm -rf ~/Library/Developer/Xcode/DerivedData
上面的命令对我来说真的很管用。
Xcode现在9.4了,还是这个问题。 经过几次尝试,按照以下顺序删除 DerivedData 文件夹的所有内容对我有用:
/Product/Clean
Xcode/Preferences..位置。在查找器中打开派生数据(带箭头)
3.关闭Xcode.
4.Delete derivedData 文件夹的所有内容(这是一个缓存)。
5.Empty 垃圾。
6.Open Xcode 和 运行 项目。
祝你好运!
我在这里尝试了所有方法,包括卸载 XCode 以达到不同程度的完整性。唯一解决这个问题的方法是从头开始创建一个新项目,然后重新添加我的所有文件和设置。
(但是你看,这样实际上更好,它只是工作!你为什么要 运行 一个项目 XCode 无论如何?此外,如果你有一个旧项目,这只是 Apple 确保您保持最新状态的方式。想象一下,如果他们不这样做,您会遇到什么样的更大问题!;)
我尝试了以上所有解决方案,但都没有成功。所以以下对我有用。
1.In XCode 转到文件 -> 项目设置
2.Click 高级按钮
3.Select"Custom"和select"Relative to Workspace"在下拉
4.Set "Build/Products" 在 Products 字段中,如果未在我的情况下设置,则还有其他值。然后点击完成。
无需清除 DerivedData 文件夹。 Product > Clean Build Folder 在这种情况下似乎就足够了。
我的问题是我安装了 Xcode 12.0 测试版。切换到 12.2(非测试版)解决了这个问题。