我昨天做了一个TestFlight构建,并从一个Mac切换到另一个位置。
今天我看到了,在撞车组织者中有撞车事件,但它们不是象征性的。
我下载了TestFlight中构建的dSym文件,我有该构建的源代码(从昨天开始已经应用了一些修复程序,但有一个类和行仍然非常有用),但我在办公室没有Mac上的实际构建。
我如何将这些符号应用于crashlog?
更新:我试着打电话
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
...
所以它实际上是在路上的。