iOS Code Sign error: No matching provisioning profiles found - ios

After updating to Xcode 6, I am unable to build my project. I am trying to use it for testing on an iPad with iOS 8 but when I hit "Build" I get the following error:
Code Sign error: No matching provisioning profiles found: None of the valid provisioning profiles allowed the specified entitlements: com.apple.developer.ubiquity-kvstore-identifier, com.apple.developer.ubiquity-container-identifiers.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.0'

I followed Erid's answer which led me to creating a new App ID in the Apple Dev Center. I then copied that App ID over to Xcode under Bundle ID and replaced the one I had there with the one I just created. Now I can build the project.

Related

my flutter build ipa fail with profile on vs code

I try to do flutter build ipa and I received this error:
Error (Xcode): No profiles for 'com.example.middeyapp' were found:
Xcode couldn't find any iOS App Development provisioning profiles
matching 'com.example.middeyapp'. Automatic signing is disabled and
unable to generate a profile. To enable automatic signing, pass
-allowProvisioningUpdates to xcodebuild.
For context, that is not the real build id of the app.
I have created an Identifier already for the app and I still receive this error, I was given an enrolled account to login on my Xcode butI don’t why I'm still receiving this error.
You need to check this:
Open Runner.xcodeproj in the XCode (ios) folder.
Check that these fields filled:

Unable to Code sign iOS application due to duplicate distribution certificates with different private keys

We have two iOS Distribution certificates for Project A and Project B. I´m having some issues with signing because both distribution certificates have the same name but with different keys.
If I add both certificates and try to sign with one of them for Project A I get an error message that says below.
Code Signing Error: Provisioning profile “NTT One Dev" doesn't include signing certificate "iPhone Distribution: NTT LLP".
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 13.2'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 13.2'
For Project B I can sign the app without issues even if I had two distribution certificates with same name. I have to remove the newly added certificate from Keychain access to sign the app for Project A. This makes signing an application a time consuming task as I have to export/import certificates every time I want build apps.
Does anyone know of a way of changing the name of the Distribution certificate that Apple generates or how can I resolve this issue without removing certificates?
Best regards
Naga
Issue resolved after removing the old certificate and modified the provision profile for Project A to use same certificate used by Project B.

iOS deployment: Errors when trying to Archive

I'm trying to build my app for iOS and the more I go further, the more errors I get. I spent hours dealing with them, and I need your help with some issues. I have all certificates needed.
When trying to Archive my app, I ge the following errors:
Check dependencies
Failed to create provisioning profile. There are no devices registered in your account on the developer website. Plug in and select a device to have Xcode register it.
No profiles for 'net.package.my' were found: Xcode couldn't find a provisioning profile matching 'net.package.my'.
Code signing is required for product type 'Application' in SDK 'iOS 10.2'
There are no devices registered in my account developer website? Huh? I don't have an iPhone, I bought mac for the develoyment process, why do I get this error and how I can overpass it?
No profiles for my package - why? what does it checks exactly? I followed every single step of the deployment proccess..
Code signing is required.. ok where?
My settings for signing:
If I pick my profile I get error about conflict, and that I should change the settings to iOS developer.

The executable was signed with invalid entitlements after Xcode 7.2 update

Today I updated Xcode to version 7.2. When I opened Xcode after the update to do some enhancements to my app, I got build errors about the name of the app, which has an underscore in it (com.company.my_app). So I changed to bundle identifier to com.company.myapp (just removed the '_'). I've tried to rename all the My_app instances to the name without the underscore.
Now, every time I build the app it works, the build succeeds. But when it has to run the app on the iPhone (which I've previously used), it gives the error The executable was signed with invalid entitlements. I've checked the build settings with the provisioning profiles and entitlements and this is the list:
Code Signing
Setting: My_app
Code Signing Identity: iOS Developer
Debug: iOS Developer
Any iOS SDK: iOS Developer
Release: iOS Developer
Any iOS SDK: iOS Developer
Provisioning Profile: Automatic
Debug: Automatic
Release: Automatic
Changing the Code Signing Identity values to anything else I can choose from the menu (I get my own account with my email address, which is the correct one), it gives the following error:
Failed to code sign "Myapp"
Your build settings specify a provisioning profile with the UUID “ca8f55bc-aa78-445a-aa45-a6a69ff552f7”, however, no such provisioning profile was found.
Xcode can attempt to fix this issue. This will reset your code signing and provisioning settings to recommended values and resolve issues with signing identities and provisioning profiles.
It then shows a dialog asking me to fix these issues, but when I do that (selecting my profile) it just resets the values back to iOS Developer and the Provisioning Profile settings back to automatic. When I try to run the app, it just gives me the same error about the executable being signed with invalid entitlements.
How do I fix this? I just can't install this app on my iPhone and in the simulator it gets stuck at the splash screen. It was working perfectly well before the Xcode 7.2 update.
Your bundle identifier is linked to your provisioning profile when you changed it there is now no provisioning profile for your app.

Error when archiving iOS application swift

I am trying to upload my app to the app store, but when I archive the app, I get an error saying, "No non–expired provisioning profiles were found.
Xcode can attempt to fix this issue". It gives me an option to fix the issue, and when I press it, I get another error saying, "Unable to create a provisioning profile because your team has no devices registered in the Member Center. Please connect a device, enable it for development, and add it to the Member Center using the Organizer." And an error saying, "codeSign Error: code signing is required for product type "Application in SDK "iOS 8.4". What is causing this? How do I fix it?
to fix this
codeSign Error: code signing is required for product type "Application in SDK "iOS 8.4
open Build Settings of your target => Code Signing
then change "Don't Code Sign" to yours for "Code Signing Identity" row
You either could generate a provision profile by yourself in your developer account on developer.apple.com. After you need to download it and say to the xcode to use it (Build Settings => Code Signing => Provision Profile, if the xcode doesn't see the downloaded provision have to add it to ~/Library/MobileDevice/Provisioning Profiles/ folder). After all try to restart the xcode, clean up the last build and build all over again.

Resources