ios - Fabric 安装失败

标签 ios swift crashlytics twitter-fabric

我正在尝试将 Fabric 添加到我的项目中,该项目使用 CocoaPodsCarthage。我做了什么:

  1. Fabric 应用中,我创建了一个新应用
  2. 在项目中,我创建了名为“Fabric”的新运行脚本,从 Fabric 应用程序中复制了代码(该脚本是我项目中的最后一个脚本!)
  3. 由于找不到框架文件,我已将正确的路径添加到 Framework Search Paths
  4. 我还在我的项目 Link Binary with Libraries 阶段添加了 Fabric 框架。

该项目仍未生成。错误:

2015-07-14 10:51:30.161 run[46263:967908] Fabric.framework/run 1.3.16
2015-07-14 10:51:30.169 run[46263:967908] 

Fabric: dSYM Error

Unable to process MyApp.app.dSYM at path 
/Users/me/Library/Developer/Xcode/DerivedData/MyApp-gmgvycoixcnkriauasdffkzvdg/Build/Products/Debug-iphonesimulator/MyApp.app.dSYM
Make sure your project build settings are generating a dSYM file. 
DEBUG_INFORMATION_FORMAT should be set to dwarf-with-dsym for all configurations. 
This could also be a timing issue, make sure the Fabric run script build phase
is the last build phase and no other scripts have moved the dSYM from the location Xcode generated it.

Command /bin/sh failed with exit code 1

怎么了……?如何解决?

最佳答案

明白了。将框架移动到不同的文件夹时,我忘记更改运行脚本:

./Fabric.framework/run ...

到:

./Frameworks/Fabric.framework/run ...

现在一切正常。

关于ios - Fabric 安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31402368/

相关文章:

ios - 为什么 iOS 17 WidgetKit 中的交互式按钮在应用程序运行时不调用 AppIntent Perform()?

ios - map 缩放时,图钉上的弹出框不会移动

由于 exc 访问错误,iphonesdk 值从数组中删除

swift - 某些文档功能在 Xcode 8 中不起作用

ios - 是什么导致此 Crashlytics 编译警告? (自动链接在 '...' 处提供的 '...' 框架链接器选项不是 dylib)

android - Crashlytics NDK 多 androidNdkOut 路径支持

ios - 在 iOS 中访问私有(private)文件夹

iOS - 从系统设置运行应用深层链接

ios - 如何从其他 swift 文件调用对象

android - react-native-firebase crashlytics 未显示在 firebase 仪表板上