Xcode 4 - 已添加、修改或删除已签名资源

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14402671/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 02:33:24  来源:igfitidea点击:

Xcode 4 - A signed resource has been added, modified, or deleted

iosxcodesigning

提问by sircrom

Issue:

问题:

I have created an app, distributed an ad-hoc version and successfully uploaded it under Organizer - Devices. So far so good. Now, i've tried a 2nd app. When i uploaded this one, i get the following message:

我创建了一个应用程序,分发了一个临时版本并在管理器 - 设备下成功上传了它。到现在为止还挺好。现在,我尝试了第二个应用程序。当我上传这个时,我收到以下消息:

A signed resource has been added, modified, or deleted.

已添加、修改或删除签名资源。

I googeld for a while and tried the following things:

我搜索了一段时间并尝试了以下操作:

  • avoid special chars in the projectname
  • clear the build
  • delete derived data under Organizer - Projects
  • renew my Certificate
  • renew all my provisioning profiles
  • i've made a new and minimalistic project
  • 避免在项目名称中使用特殊字符
  • 清除构建
  • 删除管理器下的派生数据 - 项目
  • 更新我的证书
  • 更新我所有的配置文件
  • 我做了一个新的简约项目

It failed all. Same message every time.

一切都失败了。每次都是一样的消息。

Hopefully someone can help me, please.

希望有人可以帮助我,请。

回答by RaffAl

I had the same issue and what worked for me was deleting the Derived Data (in Organizer).

我遇到了同样的问题,对我有用的是删除派生数据(在管理器中)。

enter image description here

在此处输入图片说明

回答by edaype

  • Make sure you created the app ID for both apps in the Apple Developer Portal. Usually 'com.companyname.appname' as Bundle Identifier
  • Create both certificates and download them.
  • Check if you can open those certificates on your keychain. If you see an arrow next to the certificate name you can use the certificate. That means that you have the matching key for that certificate.
  • Create both provisioning profiles as Ad-Hoc and assign the App ID you just created.
  • If you have not added your devices to the device list, do it in this step.
  • Add the device to both provisioning profiles
  • Download and open the provisioning profiles (A tool I find very useful to manage provisioning profiles is the iPhone Configuration Utility)
  • In XCode on your project file select the target and in the 'Summary' tab type the Bundle Identifier.
  • Now go to Build Settings tab and select Code Signing and select your Bundle identifier
  • Clean and run.
  • 确保您在 Apple Developer Portal 中为这两个应用程序创建了应用程序 ID。通常“com.companyname.appname”作为捆绑标识符
  • 创建两个证书并下载它们。
  • 检查您是否可以在钥匙串上打开这些证书。如果您在证书名称旁边看到一个箭头,则可以使用该证书。这意味着您拥有该证书的匹配密钥。
  • 将这两个配置文件创建为 Ad-Hoc 并分配您刚刚创建的 App ID。
  • 如果您尚未将设备添加到设备列表中,请在此步骤中添加。
  • 将设备添加到两个配置文件
  • 下载并打开配置文件(我发现管理配置文件非常有用的工具是 iPhone 配置实用程序)
  • 在项目文件上的 XCode 中,选择目标并在“摘要”选项卡中键入捆绑标识符。
  • 现在转到 Build Settings 选项卡并选择 Code Signing 并选择您的 Bundle identifier
  • 清洁并运行。

回答by lenhhoxung

It is because you are having two apps with same bundle name in your derived data folder. Simply delete one then the bug gone.

这是因为您的派生数据文件夹中有两个应用程序包名称相同。只需删除一个然后错误就消失了。