Build error with two iOS apps in same repository but different branches and provisioning profiles


#1

Hello.

Our project consists of a Xamarin.Android and Xamarin.iOS app, but right now we are having some issues with the provisioning profile in iOS.

In our scenario we had to add another app in the same repository but in a different branch with different bundle id. We have something like this:

MainApp(Bitrise App) - BranchApp1 -> com.company.app1

MainApp(Bitrise App) - BranchApp2 -> com.company.app2

We have added a different workflow for App2. The issue is that we aren’t able to build successfully App2 (the recently added app) and we have made some testing and trying some methods in order to get it. (App1 is built without problems).

Reading some answers here in the forum, we added the different provisioning profiles and its corresponding p12 certificates for code signing, so in code signing page of the repository we have provisioning profiles and certificates valids for both App1 and App2 but this didn’t work and we were getting a “Could not find any available provisioning profile for iOS” error.

So, a different approach was to add provisioning profile and certificate as generic files in Code Signing page (only for App2) and get the URLs and use this URLs directly in Certificate and profile installer step. We also add the pass phrase as a secret var in bitrise but now we are getting the “No valid iOS code signing keys found in keychain” error.

So, someone has set up this scenario with two apps in two different branches each with its own bundle id or could give me some idea of how to get it?

Thanks in advance.


#2

Hi @cbiosdev!

Thanks for the detailed description, as mentioned on our on-site chat please include build URLS about these cases so we can take a proper look!


#3

Hi @bitce!

Thanks for your reply. Here’s the URL: https://app.bitrise.io/build/f21af028a45955dd


#4

@cbiosdev Is this certainly the right URL? I don’t see any of the issues you’ve mentioned here


#5

Hi @bitce .

Yes, it is. When I expand the log (it says is overweight) I can see this error almos at the end:

error : No valid iOS code signing keys found in keychain.

Please let me know if is this ok or if i’m missing something.

Thank you.


#6

No you’re absolutely right, sorry, thanks for pointing it out! :slight_smile: