Infer 报错 exited with code 65

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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。