-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to skip the whole codesign stage? #2654
Comments
Sorry, it turns out that the But skipping codesign stage is useful, anyway. |
@neko-para you can skip the signing stage for simulator builds. Add the following to your bazelrc
|
I've tried this, but it seems not working on macos application 🤔 |
I would expect that since there is no macOS simulator. |
|
It seems that in this stage, rules would unzip the bundle, codesign it and re-zip it. These unzipping and zipping steps consume too much time if the app is large (e.g. my bundle is about 3GB). As I would always launch the app via lldb, which can bypass the codesign problem, I'd like to just skip this stage to speedup building.
For instance, it takes me 8s to link the final binary, 15s to bundle, and 60s to codesign (the whole stage). Also, I have an extra unzip genrule (unzip the bundle) which takes about 10s.
I've also tried
tree_artifact_outputs
option, but this results the codesign stage to cost 150s (which only saves the last unzip stage, which costs 10s).rules_apple/tools/bundletool/process_and_sign.sh.template
Lines 33 to 34 in 7e4c6b2
rules_apple/tools/bundletool/process_and_sign.sh.template
Lines 74 to 83 in 7e4c6b2
The text was updated successfully, but these errors were encountered: