有崩溃报告,dsym文件但不是ipa / xarchive:如何表示崩溃日志?

时间:2016-02-24 10:23:35

标签: ios xcode crash-reports

我昨天做了一个TestFlight构建,并从一个Mac切换到另一个位置。

今天我看到,Crash Organizer中有崩溃,但它们没有象征性。

我已经下载了TestFlight中的构建版本的dSym文件,我有该版本的源代码(自昨天起已经应用了一些修复,但是有一个类和一行仍然会非常有帮助) - 但我没有这里办公室Mac上的实际构建。

如何将符号应用于崩溃日志?

更新:我尝试直接调用symbolicatecrash,但路径中无法访问。我不得不用完整的路径集来调用它

imac:Contents thst$ pwd
/Applications/Xcode.app/Contents
imac:Contents thst$ ./SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash ...

然后它抱怨DEVELOPER_DIR未设置,所以我将其设置为

export DEVELOPER_DIR=`xcode-select -p`

这使它至少开始,但现在我得到这样的错误:

xcodebuild: error: SDK "ipados" cannot be located.
xcrun: error: unable to find utility "otool", not a developer tool or in PATH
## Warning: can't find tool named 'otool' in the ipados SDK, falling back to searching the iOS SDK
xcodebuild: error: SDK "ipados" cannot be located.
xcrun: error: unable to find utility "atos", not a developer tool or in PATH
## Warning: can't find tool named 'atos' in the ipados SDK, falling back to searching the iOS SDK
xcodebuild: error: SDK "ipados" cannot be located.
xcrun: error: unable to find utility "lipo", not a developer tool or in PATH
## Warning: can't find tool named 'lipo' in the ipados SDK, falling back to searching the iOS SDK
xcodebuild: error: SDK "ipados" cannot be located.
xcrun: error: unable to find utility "size", not a developer tool or in PATH
## Warning: can't find tool named 'size' in the ipados SDK, falling back to searching the iOS SDK
## Warning: Unable to symbolicate from required binary: /Users/thst/Library/Developer/Xcode/iOS DeviceSupport/8.4 (12H143)/Symbols/System/Library/Frameworks/CoreMotion.framework/CoreMotion
Incident Identifier: B2F71703-1CE2-4CDE-A6A8-3C51FDE9DBFF
Beta Identifier:     DD46FE78-8872-4DF1-BF83-58796766B994
Hardware Model:      iPad2,2

在命令行上调用otool

imac:Contents thst$ otool
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool [-arch arch_type] [-fahlLDtdorSTMRIHGvVcXmqQjCP] [-mcpu=arg] [--version] <object file> ...
    -f print the fat headers
    -a print the archive header
    ...

实际上它正在路上。

2 个答案:

答案 0 :(得分:1)

您不需要IAP文件,只需要崩溃文件和dsym文件。在终端中使用以下命令:

./symbolicatecrash crashFile.crash dsymFile.dSYM > crashLog.txt

答案 1 :(得分:0)

我遇到了同样的问题,确保XDE应用程序名称与DEVELOPER_DIR一样。 例如:我在应用程序中将我的xcode应用程序命名为xcode 7.2。但是我设置了

$ DEVELOPER_DIR ='/应用/ Xcode.app /内容/开发者;在symbolicatecrash。

一旦我设置如下

,问题就解决了

$ DEVELOPER_DIR ='/ Applications / Xcode 7.2.app/Contents/Developer';