Builds fail from environment variable size error after a certain number of provisioning profiles is hit

Hi,

Indeed, there’s an undocumented limit here. The limit is around 50 prov profiles uploaded to Bitrise.io for a single app (under Code Signing & Files).

The solution / workaround for this right now is to use the Generic File Storage option (under Code Signing & Files). There every uploaded file gets it’s own download URL environment variable, which use can use the way you want to. E.g. you can use multiple separate Certificate and Profile installer steps, and concat the URLs with the pipe (|) character, as described in the inputs’ description.

Another solution can be to use a single ZIP file, which can be uploaded as a single Generic File Storage item, then use e.g. the ZIP resource archive downloader step to download & uncompress those, then specify the local paths for the Certificate and Profile installer step (again, can be concatenated with |, and you can use as many Cert & Profile installer step as you like). Or, alternatively, just move the prov profile files into $HOME/Library/MobileDevice/Provisioning Profiles any way you like (e.g. uncompress the ZIP there). Xcode uses that dir too, there’s no special “install” command for profiles, you just have to move the Prov Profile files into this directory. Note: the files have to be in that directory specifically, sub directories are NOT scanned by Xcode.

I hope this helps, if you have any questions just let us know!