Codesign错误:在删除过期的配置文件之后,无法找到配置文件

时间:2023-01-16 20:32:59

Tried to rebuild an app that was just working yesterday. Got a message that a profile had expired, so I removed it from the iPod and from iTunes. When I chose a new profile (one with an * in the identifier), I now get an error:

试着重新构建一个昨天还在运行的应用程序。我收到一条信息说有个人资料过期了,所以我把它从iPod和iTunes上删除了。当我选择一个新的配置文件(标识符中有一个*)时,我现在得到一个错误:

Code Sign Error: Provisioning Profile (long string) can't be found.

What am I missing? I looked through related questions and didn't see this scenario already.

我缺少什么?我查看了相关的问题,并没有看到这个场景。

16 个解决方案

#1


852  

Sometimes your xcode project file gets messed up, especially if you have an old project and first created it with an older version of xcode/iphone sdk. What you need to do is open up the project file in a text editor, search for the 'long string' from your error and manually erase that line. In fact, you should just go ahead and erase any line that points to any provisioning profiles. Then reopen the project in xcode, go to the settings and reselect your new profile. This clears up issues like that most of the time. The lines that point to the provisioning profiles will look like this:

有时,xcode项目文件会出错,特别是如果您有一个旧的项目,并首先使用旧版本的xcode/iphone sdk创建它。您需要做的是在文本编辑器中打开项目文件,从您的错误中搜索“长字符串”并手动删除这一行。事实上,您应该直接删除指向任何配置文件的任何行。然后在xcode中重新打开项目,转到设置并重新选择新的概要文件。这在大多数时候都能解决类似的问题。指向配置文件的行将如下所示:

PROVISIONING_PROFILE = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";

#2


129  

Here's a simpler solution that worked for me and which doesn't require the manual editing of the project file:

这里有一个简单的解决方案,对我有效,不需要手工编辑项目文件:

In XCode, in the "Groups & Files" pane, expand "Targets" and double-click on your app's target. This brings up the Info pane for the target. In the "Build" section, check the "code signing" section for any old profiles and replace with the correct one.

在XCode中,在“组和文件”窗格中,展开“目标”并双击应用程序的目标。这将为目标打开信息窗格。在“构建”一节中,检查“代码签名”一节中的任何旧概要,并用正确的概要替换。

Note that this is different from double-clicking on your project icon and changing the profile from there. Quite amazing :)

注意,这与双击项目图标并从那里更改概要文件不同。相当惊人:)

Ori

让奥

#3


76  

  1. Project&Targets Properties -> "Don't Code Sign" -> OK -> cmd+S(or cmd+B);
  2. 项目及目标属性->“不编码符号”-> OK -> cmd+S(或cmd+B);
  3. Project&Targets Properties -> "Your Provision Profile"-> OK

    项目和目标属性->“您的供应配置文件”-> OK

  4. Everything works again!

    一切正常!

#4


10  

I agree with Brad's answer, that you can fix this problem by editing your target/project by hand, deleting any lines like this:

我同意Brad的回答,你可以手工编辑你的目标/项目,删除任何这样的行:

PROVISIONING_PROFILE = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";

However, in Xcode 4.2 and later, there is a much easier way to access this text and select and delete it. In the Project Navigator on the left, select your project (the topmost line of the Project Navigator). Now simply choose View > Version Editor > Show Version Editor. This displays your project as text, and you can search for PROVISIONING and delete the troublesome line, right there in the editor pane of Xcode.

但是,在Xcode 4.2和之后,有一种更简单的方法来访问该文本并选择并删除它。在左边的项目导航器中,选择项目(项目导航器的最上面一行)。现在只需选择View >版本编辑器>显示版本编辑器。这将显示您的项目作为文本,您可以在Xcode的编辑器窗格中搜索提供和删除麻烦的行。

#5


6  

Just saw a variation on this issue: I went into the project.pbxproj file as per Brad Smith's notes above, except in this case all of the PROVISIONING_PROFILE lines seemed to be correct, with no occurrence of the "bad" profile string that XCode couldn't find.

我看到了这个问题的变化:我进入了这个项目。根据上面Brad Smith的说明,pbxproj文件,除了在本例中,所有PROVISIONING_PROFILE行似乎都是正确的,没有出现XCode找不到的“坏”概要字符串。

However, the fix was the same: deleting ALL of the PROVISIONING_PROFILE lines in project.pbxproj, even though they looked "good" in theory, and then reopening the project in XCode.

