fastlane: Code Signing Error: No profile for team matching found

Question Checklist

Question Subject

I’m using sigh and gym to generate an archive.

Question Description

I’m getting this error when trying to generate a distribution ipa for my app. Before adding details, I want to say that I have manually used the profile and the certificate successfully.

DEBUG [2018-09-14 13:37:50.12]: Checking if there are any plugins that should be loaded...
Successfully loaded Appfile at path '/Users/myuser/Desktop/myapp-iOS/fastlane/Appfile'
- app_identifier: 'com.team.myapp'
- apple_id: 'myuser@team.com'
- itc_team_id: '2081035'
- team_id: 'NL6V7373ZR'
-------
INFO [2018-09-14 13:37:50.44]: ------------------------------
INFO [2018-09-14 13:37:50.44]: --- Step: default_platform ---
INFO [2018-09-14 13:37:50.44]: ------------------------------
INFO [2018-09-14 13:37:50.44]: Driving the lane 'ios myapp_release' 🚀
INFO [2018-09-14 13:37:50.44]: ------------------
INFO [2018-09-14 13:37:50.44]: --- Step: sigh ---
INFO [2018-09-14 13:37:50.44]: ------------------

+-------------------------------------+------------------------+
|                   Summary for sigh 2.104.0                   |
+-------------------------------------+------------------------+
| development                         | false                  |
| skip_certificate_verification       | true                   |
| adhoc                               | false                  |
| skip_install                        | false                  |
| force                               | false                  |
| app_identifier                      | com.team.myapp   |
| username                            | myuser@team.com |
| team_id                             | NL6V7373ZR             |
| ignore_profiles_with_different_name | false                  |
| skip_fetch_profiles                 | false                  |
| platform                            | ios                    |
| readonly                            | false                  |
+-------------------------------------+------------------------+

INFO [2018-09-14 13:37:50.62]: Starting login with user 'myuser@team.com'
Loading session from '/Users/myuser/.fastlane/spaceship/myuser@team.com/cookie'
INFO [2018-09-14 13:37:56.34]: Successfully logged in
INFO [2018-09-14 13:37:56.34]: Fetching profiles...
INFO [2018-09-14 13:37:58.49]: Found 1 matching profile(s)
WARN [2018-09-14 13:37:58.50]: Downloading provisioning profile...
INFO [2018-09-14 13:37:59.43]: Successfully downloaded provisioning profile...
INFO [2018-09-14 13:37:59.61]: Installing provisioning profile...
/Users/myuser/Desktop/myapp-iOS/AppStore_com.team.myapp.mobileprovision
INFO [2018-09-14 13:37:59.69]: Setting Provisioning Profile type to 'app-store'
INFO [2018-09-14 13:37:59.69]: -----------------
INFO [2018-09-14 13:37:59.69]: --- Step: gym ---
INFO [2018-09-14 13:37:59.69]: -----------------
INFO [2018-09-14 13:37:59.87]: $ xcodebuild -showBuildSettings -workspace myapp.xcworkspace -scheme myapp -configuration Release
DEBUG [2018-09-14 13:38:02.55]: Merging provisioning profile mappings
DEBUG [2018-09-14 13:38:02.55]: -------------------------------------
DEBUG [2018-09-14 13:38:02.55]: Primary provisioning profile mapping:
DEBUG [2018-09-14 13:38:02.55]: {"com.team.myapp"=>"myapp_provisioning"}
DEBUG [2018-09-14 13:38:02.55]: Secondary provisioning profile mapping:
DEBUG [2018-09-14 13:38:02.55]: {}
DEBUG [2018-09-14 13:38:02.55]: Resulting in the following mapping:
DEBUG [2018-09-14 13:38:02.55]: {:"com.team.myapp"=>"myapp_provisioning"}
INFO [2018-09-14 13:38:02.55]: Detected provisioning profile mapping: {:"com.team.myapp"=>"myapp_provisioning"}

