Building project on a remote machine : Xcode couldn't find any provisioning profiles

Hi,

We are trying to build our project on a remote machine (build machine) for distribution as we do not have the Developer ID certificate on the development machine.

We have generated necessary provisioning profiles against the Developer ID certificate and have it present along with the project.
We only have CLI access to the build machine and no root access.

In order to build the project on the build machine, we follow this process:
  1. Make changes to the project via Xcode on development machine (local machine)

  2. Copy project and provisioning profiles on the build machine.

  3. Change the name of the provisioning profiles with their respective UUIDs keeping the .provisionprofile extension.

  4. Move the provisioning profiles to the ~/Library/MobileDevice/Provisioning Profiles directory.

  5. Fire xcodebuild command with suitable arguments.

After this we are seeing this error:

Code Block
No profile for team 'TEAM_ID' matching 'PROVISIONING_PROFILE_NAME' found: Xcode couldn't find any provisioning profiles matching 'TEAM_ID/PROVISIONING_PROFILE_NAME'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the Signing & Capabilities tab of the target editor


When the project is opened in xcode on local machine, under the Signing & Capabilities tab, there is no option to select the provisioning profile (Xcode prompts it as none required) but a provisioning profile can be selected through Build Settings tab.

Are we following the correct approach when it comes to building the project remotely?

Can someone please help out with this?

Thanks.


Building project on a remote machine : Xcode couldn't find any provisioning profiles
 
 
Q