但是,修复是相同的:删除项目中的所有PROVISIONING_PROFILE行。pbxproj,即使它们在理论上看起来“不错”,然后在XCode中重新打开项目。

#6


4  

To achieve Brad's solution entirely in Terminal, use these commands

要在终端中完全实现Brad的解决方案,请使用以下命令

  1. cd [Xcode project parent]
  2. cd(Xcode项目母公司)
  3. vi [Xcode project name].xcodeproj/project.pbxproj
  4. vi .xcodeproj / project.pbxproj Xcode项目名称
  5. /[offending provisioning profile] [Enter]
  6. /[冒犯配置概要文件][输入]
  7. dd - delete the entire line
  8. 删除整行
  9. Press n until no more are found
  10. 按n,直到再也找不到为止
  11. Ctrl+x to save and close
  12. Ctrl+x保存并关闭

#7


3  

In my case the problem was solved by opening Window -> Organizer, selecting my device and removing the old Provisioning Profile under the "Provisioning" panel on the right. The old one was already marked with a red "x" symbol but the iPhone was still using it.

在我的例子中,问题通过打开窗口—>组织者、选择我的设备并在右侧的“配给”面板下删除旧的配给配置文件得到了解决。旧的已经被标记为红色的“x”符号,但是iPhone仍然在使用它。

Besides that profile, also the new one was showing up (with the same name) and after simply relaunching the application I had it running smoothly.

除了这个概要文件之外,新的概要文件也出现了(使用相同的名称),在重新启动应用程序之后,我让它运行得很顺利。

#8


3  

Just spent a hour or so doing this and with the help of Brad's advice and a few additional changes it all worked.

花了一个小时左右的时间来做这件事,在布拉德的建议和一些额外的改变的帮助下,一切都成功了。

I've done this using the following: 10.7.3, Xcode 4.3.2, iOS 5.1 btw.

我使用了以下代码:10.7.3,Xcode 4.3.2, ios5.1。

1) Right click on your myapp.xcodeproj and select package contents

1)右键单击myapp。xcodeproj并选择包内容。

2) open project.pbxproj with a text editor (don't recommend textedit as it may screw up the formatting)

2)开放项目。使用文本编辑器的pbxproj(不要推荐textedit,因为它可能会破坏格式)

3) Scroll all the way down until you find /* Begin XCBuildConfiguration section */

3)一直向下滚动,直到找到/* Begin XCBuildConfiguration部分*/

4) Notice that you have a debug and release sections

4)注意,您有一个调试和发布部分。

5) In the release section take a look at CODE_SIGN_IDENTITY & "CODE_SIGN_IDENTITY[sdk=iphoneos*]" it should look something like this:

5)在发布部分查看CODE_SIGN_IDENTITY &“CODE_SIGN_IDENTITY”[sdk=iphoneos*]“应该是这样的:

CODE_SIGN_IDENTITY = "iPhone Distribution: MyCompany LLC";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: MyCompany LLC";

6) Take a look at PROVISIONING_PROFILE and "PROVISIONING_PROFILE[sdk=iphoneos*]" they should look like this:

6)查看provision_profile和“PROVISIONING_PROFILE[sdk=iphoneos*]”它们应该是这样的:

PROVISIONING_PROFILE = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";

This should match your provisioning profile in Xcode. To see if they match open Xcode > Window > Organizer > Devices > Provisioning Profiles > Right click on the profile > Reveal in Finder > The filename of the .mobileprovision is your profile id.

这应该与您在Xcode中的配置文件相匹配。要查看它们是否匹配打开的Xcode >窗口>组织者>设备>配置文件>右键单击Finder >中显示的配置文件> . mobile条款的文件名是您的配置文件id。

7) Scroll down in the project.pbxproj and find a second instance of the release section. The second instance of the release section should end with a comment saying /* End XCBuildConfiguration section */

7)在项目中向下滚动。找到发布部分的第二个实例。发布部分的第二个实例应该以注释结尾:/* end XCBuildConfiguration部分*/

8) make sure that the second section matches the first section so that CODE_SIGN_IDENTITY, "CODE_SIGN_IDENTITY[sdk=iphoneos*], and PROVISIONING_PROFILE are all filled in.

8)确保第二部分与第一部分匹配,以便填写CODE_SIGN_IDENTITY、“CODE_SIGN_IDENTITY[sdk=iphoneos*]和PROVISIONING_PROFILE。

