Xcode 10:找不到此可执行文件的有效配置文件

时间:2023-01-16 20:23:20

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.

从昨天开始,我在设备上运行应用程序时遇到以下错误:“找不到此可执行文件的有效配置文件。”。这是在更新到Xcode 10之后。上周使用Xcode 9构建没有问题。

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

  • Cleaning derived data

    清理派生数据

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

    卸载Xcode,删除任何与之相关的首选项和文件。

  • Installing Xcode on a completely different Mac

    在完全不同的Mac上安装Xcode

  • Testing with different devices

    使用不同设备进行测试

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

    在开发者配置文件中禁用设备并让Xcode再次启用它。

  • Deleting all certificates in the developer portal and recreating them

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

  • Unchecking and rechecking "Automatically manage signing"

    取消选中并重新检查“自动管理签名”

  • Trashing the provisioning profile and letting Xcode recreate it

    删除配置文件并让Xcode重新创建它

  • 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/

需要注意的是,除了我创建的手册之外,此处未列出任何配置文件:https://developer.apple.com/account/ios/profile/

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

我希望xcode生成一个显示为所有其他客户端。

Below are the signing settings I'm currently using

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

Xcode 10:找不到此可执行文件的有效配置文件

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.

我还没有尝试将Xcode降级到旧版本以查看是否有效。除此之外,我不知道下一步该尝试什么。

4 个解决方案

#1


67  

I was struggling with this today, it was super frustrating. For now, just go into "File/Project Settings and then Select "Legacy Build System" from the dropdown.

今天我正在努力解决这个问题,令人非常沮丧。现在,只需进入“文件/项目设置,然后从下拉列表中选择”Legacy Build System“。

#2


18  

@Stephen tks this resolved for me. I just need to go --> File --> WorspaceSettings --> Build Settings(change here to "Legacy Build System")Xcode 10:找不到此可执行文件的有效配置文件

@Stephen为我解决了这个问题。我只需要去 - >文件 - > WorspaceSettings - > Build Settings(在此更改为“Legacy Build System”)

Xcode 10:找不到此可执行文件的有效配置文件

#3


1  

I was struggling with the same issue and the solution in my case was to log in to the developer account(s). After updating to Xcode 10 all accounts were logged out.

我正在努力解决同样的问题,我的解决方案就是登录开发者帐户。更新到Xcode 10后,所有帐户都被注销。

Use the menu "Xcode -> Preferences ... -> Accounts" and make sure all accounts you use are logged in so the provisioning profiles are accessible.

使用菜单“Xcode - >首选项... - >帐户”,确保您使用的所有帐户都已登录,以便可以访问配置文件。

#4


0  

or also change your per-user workspace settings along with shared workspace settings to new build system like this

或者还将您的每用户工作区设置以及共享工作区设置更改为这样的新构建系统

#1


67  

I was struggling with this today, it was super frustrating. For now, just go into "File/Project Settings and then Select "Legacy Build System" from the dropdown.

今天我正在努力解决这个问题,令人非常沮丧。现在,只需进入“文件/项目设置,然后从下拉列表中选择”Legacy Build System“。

#2


18  

@Stephen tks this resolved for me. I just need to go --> File --> WorspaceSettings --> Build Settings(change here to "Legacy Build System")Xcode 10:找不到此可执行文件的有效配置文件

@Stephen为我解决了这个问题。我只需要去 - >文件 - > WorspaceSettings - > Build Settings(在此更改为“Legacy Build System”)

Xcode 10:找不到此可执行文件的有效配置文件

#3


1  

I was struggling with the same issue and the solution in my case was to log in to the developer account(s). After updating to Xcode 10 all accounts were logged out.

我正在努力解决同样的问题,我的解决方案就是登录开发者帐户。更新到Xcode 10后,所有帐户都被注销。

Use the menu "Xcode -> Preferences ... -> Accounts" and make sure all accounts you use are logged in so the provisioning profiles are accessible.

使用菜单“Xcode - >首选项... - >帐户”,确保您使用的所有帐户都已登录,以便可以访问配置文件。

#4


0  

or also change your per-user workspace settings along with shared workspace settings to new build system like this

或者还将您的每用户工作区设置以及共享工作区设置更改为这样的新构建系统