+----------------------------------------------------------+---------------------------------------------------------------+
|                                                 Summary for gym 2.104.0                                                  |
+----------------------------------------------------------+---------------------------------------------------------------+
| scheme                                                   | myapp                                                       |
| workspace                                                | myapp.xcworkspace                                           |
| output_directory                                         | .                                                             |
| archive_path                                             | .                                                             |
| configuration                                            | Release                                                       |
| export_method                                            | app-store                                                     |
| clean                                                    | true                                                          |
| export_options.provisioningProfiles.com.team.myapp | myapp_provisioning                                          |
| destination                                              | generic/platform=iOS                                          |
| output_name                                              | myapp                                                       |
| build_path                                               | /Users/myuser/Library/Developer/Xcode/Archives/2018-09-14 |
| silent                                                   | false                                                         |
| skip_package_ipa                                         | false                                                         |
| result_bundle                                            | false                                                         |
| buildlog_path                                            | ~/Library/Logs/gym                                            |
| skip_profile_detection                                   | false                                                         |
| xcode_path                                               | /Applications/Xcode-beta.app                                  |
+----------------------------------------------------------+---------------------------------------------------------------+

+--------------------------------------------------------------+----------------------+
|                               Generated Build Command                               |
+--------------------------------------------------------------+----------------------+
| Option                                                       | Value                |
+--------------------------------------------------------------+----------------------+
| set -o pipefail &&                                           |                      |
| xcodebuild                                                   |                      |
| -workspace myapp.xcworkspace                               |                      |
| -scheme myapp                                              |                      |
| -configuration Release                                       |                      |
| -destination                                                 | generic/platform=iOS |
| -archivePath ..xcarchive                                     |                      |
| clean                                                        |                      |
| archive                                                      |                      |
| | tee /Users/myuser/Library/Logs/gym/myapp-myapp.log |                      |
| | xcpretty                                                   |                      |
+--------------------------------------------------------------+----------------------+
INFO [2018-09-14 13:38:02.90]: $ set -o pipefail && xcodebuild -workspace myapp.xcworkspace -scheme myapp -configuration Release -destination 'generic/platform=iOS' -archivePath ..xcarchive clean archive | tee /Users/myuser/Library/Logs/gym/myapp-myapp.log | xcpretty
INFO [2018-09-14 13:38:02.92]: ▸ tee: /Users/myuser/Library/Logs/gym/myapp-myapp.log: Permission denied
INFO [2018-09-14 13:38:04.29]: ▸ Cleaning myapp/myapp [Release]
INFO [2018-09-14 13:38:04.30]: ▸ Check Dependencies
INFO [2018-09-14 13:38:05.35]: ▸ Clean Succeeded
INFO [2018-09-14 13:38:05.38]: ▸ Building myapp/myapp [Release]
INFO [2018-09-14 13:38:05.38]: ▸ Check Dependencies
INFO [2018-09-14 13:38:09.03]: ▸ Precompiling myapp/myapp-Prefix.pch
INFO [2018-09-14 13:38:09.04]: ▸ Precompiling myapp/myapp-Prefix.pch
INFO [2018-09-14 13:38:09.04]: ▸ Precompiling myapp/myapp-Prefix.pch
INFO [2018-09-14 13:38:10.18]: ▸ Precompiling myapp/myapp-Prefix.pch


*********************SKIP COMPILATION PART**********************


** ARCHIVE FAILED **


The following build commands failed:
CopyPNGFile /Users/myuser/Library/Developer/Xcode/DerivedData/myapp-cgofymcuomqmureuxijeniahtfcu/Build/Intermediates.noindex/ArchiveIntermediates/myapp/InstallationBuildProductsLocation/Applications/myapp.app/tab_icon_ended_disabled~ipad.png myapp/Resources/Images/ipad/tab_icon_ended_disabled~ipad.png
(1 failure)
ERROR [2018-09-14 13:38:34.90]: Exit status: 1

+---------------+------------------------------+
|              Build environment               |
+---------------+------------------------------+
| xcode_path    | /Applications/Xcode-beta.app |
| gym_version   | 2.104.0                      |
| export_method | app-store                    |
| sdk           | iPhoneOS11.3.sdk             |
+---------------+------------------------------+

