所以,我有一个我在Xcode中构建的应用程序,并且事情已经进行了一段时间。但是,我突然得到错误:
Images.xcassets: error: ERROR: Each TDDistiller instance can be distilled only one time!
所以,有两个问题:
1)我不知道这意味着什么,显然Google,Bing或Yahoo也没有。
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的项目。
答案 0 :(得分:27)
清除项目的DerivedData文件夹消除了我的错误。
答案 1 :(得分:9)
退出Xcode,退出模拟器,重新打开Xcode并重新重新运行构建对我有用。不知道这个错误究竟是什么!
答案 2 :(得分:6)
在我的情况下,可能与CocoaPod有关,导致我的Build
目录使用小写 build
创建。然后,Distiller会在您的大写 Build
目录中查找 Asset.car 文件可以从日志的这一部分看到
/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
的目录可能仍然存在。
答案 3 :(得分:2)
卸载Xcode9并重新安装
答案 4 :(得分:2)
Xcode 9.4现在仍然存在这个问题。 几次尝试后,删除DerivedData文件夹的所有内容按照以下顺序为我工作:
答案 5 :(得分:1)
解决此问题的最简单方法是使用以下命令删除所有DerivedData:
rm -rf ~/Library/Developer/Xcode/DerivedData
以上命令对我来说真的很有用。
答案 6 :(得分:1)
我首先尝试了所有解决方案,但没有成功。所以以下内容对我有用。
1。在XCode中,转到“文件”->“项目设置”
2。单击“高级”按钮
3。选择“自定义”,然后在下拉菜单中选择“相对于工作区”
4。如果在我的情况下未设置,则在“产品”字段中设置“内部版本/产品”,否则会有其他值。然后点击完成。
答案 7 :(得分:0)
感谢zode64的答案。我不使用cocoaPod,在我的情况下,我的产品名称有问题。
检查this solution。编辑project.pbxproj解决了我的问题。
答案 8 :(得分:0)
有时,只有Product-Clean
可以帮助解决这个问题。
如果没有,是时候在/Users/user/Library/Developer/Xcode/DerivedData/
答案 9 :(得分:0)
我在这里尝试了一切,包括将XCode卸载到不同的完整程度。解决这个问题的唯一方法是从头开始创建一个新项目,然后重新添加我的所有文件和设置。
(但是你看,实际上它更好,它只是工作!你为什么要在XCode中运行一个项目?此外,如果你有一个旧项目,这只是Apple确保你的方式'重新保持最新状态。想象一下,如果他们不这样做,你会遇到什么样的更大问题!;)
答案 10 :(得分:0)
无需清除DerivedData文件夹。在这种情况下,产品>清理构建文件夹就足够了。
答案 11 :(得分:0)
我的问题是我安装了Xcode 12.0 beta版。切换到12.2(不是beta)可以解决此问题。
Apple Dev问题:https://developer.apple.com/forums/thread/658421