#9


2  

One suggestion I'll make since no one yet has said it: PLEASE PLEASE PLEASE make a backup of your whole .xcodeproj file BEFORE you start modifying it's contents. Screwing up the project file and having no backup will lead to a very very unpleasant experience.

我将提出一个建议,因为还没有人说过:请在开始修改内容之前,对您的整个.xcodeproj文件进行备份。把项目文件搞砸,没有备份会导致非常不愉快的体验。

Being able to back out of an edit can be a godsend.

能够从编辑中退出是天赐之福。

#10


1  

I just encountered this problem in my XCode4. To fix it, you need to put all the correct provisions into both Debug and Release config.

我刚刚在XCode4中遇到了这个问题。要修复它,您需要将所有正确的条款都放入调试和发布配置中。

I was trying to submit (by archiving) my app. So I just change the Debug provisions to "Don't Code Sign", and the Release provision to my app's appstore provision.

我试图提交(通过存档)我的应用程序,所以我只将调试条款更改为“不编码标志”,并将发布条款更改为我的应用程序的appstore条款。

This fix it and enables me to archive normally. Hope that helps.

这个修复了它,使我可以正常归档。希望有帮助。

#11


1  

Select the lines in codesigning that are blank under Any iOS SDK and select the right certificate.

选择在任何iOS SDK下为空的代码行,并选择正确的证书。

#12


1  

The solution of Brad Smith worked for me, but I also had to remove the CODE_SIGN_IDENTITY field to make it work.

Brad Smith的解决方案为我工作,但我也不得不删除CODE_SIGN_IDENTITY字段以使其工作。

#13


0  

Unfortunately this approach didn't work out for me. But here's a fix which worked for me (to get this to work you need a working project file on Subversion or so):

不幸的是,这种方法对我不起作用。但是这里有一个对我有用的修复(要让它工作,你需要一个关于Subversion的工作项目文件):

I did roll back to an working version of my project file. As it isn't possible to revert with Xcode (Where is the 'Revert' option in Xcode 4's Source Control?) - I used Tortoise, my Windows machine and this Tutorial (http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-howto-rollback.html) to roll back to an older project file.

我确实回滚到项目文件的工作版本。由于无法使用Xcode进行还原(Xcode 4的源代码控制中有“还原”选项吗?)——我使用了玳瑁、我的Windows机器和本教程(http://玳瑁色/ docs/nightly/玳esvn_en/tsvn -howto-rollback.html)回滚到一个旧的项目文件中。

As the Tutorial didn't work out for me, I just used Tortoise to save the working revision of my project file to an usb stick to port it to my mac. After that I replaced the new broken project file with the old working one, cleaned and it worked like a charm!

教程对我没用,我只是用乌龟来拯救我的项目文件的修订工作一个u盘将它移植到我的mac。之后我更换新的项目文件与旧工作,清洗和这个小手腕像魔法一样有效!

#14


0  

I was having issues because I updated my AdHoc provisioning profile with some new devices for use on TestFlight. Assumedly this is happening because xcode has an old reference to your provisioning profile in either the codesigning build settings for the project or the targets. The way I fixed mine was to:

我遇到了一些问题,因为我用一些新设备更新了我的临时配置文件,以便在TestFlight上使用。可能这是因为xcode在项目或目标的共同设计构建设置中对您的供应配置文件有一个旧的引用。我的固定方法是:

  1. Go to both target build settings and project build settings, Under code signing change all the provisioning profiles to something else.
  2. 转到目标构建设置和项目构建设置,在代码签名下,将所有配置文件更改为其他内容。
  3. Go to devices/provisioning profiles in the organiser delete the offending profiles, then click the refresh button in the bottom right.
  4. 转到主办机构的设备/设备配置文件删除违规配置文件,然后单击右下角的refresh按钮。
  5. Go back to to the target and project build settings and set your provisioning profiles to the appropriate (hopefully) newly refreshed provisioning profiles.
  6. 回到目标和项目构建设置,将配置文件设置为适当的(希望如此)新刷新的配置文件。

#15


0  

At least in Xcode 5, this is the thing that solved the problem for me:

至少在Xcode 5中,这是我解决问题的方法:

Under provisioning profile, select the offending provisioning profile and then select a valid provisioning profile in the pull-down menu.

在“供应配置文件”下,选择违规的供应配置文件,然后在“下拉”菜单中选择有效的供应配置文件。

Codesign错误:在删除过期的配置文件之后,无法找到配置文件

#16


0  

You Could remove old reference of provisioning file. Then after import new provisioning Profile and selecting Xcode builder.

您可以删除配置文件的旧引用。然后导入新的配置文件并选择Xcode builder。

#1


852  

Sometimes your xcode project file gets messed up, especially if you have an old project and first created it with an older version of xcode/iphone sdk. What you need to do is open up the project file in a text editor, search for the 'long string' from your error and manually erase that line. In fact, you should just go ahead and erase any line that points to any provisioning profiles. Then reopen the project in xcode, go to the settings and reselect your new profile. This clears up issues like that most of the time. The lines that point to the provisioning profiles will look like this:

有时,xcode项目文件会出错,特别是如果您有一个旧的项目,并首先使用旧版本的xcode/iphone sdk创建它。您需要做的是在文本编辑器中打开项目文件,从您的错误中搜索“长字符串”并手动删除这一行。事实上,您应该直接删除指向任何配置文件的任何行。然后在xcode中重新打开项目,转到设置并重新选择新的概要文件。这在大多数时候都能解决类似的问题。指向配置文件的行将如下所示:

PROVISIONING_PROFILE = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";

#2


129  

Here's a simpler solution that worked for me and which doesn't require the manual editing of the project file:

这里有一个简单的解决方案,对我有效,不需要手工编辑项目文件:

In XCode, in the "Groups & Files" pane, expand "Targets" and double-click on your app's target. This brings up the Info pane for the target. In the "Build" section, check the "code signing" section for any old profiles and replace with the correct one.

在XCode中,在“组和文件”窗格中,展开“目标”并双击应用程序的目标。这将为目标打开信息窗格。在“构建”一节中,检查“代码签名”一节中的任何旧概要,并用正确的概要替换。

Note that this is different from double-clicking on your project icon and changing the profile from there. Quite amazing :)