INFO [2018-09-14 13:38:34.94]: ▸ Check dependencies
INFO [2018-09-14 13:38:34.94]: ▸ Code Signing Error: No profile for team 'NL6V7373ZR' matching 'myapp_provisioning' found:  Xcode couldn't find any provisioning profiles matching 'NL6V7373ZR/myapp_provisioning'. 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.
INFO [2018-09-14 13:38:34.94]: ▸ Warning: The Copy Bundle Resources build phase contains this target's Info.plist file '/Users/myuser/Desktop/myapp-iOS/myapp/myapp-pro-Info.plist'.
INFO [2018-09-14 13:38:34.94]: ▸ Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.3'
INFO [2018-09-14 13:38:34.94]: 
ERROR [2018-09-14 13:38:34.94]: ⬆️  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
WARN [2018-09-14 13:38:34.94]: 📋  For the complete and more detailed error log, check the full log at:
WARN [2018-09-14 13:38:34.94]: 📋  /Users/myuser/Library/Logs/gym/myapp-myapp.log
INFO [2018-09-14 13:38:34.94]: 
ERROR [2018-09-14 13:38:34.94]: Looks like fastlane ran into a build/archive error with your project
ERROR [2018-09-14 13:38:34.94]: It's hard to tell what's causing the error, so we wrote some guides on how
ERROR [2018-09-14 13:38:34.94]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
ERROR [2018-09-14 13:38:34.94]: Before submitting an issue on GitHub, please follow the guide above and make
ERROR [2018-09-14 13:38:34.94]: sure your project is set up correctly.
ERROR [2018-09-14 13:38:34.94]: fastlane uses `xcodebuild` commands to generate your binary, you can see the
ERROR [2018-09-14 13:38:34.94]: the full commands printed out in yellow in the above log.
ERROR [2018-09-14 13:38:34.95]: Make sure to inspect the output above, as usually you'll find more error information there
INFO [2018-09-14 13:38:34.95]: 
WARN [2018-09-14 13:38:34.95]: Lane Context:
INFO [2018-09-14 13:38:34.95]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios myapp_release", :SIGH_PROFILE_PATH=>"/Users/myuser/Desktop/myapp-iOS/AppStore_com.team.myapp.mobileprovision", :SIGH_PROFILE_PATHS=>["/Users/myuser/Desktop/myapp-iOS/AppStore_com.team.myapp.mobileprovision"], :SIGH_UDID=>"779954bd-9311-45c9-833c-8be3a6c29faa", :SIGH_UUID=>"779954bd-9311-45c9-833c-8be3a6c29faa", :SIGH_NAME=>"myapp_provisioning", :SIGH_PROFILE_TYPE=>"app-store"}
ERROR [2018-09-14 13:38:34.95]: Error building the application - see the log above
INFO [2018-09-14 13:38:34.95]: Successfully generated documentation at path '/Users/myuser/Desktop/myapp-iOS/fastlane/README.md'

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 2    | sigh             | 9           |
| 💥   | gym              | 35          |
+------+------------------+-------------+

ERROR [2018-09-14 13:38:34.96]: fastlane finished with errors
bundler: failed to load command: fastlane (/usr/local/bin/fastlane)
FastlaneCore::Interface::FastlaneBuildFailure: [!] Error building the application - see the log above
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane_core/lib/fastlane_core/ui/interface.rb:163:in `build_failure!'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/gym/lib/gym/error_handler.rb:73:in `handle_build_error'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/gym/lib/gym/runner.rb:97:in `block in build_app'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane_core/lib/fastlane_core/command_executor.rb:88:in `execute'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/gym/lib/gym/runner.rb:93:in `build_app'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/gym/lib/gym/runner.rb:18:in `run'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/gym/lib/gym/manager.rb:19:in `work'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/actions/build_ios_app.rb:64:in `run'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/runner.rb:253:in `block (2 levels) in execute_action'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/runner.rb:232:in `block in execute_action'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/runner.rb:227:in `chdir'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/fast_file.rb:149:in `method_missing'
  Fastfile:12:in `block (2 levels) in parsing_binding'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
  /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:74:in `run!'
  /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/commands_generator.rb:333:in `run'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane/lib/fastlane/cli_tools_distributor.rb:108:in `take_off'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/bin/fastlane:20:in `<top (required)>'
  /usr/local/bin/fastlane:23:in `load'
  /usr/local/bin/fastlane:23:in `<top (required)>'

Fastfile:

default_platform(:ios)

platform :ios do

  lane :myapp_release do
      sigh(
        development:false,
        skip_certificate_verification:true
      )

      gym(
        scheme: "MyApp",
        workspace: "myapp.xcworkspace",
        output_directory: ".",
        archive_path:".",
        configuration: "Release",
        export_method: "app-store",
        export_options: {
          provisioningProfiles: {
            "com.team.myapp" => "myapp_provisioning.mobileprovision"
          }
        }
      )
  end
