Github Actions - Where do I upload the Certificates and provisioning profiles - ios

I am implementing github actions in my project for Build, test and Deploy.
While Building the app, it gives me an error,
"Code Signing Error: No profile for team 'XXXX' matching 'XXXX' found"
Xcode couldn't find any provisioning profiles matching 'XXXX/XXXX'. 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.
Tried to build the project with distribution certificates.
I have tried to upload the certificates and provisioning profiles on a different repository in my account, but it doesn't work.
Where do we upload the certificates?

Hi As per your question it's seem that you are trying to implement CI/CD in your project. You can integrate fastlane that will take care of uploading certificates on a git repo. It will upload all your certificates and provisioning profile on git repo and help's to fetch on your device's keychain.

Related

Issue while creating iOS build- Xamarin

I am not able to generate the iOS build. I am using an apple developer account to generate a provisioning profile.
I have tried to create new provisioning profiles and certificates various times. Even I am trying to create an iOS build of a demo project with the same provisioning profile as well but getting the same error in every project.
"Warning: unable to build chain to self-signed root for signer "Apple Development: AppleUserName"

Unable to export an ipa file in azure devops

I'm trying to build a CI pipeline for my xCode project. I've been struggling with this for the past 2 days.
These are the tasks used in my pipeline:
Install an Apple Certificate
Install an Apple provisioning profile
pod install
Xcode build & clean
Copy files to $(build.artifactstagingdirectory)
Publish Artifacts to drop folder
I've seen in the documentation that we need to check the Create App Package checkbox if we need to have and ipa package. But whenever I check the check
❌ error: No profile for team 'teamID' matching 'provision_name.mobileprovision' found: Xcode couldn't find any provisioning profiles matching 'teamId/provision_name.mobileprovision'. 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. (in target 'project_name' from project 'project_name')
Here's a two snippets about signing and exporting options in xCode build task:
So anyone have an idea why this issue is happening?
As Paulw11 mentioned in his comments above, the issue was in setting the name of the provisioning profile in Signing & Provisioning section.
As he said, the Install an Apple provisioning profile will set the UUID variable needed in the task mentioned above. It will be populated while the pipeline is running.
So here's the working pipeline for me now:
Tasks:
Signing & provisioning properties:
Package options:

Jenkins, Xcode 8.2.1 can not find the provisioning profile though it exists

I am running an iOS build on Jenkins locally. Using Xcode 8.2.1. Using manual signing (i.e. provisioning profile, Team and Signing Certificate correctly selected in Target-> General section.). When I build the app through Xcode, the app builds and archives fine using my ad-hoc distribution certificates. However, when I try building using Jenkins, I get the following error (I am using my own build script to build the app and not using the Jenkins Xcode build plugin)-
Check dependencies
[BCEROR]No profile matching 'xxx' found: Xcode couldn't find a profile matching 'xxx'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the General tab of the target editor.
Btw, I already tried the following but those did not help-
copying the provisioning profile in question to the /Users/Shared/Jenkins/Library/MobileDevice/Provisioning Profiles location.

Provisioning profile not getting set while building Xcode project using Jenkins

I am connecting to gitlab to pull source code and build the app through Jenkins. At build time, i am changing the bundle ID, certificate and provisioning profile for the App. But for some reason, the provisioning profile is not getting set while the former two works perfectly. I have added the profiles in KISS plugin and also provided the path to the profile in the Xcode plugin.
I have configured as below
I am getting the following error while building the App
App requires a provisioning profile. Select a provisioning profile for the "Release" build configuration in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.0'
Attaching the console screenshot

Jenkins with Xcode 8 - Cannot find Provisioning Profiles

Jenkins cannot find our recently updated provisioning profiles and after trying every known solution I'm running out of ideas what could be wrong.
Build jobs fail with error:
No profile matching 'xxxxx' found: Xcode couldn't find a profile
matching 'xxxxx'.
The build server is a Mac, running Xcode 8 and we're using Jenkins with the Xcode plugin.
Building and signing with Xcode 8 directly on the same machine is successful and I installed all the required profiles by double-clicking them.
Does anyone know any workable solution to fix this issue?
Put your provisioning profiles under
User/Shared/Jenkins/Library/Mobile Device/Provisioning Profiles.
You have to create manually folder under Library folder.
And make sure that your Distribution certificate is in "System" tab in keychain Access. If not then copy from "Login" tab and paste under "System" tab.
The fix for myself was giving the jenkins user proper permissions for the ~/Library/MobileDevice folder and the ~/Library/MobileDevice/Provisioning\ Profile.
Otherwise the jenkins user can't read from the provisioning file folder.

Resources