注意,这与双击项目图标并从那里更改概要文件不同。相当惊人:)

Ori

让奥

#3


76  

  1. Project&Targets Properties -> "Don't Code Sign" -> OK -> cmd+S(or cmd+B);
  2. 项目及目标属性->“不编码符号”-> OK -> cmd+S(或cmd+B);
  3. Project&Targets Properties -> "Your Provision Profile"-> OK

    项目和目标属性->“您的供应配置文件”-> OK

  4. Everything works again!

    一切正常!

#4


10  

I agree with Brad's answer, that you can fix this problem by editing your target/project by hand, deleting any lines like this:

我同意Brad的回答,你可以手工编辑你的目标/项目,删除任何这样的行:

PROVISIONING_PROFILE = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";

However, in Xcode 4.2 and later, there is a much easier way to access this text and select and delete it. In the Project Navigator on the left, select your project (the topmost line of the Project Navigator). Now simply choose View > Version Editor > Show Version Editor. This displays your project as text, and you can search for PROVISIONING and delete the troublesome line, right there in the editor pane of Xcode.

但是,在Xcode 4.2和之后,有一种更简单的方法来访问该文本并选择并删除它。在左边的项目导航器中,选择项目(项目导航器的最上面一行)。现在只需选择View >版本编辑器>显示版本编辑器。这将显示您的项目作为文本,您可以在Xcode的编辑器窗格中搜索提供和删除麻烦的行。

#5


6  

Just saw a variation on this issue: I went into the project.pbxproj file as per Brad Smith's notes above, except in this case all of the PROVISIONING_PROFILE lines seemed to be correct, with no occurrence of the "bad" profile string that XCode couldn't find.

我看到了这个问题的变化:我进入了这个项目。根据上面Brad Smith的说明,pbxproj文件,除了在本例中,所有PROVISIONING_PROFILE行似乎都是正确的,没有出现XCode找不到的“坏”概要字符串。

However, the fix was the same: deleting ALL of the PROVISIONING_PROFILE lines in project.pbxproj, even though they looked "good" in theory, and then reopening the project in XCode.

但是,修复是相同的:删除项目中的所有PROVISIONING_PROFILE行。pbxproj,即使它们在理论上看起来“不错”,然后在XCode中重新打开项目。

#6


4  

To achieve Brad's solution entirely in Terminal, use these commands