end
✅ fastlane environment ✅

Stack

Key Value
OS 10.13.3
Ruby 2.3.3
Bundler? false
Git git version 2.7.1
Installation Source /usr/local/bin/fastlane
Host Mac OS X 10.13.3 (17D47)
Ruby Lib Dir /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
OpenSSL Version LibreSSL 2.2.7
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode-beta.app/Contents/Developer/
Xcode Version 9.3

System Locale

Variable Value
LANG en_US.UTF-8
LC_ALL en_US.UTF-8
LANGUAGE

fastlane files:

`./fastlane/Fastfile`

default_platform(:ios)

platform :ios do

  lane :docuten_release do
      sigh(
        development:false,
        skip_certificate_verification:true
      )

      gym(
        scheme: "Docuten",
        workspace: "docuten.xcworkspace",
        output_directory: ".",
        archive_path:".",
        configuration: "Release",
        export_method: "app-store",
        clean:true,
        export_options: {
          provisioningProfiles: {
            "com.team.docuten" => "docuten_provisioning.mobileprovision"
          }
        }
      )
  end
end

`./fastlane/Appfile`
app_identifier("com.team.docuten") # The bundle identifier of your app
apple_id("jalcantara@mobbeel.com") # Your Apple email address

itc_team_id("2081035") # App Store Connect Team ID
team_id("NL6V7373ZR") # Developer Portal Team ID

fastlane gems

Gem Version Update-Status
fastlane 2.104.0 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.0.0
slack-notifier 2.3.2
atomos 0.1.3
claide 1.0.2
colored2 3.1.2
nanaimo 0.2.6
xcodeproj 1.6.0
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 1.8.0
unicode-display_width 1.4.0
terminal-table 1.8.0
plist 3.4.0
public_suffix 2.0.5
addressable 2.5.2
multipart-post 2.0.0
word_wrap 1.0.0
tty-screen 0.6.5
tty-cursor 0.6.0
tty-spinner 0.8.0
babosa 1.0.2
colored 1.2
highline 1.7.10
commander-fastlane 4.4.6
excon 0.62.0
faraday 0.15.2
unf_ext 0.0.7.5
unf 0.1.4
domain_name 0.5.20180417
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
fastimage 2.1.3
gh_inspector 1.1.3
mini_magick 4.5.1
multi_json 1.13.1
multi_xml 0.6.0
rubyzip 1.2.2
security 0.1.3
xcpretty-travis-formatter 1.0.0
dotenv 2.5.0
bundler 1.16.4
faraday_middleware 0.12.2
naturally 2.2.0
simctl 1.6.5
emoji_regex 0.1.1
CFPropertyList 3.0.0
json 2.1.0
httpclient 2.8.3
jwt 2.1.0
signet 0.9.1
os 1.0.0
memoist 0.16.0
googleauth 0.6.6
mime-types-data 3.2018.0812
mime-types 3.2.2
retriable 3.1.2
declarative-option 0.1.0
declarative 0.0.10
uber 0.1.0
representable 3.0.4
google-api-client 0.23.8
io-console 0.4.5
libxml-ruby 2.9.0

generated on: 2018-09-14

Xcode configuration

screen shot 2018-09-14 at 13

screen2

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 26 (2 by maintainers)

Most upvoted comments

I am facing the same issue. For me Archive Succeeded, but ran into code signing issue. All the provisioning profiles are present and Xcode Archives it successfully when you do ‘Product > Archive’.

FastFile: default_platform(:ios)

platform :ios do

lane :beta do
	gym(
    scheme: "DemoTwo",
    export_method: "app-store",
    export_xcargs: "-allowProvisioningUpdates"
  )
    # pilot
  end
end

Result: … … … ▸ Archive Succeeded ERROR [2018-10-01 21:06:36.42]: Exit status: 1

±--------------±------------------------+ | Build environment | ±--------------±------------------------+ | xcode_path | /Applications/Xcode.app | | gym_version | 2.105.2 | | export_method | app-store | | sdk | iPhoneOS12.0.sdk | ±--------------±------------------------+

