Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code Sign error: Provisioning profile can't be found

I have been working the whole day to try to build my app on my device.

I get this error when I try to build on my device.

I have been reading about this problem but do not really understand how to fix it. The following is where I would believe the problem is. I am new on this so I have no experience how to solve this.

When I open the "Dont Code sign" I have "Automatic profile selector (recommended)" with two lines I can select and also "My profile for dev" with one line to select. Do not know if this is where the problem is?

Any help is appreciated.

enter image description here

like image 573
PeterK Avatar asked Apr 22 '11 17:04

PeterK


People also ask

What is a provisioning profile & code signing in iOS?

A provisioning profile is a collection of digital entities that uniquely ties developers and devices to an authorized iPhone Development Team and enables a device to be used for testing. A Development Provisioning Profile must be installed on each device on which you wish to run your application code.

How do I find provisioning profiles on my iPhone?

The easiest way to manage the provisioning profiles on the iPhone is to open Xcode and select the menu item "Devices and Simulators" in the Window menu. Right-click on your iPhone XS and select "Show provisioning profiles". You'll then be able to see the installed profiles, add new ones and delete existing profiles.

Can't find any available provisioning profiles for iOS simulator?

If your Bundle Identifier has a name like "com. myapp. app1", you will get this error: Could not find any available provisioning profiles for iOS, because your profile accept only apps with the names started with com. companyname and you are using a appname different.

How do I add a certificate to my provisioning profile?

Click Certificates, Identifiers and Profiles . Under Provisioning Profiles , Click All . Click Add(+) to register a new provisioning profile. Select iOS App Development and click Continue .


1 Answers

Here's how I did it.

  • Shut down Xcode.
  • Back up the project.pbxproj file.
  • Edit the project.pbxproj file and remove lines of instances where it mentions the old provisioning profile.
    • eg. Delete line:
    • PROVISIONING_PROFILE = "8D024EDA-DC05-40DF-B3EB-536392615EE2";
  • Restart Xcode and perform a full clean of the project.
  • It should then build without warnings.

Enjoy!

like image 195
jyap Avatar answered Oct 02 '22 20:10

jyap