要在终端中完全实现Brad的解决方案,请使用以下命令

  1. cd [Xcode project parent]
  2. cd(Xcode项目母公司)
  3. vi [Xcode project name].xcodeproj/project.pbxproj
  4. vi .xcodeproj / project.pbxproj Xcode项目名称
  5. /[offending provisioning profile] [Enter]
  6. /[冒犯配置概要文件][输入]
  7. dd - delete the entire line
  8. 删除整行
  9. Press n until no more are found
  10. 按n,直到再也找不到为止
  11. Ctrl+x to save and close
  12. Ctrl+x保存并关闭

#7


3  

In my case the problem was solved by opening Window -> Organizer, selecting my device and removing the old Provisioning Profile under the "Provisioning" panel on the right. The old one was already marked with a red "x" symbol but the iPhone was still using it.

在我的例子中,问题通过打开窗口—>组织者、选择我的设备并在右侧的“配给”面板下删除旧的配给配置文件得到了解决。旧的已经被标记为红色的“x”符号,但是iPhone仍然在使用它。

Besides that profile, also the new one was showing up (with the same name) and after simply relaunching the application I had it running smoothly.

除了这个概要文件之外,新的概要文件也出现了(使用相同的名称),在重新启动应用程序之后,我让它运行得很顺利。

#8


3  

Just spent a hour or so doing this and with the help of Brad's advice and a few additional changes it all worked.

花了一个小时左右的时间来做这件事,在布拉德的建议和一些额外的改变的帮助下,一切都成功了。

I've done this using the following: 10.7.3, Xcode 4.3.2, iOS 5.1 btw.

我使用了以下代码:10.7.3,Xcode 4.3.2, ios5.1。

1) Right click on your myapp.xcodeproj and select package contents

1)右键单击myapp。xcodeproj并选择包内容。

2) open project.pbxproj with a text editor (don't recommend textedit as it may screw up the formatting)

2)开放项目。使用文本编辑器的pbxproj(不要推荐textedit,因为它可能会破坏格式)

3) Scroll all the way down until you find /* Begin XCBuildConfiguration section */

3)一直向下滚动,直到找到/* Begin XCBuildConfiguration部分*/

4) Notice that you have a debug and release sections

4)注意,您有一个调试和发布部分。

5) In the release section take a look at CODE_SIGN_IDENTITY & "CODE_SIGN_IDENTITY[sdk=iphoneos*]" it should look something like this:

5)在发布部分查看CODE_SIGN_IDENTITY &“CODE_SIGN_IDENTITY”[sdk=iphoneos*]“应该是这样的:

CODE_SIGN_IDENTITY = "iPhone Distribution: MyCompany LLC";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: MyCompany LLC";

6) Take a look at PROVISIONING_PROFILE and "PROVISIONING_PROFILE[sdk=iphoneos*]" they should look like this:

6)查看provision_profile和“PROVISIONING_PROFILE[sdk=iphoneos*]”它们应该是这样的:

PROVISIONING_PROFILE = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";

This should match your provisioning profile in Xcode. To see if they match open Xcode > Window > Organizer > Devices > Provisioning Profiles > Right click on the profile > Reveal in Finder > The filename of the .mobileprovision is your profile id.

这应该与您在Xcode中的配置文件相匹配。要查看它们是否匹配打开的Xcode >窗口>组织者>设备>配置文件>右键单击Finder >中显示的配置文件> . mobile条款的文件名是您的配置文件id。

7) Scroll down in the project.pbxproj and find a second instance of the release section. The second instance of the release section should end with a comment saying /* End XCBuildConfiguration section */

7)在项目中向下滚动。找到发布部分的第二个实例。发布部分的第二个实例应该以注释结尾:/* end XCBuildConfiguration部分*/

8) make sure that the second section matches the first section so that CODE_SIGN_IDENTITY, "CODE_SIGN_IDENTITY[sdk=iphoneos*], and PROVISIONING_PROFILE are all filled in.

8)确保第二部分与第一部分匹配,以便填写CODE_SIGN_IDENTITY、“CODE_SIGN_IDENTITY[sdk=iphoneos*]和PROVISIONING_PROFILE。

#9


2  

One suggestion I'll make since no one yet has said it: PLEASE PLEASE PLEASE make a backup of your whole .xcodeproj file BEFORE you start modifying it's contents. Screwing up the project file and having no backup will lead to a very very unpleasant experience.