INFO [2018-10-01 21:06:36.47]: ▸ note: Using new build system INFO [2018-10-01 21:06:36.47]: ▸ note: Planning build INFO [2018-10-01 21:06:36.47]: ▸ note: Constructing build description INFO [2018-10-01 21:06:36.47]: ▸ Build system information INFO [2018-10-01 21:06:36.47]: ▸ error: No profile for team ‘XXXXXXXXX’ matching ‘< AppStore provisioning profile>’ found: Xcode couldn’t find any provisioning profiles matching ‘XXXXXXXXX/< AppStore provisioning profile>’. 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. (in target ‘DemoTwo’) INFO [2018-10-01 21:06:36.47]: ERROR [2018-10-01 21:06:36.47]: ⬆️ Check out the few lines of raw xcodebuild output above for potential hints on how to solve this error

… … .

FIX

@helloabinash, thank you for the suggestion, I fix my problem. I have the same problem:

......
....
..
▸ Archive Succeeded
ERROR [12:34:44]: Exit status: 1

and i found the success log on other people’s mac:

[12:34:44]: ▸ Archive Succeeded
[12:34:44]: Generated plist file with the following values:
[12:34:44]: ▸ -----------------------------------------
[12:34:44]: ▸ {
[12:34:44]: ▸   "provisioningProfiles": {
[12:34:44]: ▸     "com.xxx.xxx": "xxx"
[12:34:44]: ▸   },
[12:34:44]: ▸   "method": "development",
[12:34:44]: ▸   "signingStyle": "manual"
[12:34:44]: ▸ }
[12:34:44]: ▸ -----------------------------------------
[12:34:49]: Successfully exported and signed the ipa file:

it seems like it exit when execute Generated plist file, so I guess maybe some permission issue.

when I use the command, it still has erred:

sudo chmod 755 -R /Users/{user}/Library/Logs/gym/

Finally, when I use this command, it fixes my problem:

sudo chown -R $(whoami) /Users/

FIX

@gokhanakkurt , Thanks man for the suggestion. I have tried the command sudo chmod 755 -R /Users/{user}/Library/Logs/gym/

your reference gave me an idea to dig into the issue, I am facing. Actually in my case I am trying continuous integration using Gitlab CI + fastlane. So I have got a file permission issue for user(server). I had to run the following command to give the access to other users. sudo chown -R $(whoami) .

fastlane searches for Provisioning Profile folder on your System (For a particular user, that you are logged in as / performing operation as)

/Users/{user}/Library/MobileDevice/Provisioning Profiles/

For server users, If no modifications done on installations or configuration (referring to Mac systems), user being created in the following path(in my case): /var/{user}/

Fastlane tries to find “Provisioning Profiles” folder under that user. If It fails to find, It throws the infamous error

error: No profile for team 'XXXXXXXXX' matching '< AppStore provisioning profile>' found: Xcode couldn't find any provisioning profiles matching 'XXXXXXXXX/< AppStore provisioning profile>'. 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. (in target 'DemoTwo')

I have configured my Xcode with all the right and required profiles and certificates, But It’s throwing the same error. NOTE: I have set manual code-signing for my project.

I copied my app’s provisioning profiles to the following path. (I had to create the some folders as they aren’t there earlier.) /var/{server-user}/Library/MobileDevice/Provisioning Profiles/

There are other ways to deal with this:

  1. You can put the copy "Provisioning profile " command in the script before executing fastlane commands (may be the .yml file).
  2. Use other fastlane tools like sigh, cert. In my case It didn’t work due to some issue.

🥳IT REALLY FEELS GOOD, WHEN THE WHOLE SET UP SUCCEEDS. Thank you everyone @gokhanakkurt , @Jaime97 , @fishercraigj

@BilalMustafa , @maximusnikulin , @oscarcpozas, @jospoon, @NachosSs, @gdavis - Please refer to this solution, If you are facing the same issue. I wish this could help.

Yeah @janpio the sigh part seems to work well, the gym part is the one causing the error. I didn’t notice that part of the output, I’m checking it but right now my certificate has expired (an I’m not his owner), so please give me a couple of days to answer. Thanks.

Hi @janpio, I still have it. I understand this error has many possible reasons so I can’t say if it’s the same for all of us here. I personally tried to describe it as well as I could. Anyway, thanks for the help.

Yes @fastlane-bot I have read it trying to find the answer before opening this issue.