-
Notifications
You must be signed in to change notification settings - Fork 70
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
How can I make multiple "prebuild_config" for different schemas? #18
Comments
Hi @mefilt, Could you please help describe your use case in more detail? |
I came up with this option, but it doesn't work either, since the cache in the repository is also shared config_cocoapods_binary_cache( config_cocoapods_binary_cache( |
@mefilt Thanks for the clarification. You are correct about the fact that the cache repo is currently shared and cannot support multiple configurations. Moving forward, I would like to propose a multi-cache-repo support to solve this problem as follows:
{
"prebuild_path": "_Prebuild",
"cache_repos": {
"default": {
"remote": "<url/to/cache/repo>",
"local": "<path/to/cache/dir>"
},
"another": { # 👈 <--- Use this repo for another configuration
"remote": "<url/to/cache/repo>",
"local": "<path/to/cache/dir>"
}
}
}
bundle exec pod binary fetch --repo=another
config_cocoapods_binary_cache(
prebuild_config: ENV["CI"] ? "Test" : "Debug"
) In the meantime, you can try out a workaround by having a script to dynamically generate the |
Oooyyee! Thx man. |
You can add a "remote url" field to "config_cocoapods_binary_cache". And you still need to store binaries for the simulator and devices in the repository at the same time |
1/ About the cache for simulators & devices Currently, we do support prebuilt frameworks for devices. However, we don't store cache for simulators & devices separately. Rather, the binary of a prebuilt framework is a fat binary with architectures used for both simulator and devices. 2/ About the suggestion to have the That would be best. Originally, we had those cache-repo-related configurations in the json file instead of |
@mefilt The support has been implemented in 0.1.7. Kindly refer to the Thanks for reporting the issue and the suggestion. |
How can I make multiple "prebuild_config" for different schemas?
The text was updated successfully, but these errors were encountered: