github / github/codeql-cli-binaries
Xcode iOS simulator build fails when codeql is injected
- 主要言語
- 言語のデータがありません
- スター
- 1k
- フォーク
- 184
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When CodeQL is enabled for our repo here https://github.com/xamarin/ios-sim-sharp, the build crashes, with codeql is on the call stack.
See the attached: [failure.log](https://github.com/github/codeql-cli-binaries/files/10198085/failure.log)
The error below also appears in the log:
```
2022-11-18T14:31:19.4879860Z dyld: dyld cache load error: shared cache file open() failed
2022-11-18T14:31:19.4882650Z dyld: could not load inserted library '/Users/runner/work/_temp/codeql3000/github/codeql/tools/osx64/libtrace.dylib' because no suitable image found. Did find:
2022-11-18T14:31:19.4885600Z /Users/runner/work/_temp/codeql3000/github/codeql/tools/osx64/libtrace.dylib: mach-o, but not built for platform iOS-sim
```
[success.log](https://github.com/github/codeql-cli-binaries/files/10198084/success.log) is the same build, without codeql enabled, so that you can compare.
Also attached is [codeql-init.log](https://github.com/github/codeql-cli-binaries/files/10198083/codeql-init.log), with the output of the CodeQL init task.
I tested with the latest codeql, 2.11.4, and the error still happens.
Thanks for investigating & hopefully fixing or suggesting a workaround.
コントリビューションガイド
調査の方向性
まず、添付された failure.log と success.log を比較し、次に iOS simulator build の codeql-init.log と CodeQL injection output を確認します。libtrace.dylib がどこに挿入されるかを追跡し、注入されたライブラリが iOS-sim プロセスにロードされないことを検証します。完了条件は、CodeQL-enabled build が正常に完了することです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- ios
- 領域
- build-system, devtools, mobile-dev
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100