gpt4 book ai didi

ios - 有崩溃报告、dsym 文件但没有 ipa/xarchive : How to symbolicate the crash log?

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:07:59 27 4
gpt4 key购买 nike

我昨天完成了 TestFlight 构建并从一台 Mac 切换到另一个位置。

今天我看到,崩溃管理器中有崩溃,但它们没有符号化。

我下载了 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
...

所以它实际上在路径上。

最佳答案

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

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

关于ios - 有崩溃报告、dsym 文件但没有 ipa/xarchive : How to symbolicate the crash log?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35599383/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com