No profile found error, using CLI

Bitrise Build Issue Report template

Description of the issue

I can build (archive) the app using Xcode, and I can build it using bitrise online. I’m trying some tests locally, and I’m using the same bitrise.yml file, but it always fails with this error:

Check dependencies
Code Signing Error: No profiles for ‘com.xxx.fxmobile.iphone.yyy’ were found: Xcode couldn’t find any iOS App Development provisioning profiles matching ‘com.xxx.fxmobile.iphone.yyy’. Automatic signing is disabled and unable to generate a profile.

Environment:

Mac OS, using the command line

If on Bitrise.io: which stack? If not on Bitrise.io: on what operating system? (Plus any other information you can share)

E.g.: Git Clone v3.6.0

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : YES/NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : YES/NO
  • Does the issue happen sporadically, or every time? :
  • Does upgrading the build Step to the latest version help? : YES/NO
  • When did the issue start? :

Local reproduction

Only happens locally

Can it be reproduced on your own Mac/PC by following our local debug guide? Please follow at least the first section (“Testing with a full clean git clone”) to make sure to test the state of the code what bitrise.io will get when it does a git clone in the clean environment! If possible please note which sections you tried.

Local reproduction: Linux / Android (docker based) stack builds

Can it be reproduced by running the build locally, after doing a new git clone of the repository into the /tmp directory and running the build from there with the Bitrise CLI ( https://www.bitrise.io/cli )? If no, can it be reproduced with Docker (using the same docker images / environment we use on bitrise.io)? Related guide: http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/ .

Build log

Please copy paste the build’s bitrise.io URL here (or if the issue happens somewhere else then the full logs), or if you can’t share the url / log here then send the url or full log through a private channel (e.g. email - https://www.bitrise.io/contact ), with a link to the related Discuss issue.

Hi there @rconroy-oanda!

Could you please send us the build log file and enable support access (Enabling the Bitrise Support user for your app | Bitrise DevCenter) so that we may take a closer look? :slight_smile:

I am placing here the build log file, and I would enable support access, but this is being done entirely on my laptop, not through bitrise’s web interface. Would you still want that?

-=-=-

$ npm “install”
npm WARN lifecycle undefined~postinstall: cannot run in wd undefined pod install --repo-update (wd=/Users/xxxxx/Documents/xcode/xxxxx)
npm WARN react-native@0.61.2 requires a peer of react@16.9.0 but none is installed. You must install peer dependencies yourself.
npm WARN xxxxx No repository field.
npm WARN xxxxx No license field.

audited 68816 packages in 3.059s

4 packages are looking for funding
run npm fund for details

found 4 low severity vulnerabilities
run npm audit fix to fix them, or npm audit for details

Step success
| |
±–±--------------------------------------------------------------±---------+
| ✓ | NPM Install | 4.60 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (6) set-xcode-build-number@1.0.9 |
±-----------------------------------------------------------------------------+
| id: set-xcode-build-number |
| version: 1.0.9 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2019-12-17T16:51:21-05:00 |
±-----------------------------------------------------------------------------+
| |
WARN[16:51:21] The step’s (set-xcode-build-number@1.0.9) Run-If expression evaluated to false - skipping
INFO[16:51:21] The Run-If expression was: .IsCI
| |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.48 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (7) set-xcode-build-number@1.0.9 |
±-----------------------------------------------------------------------------+
| id: set-xcode-build-number |
| version: 1.0.9 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2019-12-17T16:51:21-05:00 |
±-----------------------------------------------------------------------------+
| |
WARN[16:51:21] The step’s (set-xcode-build-number@1.0.9) Run-If expression evaluated to false - skipping
INFO[16:51:21] The Run-If expression was: .IsCI
| |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.45 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (8) set-xcode-build-number@1.0.9 |
±-----------------------------------------------------------------------------+
| id: set-xcode-build-number |
| version: 1.0.9 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2019-12-17T16:51:22-05:00 |
±-----------------------------------------------------------------------------+
| |
WARN[16:51:22] The step’s (set-xcode-build-number@1.0.9) Run-If expression evaluated to false - skipping
INFO[16:51:22] The Run-If expression was: .IsCI
| |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.45 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (9) set-xcode-build-number@1.0.9 |
±-----------------------------------------------------------------------------+
| id: set-xcode-build-number |
| version: 1.0.9 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2019-12-17T16:51:22-05:00 |
±-----------------------------------------------------------------------------+
| |
WARN[16:51:22] The step’s (set-xcode-build-number@1.0.9) Run-If expression evaluated to false - skipping
INFO[16:51:22] The Run-If expression was: .IsCI
| |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.45 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (10) set-xcode-build-number@1.0.9 |
±-----------------------------------------------------------------------------+
| id: set-xcode-build-number |
| version: 1.0.9 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2019-12-17T16:51:23-05:00 |
±-----------------------------------------------------------------------------+
| |
WARN[16:51:23] The step’s (set-xcode-build-number@1.0.9) Run-If expression evaluated to false - skipping
INFO[16:51:23] The Run-If expression was: .IsCI
| |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.46 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (11) set-xcode-build-number@1.0.9 |
±-----------------------------------------------------------------------------+
| id: set-xcode-build-number |
| version: 1.0.9 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2019-12-17T16:51:23-05:00 |
±-----------------------------------------------------------------------------+
| |
WARN[16:51:23] The step’s (set-xcode-build-number@1.0.9) Run-If expression evaluated to false - skipping
INFO[16:51:23] The Run-If expression was: .IsCI
| |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.46 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (12) set-xcode-build-number@1.0.9 |
±-----------------------------------------------------------------------------+
| id: set-xcode-build-number |
| version: 1.0.9 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2019-12-17T16:51:24-05:00 |
±-----------------------------------------------------------------------------+
| |
WARN[16:51:24] The step’s (set-xcode-build-number@1.0.9) Run-If expression evaluated to false - skipping
INFO[16:51:24] The Run-If expression was: .IsCI
| |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.49 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (13) set-xcode-build-number@1.0.9 |
±-----------------------------------------------------------------------------+
| id: set-xcode-build-number |
| version: 1.0.9 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2019-12-17T16:51:24-05:00 |
±-----------------------------------------------------------------------------+
| |
WARN[16:51:24] The step’s (set-xcode-build-number@1.0.9) Run-If expression evaluated to false - skipping
INFO[16:51:24] The Run-If expression was: .IsCI
| |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.65 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (14) set-xcode-build-number@1.0.9 |
±-----------------------------------------------------------------------------+
| id: set-xcode-build-number |
| version: 1.0.9 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2019-12-17T16:51:25-05:00 |
±-----------------------------------------------------------------------------+
| |
WARN[16:51:25] The step’s (set-xcode-build-number@1.0.9) Run-If expression evaluated to false - skipping
INFO[16:51:25] The Run-If expression was: .IsCI
| |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.50 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (15) set-xcode-build-number@1.0.9 |
±-----------------------------------------------------------------------------+
| id: set-xcode-build-number |
| version: 1.0.9 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2019-12-17T16:51:25-05:00 |
±-----------------------------------------------------------------------------+
| |
WARN[16:51:25] The step’s (set-xcode-build-number@1.0.9) Run-If expression evaluated to false - skipping
INFO[16:51:25] The Run-If expression was: .IsCI
| |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.49 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (16) xcode-archive@2.7.1 |
±-----------------------------------------------------------------------------+
| id: xcode-archive |
| version: 2.7.1 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2019-12-17T16:51:26-05:00 |
±-----------------------------------------------------------------------------+
| |
INFO[16:51:26] * [OK] Step dependency (xcode) installed, available.
Configs:

  • ExportMethod: ad-hoc
  • UploadBitcode: true
  • CompileBitcode: true
  • ICloudContainerEnvironment:
  • TeamID:
  • UseDeprecatedExport: false
  • ForceTeamID: xxxxx
  • ForceProvisioningProfileSpecifier:
  • ForceProvisioningProfile:
  • ForceCodeSignIdentity:
  • CustomExportOptionsPlistContent:
  • OutputTool: xcpretty
  • Workdir: /Users/rconroy/Documents/xcode/xxxxx
  • ProjectPath: xxxxx.xcworkspace
  • Scheme: xxxxx
  • Configuration: Debug
  • OutputDir: /tmp/deploy004578558
  • IsCleanBuild: false
  • XcodebuildOptions: -UseModernBuildSystem=NO
  • DisableIndexWhileBuilding: true
  • ExportAllDsyms: true
  • ArtifactName: xxxxx
  • VerboseLog: true
  • CacheLevel: swift_packages

step determined configs:

  • xcodebuildVersion: Xcode 11.2.1 (Build version 11B500)

Checking if output tool (xcpretty) is installed

  • xcprettyVersion: 0.3.0

Create the Archive …

Forcing Development Team: xxxxx
[16:51:27] $ set -o pipefail && xcodebuild “-workspace” “/Users/rconroy/Documents/xcode/xxxxx/xxxxx.xcworkspace” “-scheme” “xxxxx” “-configuration” “Debug” “DEVELOPMENT_TEAM=xxxxx” “COMPILER_INDEX_STORE_ENABLE=NO” “archive” “-archivePath” “/tmp/__archive__02236113/xxxxx.xcarchive” “-UseModernBuildSystem=NO” | xcpretty

▸ Aggregate xxxxx/Generate Strings Files [Debug]
▸ Check Dependencies
▸ Running script ‘Run Script’

▸ Check Dependencies
▸ Processing Info.plist
▸ Building xxxxx/PandaTraderStickers [Debug]
▸ Check Dependencies

Last lines of the Xcode’s build log:
Check dependencies
Code Signing Error: No profiles for ‘com.xxxxx.xxxxx.iphone.pandatraderstickers’ were found: Xcode couldn’t find any iOS App Development provisioning profiles matching 'com.xxxxx.xxxxx

.iphone.pandatraderstickers’. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
Code Signing Error: Code signing is required for product type ‘App Extension’ in SDK ‘iOS 13.2’

** ARCHIVE FAILED **

The following build commands failed:
Check dependencies
(1 failure)
You can find the last couple of lines of Xcode’s build log above, but the full log is also available in the raw-xcodebuild-output.log
The log file is stored in $BITRISE_DEPLOY_DIR, and its full path is available in the $BITRISE_XCODE_RAW_RESULT_TEXT_PATH environment variable
(value: /tmp/deploy004578558/raw-xcodebuild-output.log)
Archive failed, error: exit status 65
| |
±–±--------------------------------------------------------------±---------+
| x | xcode-archive@2.7.1 (exit code: 1) | 45.29 sec|
±–±--------------------------------------------------------------±---------+
| Issue tracker: https://github.com/bitrise-steplib/steps-xcode-archive/issues |
| Source: https://github.com/bitrise-steplib/steps-xcode-archive |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (17) deploy-to-bitrise-io@1.9.4 |
±-----------------------------------------------------------------------------+
| id: deploy-to-bitrise-io |
| version: 1.9.4 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2019-12-17T16:52:11-05:00 |
±-----------------------------------------------------------------------------+
| |
WARN[16:52:11] The step’s (deploy-to-bitrise-io@1.9.4) Run-If expression evaluated to false - skipping
INFO[16:52:11] The Run-If expression was: .IsCI
| |
±–±--------------------------------------------------------------±---------+
| - | deploy-to-bitrise-io@1.9.4 | 0.63 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (18) cache-push@2.2.3 |
±-----------------------------------------------------------------------------+
| id: cache-push |
| version: 2.2.3 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2019-12-17T16:52:12-05:00 |
±-----------------------------------------------------------------------------+
| |
WARN[16:52:12] The step’s (cache-push@2.2.3) Run-If expression evaluated to false - skipping
INFO[16:52:12] The Run-If expression was: .IsCI | and (not .IsPR)
| |
±–±--------------------------------------------------------------±---------+
| - | cache-push@2.2.3 | 0.54 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| bitrise summary |
±–±--------------------------------------------------------------±---------+
| | title | time (s) |
±–±--------------------------------------------------------------±---------+
| - | activate-ssh-key@4.0.5 | 0.49 sec |
±–±--------------------------------------------------------------±---------+
| - | git-clone@4.0.17 | 1.09 sec |
±–±--------------------------------------------------------------±---------+
| - | cache-pull@2.1.3 | 0.58 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | Install Ruby Gems | 4.77 sec |
±–±--------------------------------------------------------------±---------+
| - | certificate-and-profile-installer@1.10.2 | 0.65 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | NPM Install | 4.60 sec |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.48 sec |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.45 sec |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.45 sec |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.45 sec |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.46 sec |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.46 sec |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.49 sec |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.65 sec |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.50 sec |
±–±--------------------------------------------------------------±---------+
| - | set-xcode-build-number@1.0.9 | 0.49 sec |
±–±--------------------------------------------------------------±---------+
| x | xcode-archive@2.7.1 (exit code: 1) | 45.29 sec|
±–±--------------------------------------------------------------±---------+
| Issue tracker: https://github.com/bitrise-steplib/steps-xcode-archive/issues |
| Source: https://github.com/bitrise-steplib/steps-xcode-archive |
±–±--------------------------------------------------------------±---------+
| - | deploy-to-bitrise-io@1.9.4 | 0.63 sec |
±–±--------------------------------------------------------------±---------+
| - | cache-push@2.2.3 | 0.54 sec |
±–±--------------------------------------------------------------±---------+
| Total runtime: 1.1 min |
±-----------------------------------------------------------------------------+

Submitting anonymized usage informations…
For more information visit:

-=-=-

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.