Reputation: 1503
I am facing this error from few days and I am unable to release the .ipa file manually also due to this issue
error: No profile for team 'team_id' matching 'com.companyname.appname' found: Xcode couldn't find any provisioning profiles matching 'team_id/com.companyname.appname'. 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 'TargetName' from project 'ProjectName')
Earlier I was able to build and submit the app using the same provisioning profile.
This is my beta name in fastfile
lane :beta do
version = get_version_number(target: 'TargetName')
get_certificates # invokes cert
get_provisioning_profile # invokes sigh
increment_version_number(version_number: version)
increment_version_number(bump_type: 'patch')
build_app(workspace: "ProjectName.xcworkspace", scheme: "SchemeName", skip_profile_detection: true )
upload_to_testflight
end
Note my code signing is set to MANUAL
I was able to submit the app to test flight with the same configuration mentioned above but suddenly it stopped working.
I have tried following to fix the issue
Dir.chdir('../Pods') do
disable_automatic_code_signing(
path: 'ProjectName.xcodeproj',
team_id: 'team_id',
targets: ['TargetName'],
profile_name: 'com.companyname.appname'
)
gym(workspace: 'ProjectName.xcworkspace',scheme: "SchemeName", clean: true)
upload_to_testflight
end
mv ~/Library/MobileDevice/Provisioning\ Profiles ~/Library/MobileDevice/Old\ Provisioning\ Profile
Even with the newly created Provisioning profile the problem still persistsStill unable to resolve the issue.
Please help.
Thanks in Advance
Upvotes: 6
Views: 7169
Reputation: 701
The error might be vary, and could not be a signing issue at all.
Sometimes the issue could be a permission issue, That because at first time ran fastlane
command with sudo
,
So what I can say... "Don't execute any shell commands with sudo
at first time, If there are permission issue, then that you can try with sudo
."
Here, check the write permission for the following folders don't use sudo
, and if not have proper write permission grant write permission for all users.
/Users/{user}/Library/Logs/gym/
/Users/{user}/Library/Logs/gym/XXX.log
./fastlane/
./fastlane/report.xml
Upvotes: 4
Reputation: 137
often this error will happen if the xcode project is set to Automatically manage signing.
To check, open the xCode project, click on your target, select the option called Signing and Capabilities and make sure that the checkbox Automatically manage signing is not checked.
Once you have unchecked it, make sure to select a valid provisioning profile from the drop down list Provisioning Profile.
Best, Jorge
Upvotes: 0