我收到了Apple发布的崩溃报告,并按照这些说明进行了表示:How to symbolicate crash report from Apple received in .txt format not .crash format
不幸的是,当我执行第7步(“./ symbolicatecrash ...”)时,我看到错误,并且找不到解决它们的SO问题:
xcodebuild: error: SDK "xxxos" 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 xxxos SDK, falling back to searching the iOS SDK
xcodebuild: error: SDK "xxxos" 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 xxxos SDK, falling back to searching the iOS SDK
xcodebuild: error: SDK "xxxos" cannot be located.
xcrun: error: unable to find utility "symbols", not a developer tool or in PATH
## Warning: can't find tool named 'symbols' in the xxxos SDK, falling back to searching the iOS SDK
xcodebuild: error: SDK "xxxos" 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 xxxos SDK, falling back to searching the iOS SDK
No symbolic information found
注意:
知道发生了什么以及如何解决这个问题?谢谢!
在symbolicatecrash脚本中添加了parse_SDKGuess函数以供参考:
sub parse_SDKGuess {
my ($log_ref) = @_;
# It turns out that most SDKs are named "lowercased(HardwareModelWithoutNumbers) + os",
# so attempt to form a valid SDK name from that. Any code that uses this must NOT rely
# on this guess being accurate and should fallback to whatever logic makes sense for the situation
my $model = parse_HardwareModel($log_ref);
$model or return undef;
$model =~ /(\D+)\d/;
$1 or return undef;
my $sdk = lc($1) . "os";
if($sdk eq "ipodos" || $sdk eq "ipados") {
$sdk = "iphoneos";
}
if ( $sdk =~ /mac/) {
$sdk = "macosx";
}
return $sdk;
}
似乎“lc($ 1)”评估为“xxx”...
答案 0 :(得分:5)
您可以忽略这些错误。出现这些错误的原因是Apple的崩溃报告在崩溃报告中包含以下内容:
test = [[0,0,0,0],
[0,'R',0,0],
[0,'R',0,0],
[0,'R',0,0],
[0,'R',0,0]]
def find_3consecutives_in_cols(game_matrix, n_rows, column_number):
game_ls = []
for i in range(n_rows):
game_ls.append(game_matrix[i][column_number])
print any(i==j==k for i, j, k in zip(game_ls, game_ls[1:], game_ls[2:]))
find_3consecutives_in_cols(test, n_rows=5, column_number=1)
False
False
False
True
True
(而不是像iPhone10,5)。 Apple可能掩盖了硬件模型。他们可能正在使用特殊硬件进行测试。
警告显示Hardware Model: xxx1
未找到SDK并且它会回退到iOS。
我想这与xxxos
错误无关。
对我来说有用的是从Apple下载dSYM。转到Xcode>管理器,在“存档”选项卡(默认)中选择您的应用程序和与崩溃报告对应的版本,然后单击“下载dSYM ...”#34;按钮。
下载dSYM后,重新运行xxxos
命令:
symbolicatecrash
我想问题是当你启用bitcode时,Apple正在重建应用程序,然后xcarchive中生成的dSYM与崩溃报告不匹配。
即便如此,我的代码中的所有调用都被正确地符号化,但是系统框架中的调用(例如UIKit)没有被象征化。