美文网首页
Infer 报错 exited with code 65

Infer 报错 exited with code 65

作者: 踩坑小分队 | 来源:发表于2020-07-08 11:01 被阅读0次
image.png
Internal Error:   /usr/local/Cellar/infer/0.17.0/lib/infer/infer/bin/../lib/python/infer.py
  -j 8 --project-root /Users/a58/Desktop/Tools/Static/new3/Project --out
  /Users/a58/Desktop/Tools/Static/new3/Project/infer-out -- xcodebuild
  -workspace JRMagicInsuranceApp.xcworkspace -scheme JRMagicInsuranceApp
  -configuration Debug -sdk iphonesimulator:
  exited with code 65
Error backtrace:
Raised at file "string.ml", line 145, characters 16-31
Called from file "string.ml" (inlined), line 149, characters 17-46
Called from file "src/string.ml", line 407, characters 12-33
Called from file "src/string.ml", line 416, characters 11-33
Re-raised at file "base/Die.ml", line 26, characters 8-56
Called from file "integration/Driver.ml", line 171, characters 2-16
Called from file "integration/Driver.ml", line 272, characters 6-409
Called from file "integration/Driver.ml", line 323, characters 2-29
Called from file "base/Utils.ml", line 398, characters 16-20
Called from file "scuba/ScubaLogging.ml", line 66, characters 29-44
Called from file "infer.ml", line 20, characters 2-36
Called from file "base/Utils.ml", line 398, characters 16-20
Called from file "scuba/ScubaLogging.ml", line 66, characters 29-44
Called from file "infer.ml", line 137, characters 8-54

用infer检测别的项目好使,但是用在了某个项目就报错了
google上查了一堆有遇到类似的,但是方法不好用

最终摸索到了解决办法:
XXXX. xcworkspace --> 右键显示包内容 --> xcshareddata --> 删除 WorkspaceSettings.xcsettings

XXXX. xcworkspace --> 右键显示包内容 --> xcuserdatad --> 删除 xcschemes、WorkspaceSettings.xcsettings、UserInterfaceState.xcuserstate

再次运行infer检测命令,通过

infer --keep-going --skip-analysis-in-path Pods --no-xcpretty -- xcodebuild -workspace Demo.xcworkspace -scheme Demo -configuration Debug -sdk iphonesimulator

相关文章

网友评论

      本文标题:Infer 报错 exited with code 65

      本文链接:https://www.haomeiwen.com/subject/yxmqcktx.html