简体   繁体   English

Xcode 7:应用程序安装失败:找不到此可执行文件的有效配置文件

[英]Xcode 7: App installation failed: A valid provisioning profile for this executable was not found

I have already searched and almost implemented max solution but it's not installing any app even though if I am creating just sample single view app.我已经搜索并几乎实现了最大解决方案,但即使我只是创建示例单视图应用程序,它也没有安装任何应用程序。

App installation failed应用安装失败
A valid provisioning profile for this executable was not found.找不到此可执行文件的有效配置文件。

在此处输入图片说明

============== update ==================== ==============更新====================
I fixed this issue today.我今天解决了这个问题。
First, go to ~/Library/MobileDevice/Provisioning Profiles .首先,转到~/Library/MobileDevice/Provisioning Profiles Make sure Xcode isn't running.确保 Xcode 没有运行。 Then, delete all provisioning files (like xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.mobileprovision).然后,删除所有配置文件(如 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.mobileprovision)。
Start Xcode.启动Xcode。
You will see something like "Fix this issue" in your Target's General tab.您将在 Target 的常规选项卡中看到类似“修复此问题”的内容。 Click it.点击它。
Xcode will now load new provisioning profile. Xcode 现在将加载新的配置文件。
That's it.就是这样。

----------- OLD Answer ------------- ----------- 旧答案 -------------

I have same problem now.我现在有同样的问题。
I've checked my provisioning profile using https://github.com/chockenberry/Provisioning/releases .我已经使用https://github.com/chockenberry/Provisioning/releases检查了我的配置文件。
In my case, my provisioning profile had the wrong UDIDs but right machine count.就我而言,我的配置文件的 UDID 错误,但机器数量正确。
I've registered machines, and Apple Developer Center listed right UDIDs for those machines.我已经注册了机器,Apple Developer Center 为这些机器列出了正确的 UDID。
However, whenever I downloaded new provisioning profile, it contained wrong UDIDs.但是,每当我下载新的配置文件时,它都会包含错误的 UDID。
I think Apple's system is outputting wrong provisioning profile.我认为 Apple 的系统正在输出错误的配置文件。
I called Apple support for this issue today, but Apple only emailed me with their knowledge base links(forums,documents,etc).我今天就这个问题致电 Apple 支持,但 Apple 只通过电子邮件向我发送了他们的知识库链接(论坛、文档等)。

Possibly you are using App Store distribution provisioning profile.可能您正在使用 App Store 分发配置文件。 Use development or Ad-Hoc provisioning profile.使用开发或 Ad-Hoc 配置文件。

For Xcode 8 / Swift 3.0 In my case, for my app target and my extension in "General" I check "Automatically manage signing" and it work对于 Xcode 8 / Swift 3.0 在我的情况下,对于我的应用程序目标和“常规”中的扩展,我选中“自动管理签名”并且它工作

自动管理签名

I was having this issue because the date/time on my iPhone was not the same as that on my Mac running Xcode ( i changed the date on my iPhone while testing some app).我遇到这个问题是因为我的 iPhone 上的日期/时间与运行 Xcode 的 Mac 上的日期/时间不同(我在测试某些应用程序时更改了我的 iPhone 上的日期)。 On my iPhone, i went to Settings > General > Date & Time > Set Automatically在我的 iPhone 上,我转到Settings > General > Date & Time > Set Automatically

This fixed it这修复了它

Make sure you have added device UDID in your provisioning profile.确保您已在配置文件中添加了设备 UDID。

  • Go to provisioning portal.转到配置门户。
  • Edit provisioning profile.编辑配置文件。
  • Make sure device is checked.确保设备已检查。
  • Done, download完成,下载
  • Use new Profile使用新配置文件

Another possible reason: Device date is set to later than the expiry of you provisioning profile.This is very weird but, it could happen.另一个可能的原因:设备日期设置为晚于您配置文件的到期时间。这很奇怪,但它可能会发生。

In my case it was that the running option in the building scheme was set to Release so it was trying to sign it using the appstore provisional profile not the development or the adhoc one.在我的情况下,构建方案中的运行选项设置为发布,因此它试图使用 appstore 临时配置文件而不是开发或临时配置文件对其进行签名。 I had to set it to Debug to fix this!我不得不将它设置为调试来解决这个问题!

I could run on Simulator just fine, but trying to install the App on device was throwing this exact error.我可以在模拟器上运行得很好,但是尝试在设备上安装应用程序会抛出这个确切的错误。

I had a test target in addition to the main target.除了主要目标之外,我还有一个测试目标。 The test target had signing set to a different team and profile.测试目标已将签名设置为不同的团队和个人资料。 Setting the unit test target to match the main target settings for signing solved my issue.将单元测试目标设置为与签名的主要目标设置相匹配解决了我的问题。

Didn't notice it had been automatically changed over to a different team, was caused by being added to a new Enterprise team.没有注意到它已自动转移到不同的团队,是由于被添加到新的企业团队所致。

In my case, I went to the Apple Developer website and added the phone to the Provisioning Profile.就我而言,我访问了 Apple Developer 网站并将手机添加到了配置文件中。 Then I re-downloaded the Provisioning Profile and worked =)然后我重新下载了配置文件并开始工作 =)

In my case was The build system.在我的情况下是构建系统。 I had to change the default build system in "File > Project / Workspace Settings" and change it to the Legacy Build system.我必须在“文件 > 项目/工作区设置”中更改默认构建系统,并将其更改为旧版构建系统。

For me, it's because the project I was trying to build is someone else's.对我来说,这是因为我试图构建的项目是别人的。 The bundle identifier does not match with my team's provisioning profile.捆绑标识符与我团队的配置文件不匹配。

Change bundle identifier to something else help.将包标识符更改为其他帮助。

就我而言,我的证书已过期..

The following worked for me:以下对我有用:

  1. Install the app using Personal provision profile (re-install after going into your phone settings and trusting the profile)使用个人配置文件安装应用程序(进入手机设置并信任配置文件后重新安装)
  2. Delete the app from ypur phone从 ypur 手机中删除应用程序
  3. Switch back to registered developer profile and try again切换回已注册的开发者资料并重试

在我的情况下,iOS 14.4,重新启动 iPhone 解决了它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 应用程序安装失败:找不到此可执行文件的有效配置文件 - App Installation failed: A valid provisioning profile for this executable was not found Xcode 7.2应用安装失败,有效的配置文件 - Xcode 7.2 App installation failed, A valid provisioning profile 找不到此可执行文件的有效配置文件-Xcode 9? - A valid provisioning profile for this executable was not found - Xcode 9? Xcode 8找不到此可执行文件的有效配置文件 - Xcode 8 A valid provisioning profile for this executable was not found Xcode 10:未找到此可执行文件的有效配置文件 - Xcode 10: A valid provisioning profile for this executable was not found 找不到此可执行文件的有效配置文件错误Xcode 9 - A valid provisioning profile for this executable was not found error Xcode 9 xcode“找不到此可执行文件的有效配置文件” - xcode “A valid provisioning profile for this executable was not found” 找不到有效的配置文件为此可执行文件 - Valid provisioning profile not found for this executable 找不到此可执行文件的有效配置文件:对于App Store分发配置文件 - A valid provisioning profile for this executable was not found: For App Store Distribution Profile Xcode,未找到此可执行文件的配置文件 - Xcode, no provisioning profile was found for this executable
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM