【问题标题】:Crashlytics updated to Fabric: Unable to copy dSYMCrashlytics 更新到 Fabric:无法复制 dSYM
【发布时间】:2015-07-17 11:25:30
【问题描述】:

我已将我的项目从 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

【问题讨论】:

  • 我今天遇到了同样的问题。我认为 cocoapod 规范可能搞砸了,因为消息显示“Fabric.framework/run 1.3.16”,但 pod 更新输出显示“使用 Fabric (1.2.8)”。我不得不完全移除 Fabric pod 来修复构建错误。我可能会尝试回到应用管理的嵌入式版本。
  • 我什至尝试过 pod 'Fabric', '~> 1.3' 但这不起作用。我也尝试安装旧版本的 cocoapods,但它也给出了同样的错误。

标签: xcode crashlytics twitter-fabric


【解决方案1】:

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

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

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

【讨论】:

    【解决方案2】:

    为您的构建脚本添加清理

    【讨论】:

    • 我们称这个计划为 B
    猜你喜欢
    • 2020-06-18
    • 1970-01-01
    • 2015-10-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多