我将提出一个建议,因为还没有人说过:请在开始修改内容之前,对您的整个.xcodeproj文件进行备份。把项目文件搞砸,没有备份会导致非常不愉快的体验。

Being able to back out of an edit can be a godsend.

能够从编辑中退出是天赐之福。

#10


1  

I just encountered this problem in my XCode4. To fix it, you need to put all the correct provisions into both Debug and Release config.

我刚刚在XCode4中遇到了这个问题。要修复它,您需要将所有正确的条款都放入调试和发布配置中。

I was trying to submit (by archiving) my app. So I just change the Debug provisions to "Don't Code Sign", and the Release provision to my app's appstore provision.

我试图提交(通过存档)我的应用程序,所以我只将调试条款更改为“不编码标志”,并将发布条款更改为我的应用程序的appstore条款。

This fix it and enables me to archive normally. Hope that helps.

这个修复了它,使我可以正常归档。希望有帮助。

#11


1  

Select the lines in codesigning that are blank under Any iOS SDK and select the right certificate.

选择在任何iOS SDK下为空的代码行,并选择正确的证书。

#12


1  

The solution of Brad Smith worked for me, but I also had to remove the CODE_SIGN_IDENTITY field to make it work.

Brad Smith的解决方案为我工作,但我也不得不删除CODE_SIGN_IDENTITY字段以使其工作。

#13


0  

Unfortunately this approach didn't work out for me. But here's a fix which worked for me (to get this to work you need a working project file on Subversion or so):

不幸的是,这种方法对我不起作用。但是这里有一个对我有用的修复(要让它工作,你需要一个关于Subversion的工作项目文件):

I did roll back to an working version of my project file. As it isn't possible to revert with Xcode (Where is the 'Revert' option in Xcode 4's Source Control?) - I used Tortoise, my Windows machine and this Tutorial (http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-howto-rollback.html) to roll back to an older project file.

我确实回滚到项目文件的工作版本。由于无法使用Xcode进行还原(Xcode 4的源代码控制中有“还原”选项吗?)——我使用了玳瑁、我的Windows机器和本教程(http://玳瑁色/ docs/nightly/玳esvn_en/tsvn -howto-rollback.html)回滚到一个旧的项目文件中。

As the Tutorial didn't work out for me, I just used Tortoise to save the working revision of my project file to an usb stick to port it to my mac. After that I replaced the new broken project file with the old working one, cleaned and it worked like a charm!

教程对我没用,我只是用乌龟来拯救我的项目文件的修订工作一个u盘将它移植到我的mac。之后我更换新的项目文件与旧工作,清洗和这个小手腕像魔法一样有效!

#14


0  

I was having issues because I updated my AdHoc provisioning profile with some new devices for use on TestFlight. Assumedly this is happening because xcode has an old reference to your provisioning profile in either the codesigning build settings for the project or the targets. The way I fixed mine was to:

我遇到了一些问题,因为我用一些新设备更新了我的临时配置文件,以便在TestFlight上使用。可能这是因为xcode在项目或目标的共同设计构建设置中对您的供应配置文件有一个旧的引用。我的固定方法是:

  1. Go to both target build settings and project build settings, Under code signing change all the provisioning profiles to something else.
  2. 转到目标构建设置和项目构建设置,在代码签名下,将所有配置文件更改为其他内容。
  3. Go to devices/provisioning profiles in the organiser delete the offending profiles, then click the refresh button in the bottom right.
  4. 转到主办机构的设备/设备配置文件删除违规配置文件,然后单击右下角的refresh按钮。
  5. Go back to to the target and project build settings and set your provisioning profiles to the appropriate (hopefully) newly refreshed provisioning profiles.
  6. 回到目标和项目构建设置,将配置文件设置为适当的(希望如此)新刷新的配置文件。

#15


0  

At least in Xcode 5, this is the thing that solved the problem for me:

至少在Xcode 5中,这是我解决问题的方法:

Under provisioning profile, select the offending provisioning profile and then select a valid provisioning profile in the pull-down menu.

在“供应配置文件”下,选择违规的供应配置文件,然后在“下拉”菜单中选择有效的供应配置文件。

Codesign错误:在删除过期的配置文件之后,无法找到配置文件

#16


0  

You Could remove old reference of provisioning file. Then after import new provisioning Profile and selecting Xcode builder.

您可以删除配置文件的旧引用。然后导入新的配置文件并选择Xcode builder。