Crashlytics 已更新为 Fabric:无法复制 dSYM

Crashlytics updated to Fabric: Unable to copy dSYM

我已将我的项目从 Crashlytics 更新到 Fabric。我已经按照 Fabric Mac 应用程序中的所有步骤进行操作,但现在我的简单应用程序在没有清理的情况下不会构建多次。

当我使用 Product > Clean 时,我可以构建我的应用程序一次。下次尝试时,构建再次失败。

我该如何解决这个问题?

2015-07-17 12:10:58.602 run[10802:603564]
Fabric.framework/run 1.3.16

2015-07-17 12:10:58.958 run[10802:603564]
Unable to copy dSYM at path /Users/username/Library/Developer/Xcode/DerivedData/appname-byhgrsorkjornnaplkksbbzmvfel/Build/Products/Debug-iphonesimulator
to path /Users/username/Library/Caches/com.crashlytics.mac/5b91b14e832a7b1c29441ec5ba109810/builds/86A88558-0818-40BB-9EF5-B4816707A076/appname dev.app.dSYM
Error Domain=NSCocoaErrorDomain Code=4 "The file “DWARF” doesn’t exist." UserInfo=0x10010c960
{
    NSSourceFilePathErrorKey=/Users/username/Library/Developer/Xcode/DerivedData/appname-byhgrsorkjornnaplkksbbzmvfel/Build/Products/Debug-iphonesimulator/appname dev.app.dSYM/Contents/Resources/DWARF, NSUserStringVariant=(Copy),
    NSDestinationFilePath=/Users/username/Library/Caches/com.crashlytics.mac/5b91b14e832a7b1c29441ec5ba109810/builds/86A88558-0818-40BB-9EF5-B4816707A076/appname dev.app.dSYM/Contents/Resources/DWARF, NSFilePath=/Users/username/Library/Developer/Xcode/DerivedData/appname-byhgrsorkjornnaplkksbbzmvfel/Build/Products/Debug-iphonesimulator/ticketveiling dev.app.dSYM/Contents/Resources/DWARF, 
    NSUnderlyingError=0x10010c6a0 "The operation couldn’t be completed. No such file or directory"
}

Command /bin/sh failed with exit code 1

将清理添加到您的构建脚本中

看来更新 Fabric/Crashlytics 解决了我的问题!

pod update 'Crashlytics'
Installing Crashlytics 3.1.0 (was 3.0.11)

更新:我想我说得太早了。问题还没有完全解决,但至少我比以前少了很多清洁。