Xcode 10:找不到有效的配置文件为此可执行文件 [英] Xcode 10: A valid provisioning profile for this executable was not found

查看:82
本文介绍了Xcode 10:找不到有效的配置文件为此可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从昨天开始,尝试在我的设备上运行应用程序时出现以下错误:未找到此可执行文件的有效配置文件.".这是在更新到Xcode 10之后的.上周使用Xcode 9进行构建没有问题.

Since yesterday I've been getting the following error when trying run an app on my device: "A valid provisioning profile for this executable was not found.". This is after updating to Xcode 10. Building with Xcode 9 last week worked without issues.

我检查了有关该错误的其他讨论,但是没有一种解决方案有效.

I've checked the other discussions about the error, but none of the solutions works.

这个问题不仅限于我一直在从事的一个项目,因为它影响到来自不同签名团队的多个项目.

The issue isn't limited to a single project I've been working on as it affects several all from different signing teams.

到目前为止,我已经尝试了以下方法:

So far I've tried the following:

  • 清洁项目

  • Cleaning project

清理派生数据

卸载Xcode,删除与其相关的所有首选项和文件.

Uninstalling Xcode, deleting any preferences and files related to it.

在完全不同的Mac上安装Xcode

Installing Xcode on a completely different Mac

使用不同的设备进行测试

Testing with different devices

在开发人员资料中禁用设备,然后让Xcode再次启用它.

Disabling device in developer profile and letting Xcode enable it again.

在开发人员门户中删除所有证书并重新创建它们

Deleting all certificates in the developer portal and recreating them

取消选中并重新选中自动管理签名"

Unchecking and rechecking "Automatically manage signing"

破坏配置文件并让Xcode重新创建它

Trashing the provisioning profile and letting Xcode recreate it

在开发人员资料中创建手动配置资料

Creating a manual provisioning profile in the developer profile

该项目不包含测试,因此该目标上的签名设置错误不会有问题.日期/时间设置为自动

The project contains no tests so there can't be a problem with wrong signing settings on that target. Date / Time is set to Automatic

值得注意的是,这里没有列出配置文件,除了我创建的手动配置文件:

One thing of note is that no Provisioning Profiles are listed here, except for the manual one I created: https://developer.apple.com/account/ios/profile/

我希望生成的xcode像其他所有客户端一样显示出来.

I'd expect the xcode generated one to show up as they do for all other clients.

以下是我当前正在使用的签名设置

Below are the signing settings I'm currently using

我还没有尝试将Xcode降级到较旧的版本,以查看是否可行.除此之外,我不知道下一步该怎么做.

I've yet to try downgrading Xcode to an older version to see if that works. Other than that I have no idea of what to try next.

推荐答案

我今天在为此苦苦挣扎,这实在令人沮丧.现在,只需进入"File"> "Project Settings..."(或者在某些情况下为"Workspace Settings..."),然后从"Build System"下拉列表中选择"Legacy Build System".

I was struggling with this today, it was super frustrating. For now, just go into "File" > "Project Settings..." (or in some cases "Workspace Settings...") and then select "Legacy Build System" from the "Build System" dropdown.

这篇关于Xcode 10:找不到有效的配置文件为此可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