简体   繁体   English

“找不到该可执行文件的有效配置文件”

[英]“A valid provisioning profile for this executable could not be found”

One of our former colleagues created an iPad app for a client. 我们的一位前同事为客户创建了一个iPad应用程序。 This app has recently stopped working out of the blue. 这个应用程式最近已停止运作。 The app simply opens and then closes immediately again. 该应用程序只是打开,然后立即关闭。

I have attached one of the ipads to a Macbook and used the Organizer in XCode to check the logs. 我已将其中一个ipad连接到Macbook,并使用XCode中的管理器检查日志。 I see the following line being printed right before the app closes: "A valid provisioning profile for this executable was not found." 我看到在应用程序关闭之前正在打印以下行:“未找到此可执行文件的有效配置文件。”

The provisioning profile has indeed been renewed recently, so I upload the new profile through iTunes onto the iPad. 设置配置文件确实最近已更新,因此我通过iTunes将新的配置文件上传到iPad。 I check via Settings > Profiles and I see my distribution file right there, so I know it's installed correctly. 我通过“设置”>“配置文件”进行检查,然后在其中看到我的分发文件,因此我知道它已正确安装。

Stil, the app won't open up at all and continues to write "A valid provisioning profile for this executable was not found." Stil,该应用程序将完全无法打开,并继续写入“未找到此可执行文件的有效配置文件。”

How can I discover what provisioning profile that app is looking for? 如何找到该应用正在寻找的配置文件?

And if I should reinstall the app on the iPad, can somehow give a link on how to do that with XCode? 如果我应该在iPad上重新安装该应用程序,是否可以通过某种方式提供有关如何使用XCode进行链接的链接?

There is few things that can check first 有几件事可以首先检查

  1. Check that your bundle ID corresponds to the bundle ID defined in your new provisioning profile. 检查您的捆绑包ID是否与新的配置文件中定义的捆绑包ID相符。

  2. Check the code signing in build settings of your app target by selecting your app in the left panel of xcode, then select build settings and check code signing identity. 通过在xcode的左面板中选择您的应用,检查应用目标的构建设置中的代码签名,然后选择构建设置并检查代码签名身份。 Make sure you have your new provisioning profile selected there. 确保在此处选择了新的配置文件。

I think you are not update your product provisioning certificate after your ios dev Account renew. 我认为您的ios dev帐户续订后,您不是在更新产品置备证书。

  • login with your Apple id that created your product provisioning certificate 使用创建您的product provisioning certificate Apple ID登录
  • Certificates, Identifiers & Profiles--> select your provisioning select that you are trying to use like bellow image: 证书,标识符和配置文件->选择您要使用的配置,例如以下图像:

在此处输入图片说明

  • select your valide distribution cer for this production cer that you are using previously. 选择您之前使用的此生产cer的有效分配经销商。

在此处输入图片说明

  • after this press generate button and download this in to your system. 按下生成按钮后,将其下载到您的系统中。 Double click on this. 双击此。 and use this hope that working now. 并希望现在可以工作。

NOTE: check that your developer/distribution cer not invalide that active in to your keychain with private key. 注意:请检查您的开发者/发行人是否不会使使用私钥对您的钥匙串有效的活动无效。 Check you are selected certificate is working and active Mode. 检查您是否选择了证书正在工作并且处于活动模式。

MORE: 更多:

If you are using xCode5 then there is certificate profile not displying as like we see in organization tab like xCode4.x 如果您使用的是xCode5,则不会显示证书配置文件,就像我们在组织选项卡(如xCode4.x)中看到的那样

for check your certificate is update you need to follow this bellow steps in xCode5 要检查您的证书是否已更新,您需要按照xCode5中的以下步骤进行操作

*

add you apple id that you are using. 添加您正在使用的苹果ID。

在此处输入图片说明

  • after adding your apple id there is right side show Details Button press there and press refresh icon that refresh your all certificate then you can setting provisional prifile from Project->target->build setting->code sign. 添加您的Apple ID后,右侧将显示Details按钮,然后按刷新图标以刷新所有证书,然后可以从Project-> target-> build setting-> code sign设置临时prifile。

Before connecting the device to the Xcode for installing the app, you have to add that device's UDID to the developer(not distribution) provisioning profile of the application. 在将设备连接到Xcode以安装应用程序之前,您必须将该设备的UDID添加到应用程序的开发人员(而非分发)配置文件中。

And then download and open that profile in organizer window and then update the code signing identity in the build settings on both project and settings. 然后下载并在管理器窗口中打开该配置文件,然后在项目和设置的生成设置中更新代码签名身份。

Now connect the iPad and run the app. 现在连接iPad并运行该应用程序。 Check whether you had missed any of the above. 检查您是否错过以上任何一项。

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

相关问题 找不到有效的配置文件为此可执行文件 - Valid provisioning profile not found for this executable 找不到此可执行文件的有效配置文件:仅用于分发 - A valid provisioning profile for this executable was not found: only with distribution 错误:“找不到此可执行文件的有效配置文件” - Error: “A valid provisioning profile for this executable was not found” 找不到此可执行文件的有效配置文件-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” 仅在iPhone 5上找不到此可执行文件的有效配置文件 - A valid provisioning profile for this executable was not found only on iPhone 5 iPhone设备:找不到此可执行文件的有效配置文件 - iPhone device: A valid provisioning profile for this executable was not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM