Xcode找不到匹配的配置文件 [英] Xcode couldn't find any provisioning profiles matching

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

问题描述

我正在尝试重建以前没有问题的ios应用程序(大约6个月内第一次重建)。环境是带有所有最新更新的OSX 10.13.5,Xcode 9.4.1,Ionic是3.20.0。

I am trying to rebuild an ios app, that previously had no issues (first rebuild in 6 months or so). Environment is OSX 10.13.5 with all the latest updates, Xcode 9.4.1, Ionic is 3.20.0. Local cordova, ionic and node modules have been updated.

这些插件:

cordova-plugin-device < br>
cordova-plugin-文件

cordova-plugin-文件-传输

cordova-plugin-splashscreen

cordova-plugin-whitelist < br>
cordova-plugin-x-socialsharing

cordova-plugin-device
cordova-plugin-file
cordova-plugin-file-transfer
cordova-plugin-splashscreen
cordova-plugin-whitelist
cordova-plugin-x-socialsharing

配置用于手动签名。调配配置文件已经重新生成,带有新证书,已下载并安装(无数次)。

Configured for manual signing. Provisioning profiles have been regenerated, with new certs, downloaded and installed (numerous times).

在调试或发行版本中,我都无法消除此错误:

I cannot make this error go away in either debug or release builds:


检查依赖项代码签名错误:找不到团队
的配置文件'8SEBNER3XM'与'ABM 2018 Dev'相匹配:Xcode找不到任何与 8SEBNER3XM / ABM 2018 Dev匹配的
配置文件。安装
配置文件(通过将其拖放到Xcode的停靠项目中),或在目标编辑器的常规标签中选择另一个
。代码签名
错误:SDK
'iOS 11.4'产品类型'应用程序'需要代码签名

Check dependencies Code Signing Error: No profile for team ‘8SEBNER3XM’ matching ‘ABM 2018 Dev’ found: Xcode couldn’t find any provisioning profiles matching ‘8SEBNER3XM/ABM 2018 Dev’. Install the profile (by dragging and dropping it onto Xcode’s dock item) or select a different one in the General tab of the target editor. Code Signing Error: Code signing is required for product type ‘Application’ in SDK ‘iOS 11.4’

**归档失败**

以下构建命令失败:检查依赖项(1个失败)
错误:命令的错误代码65:带有args的xcodebuild:
-xcconfig,/ Users / kerickhowlett / Documents / PhoneProjects / ABM / platforms / ios / cordova / build-debug.xcconfig,-workspace,Cocktail
Pro.xcworkspace,-scheme,Cocktail
Pro,-configuration,Debug,- destination,generic / platform = iOS,archivePath,Cocktail
Pro.xcarchive,archive,CONFIGURATION_BUILD_DIR = / Users / kerickhowlett / Documents / PhoneProjects / ABM / platforms / ios / build / device,SHARED_PRECOMPS_DIR = / Users / kerickhowlett / Documents / PhoneProjects / ABM / platforms / ios / build / sharedpch

The following build commands failed: Check dependencies (1 failure) Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/kerickhowlett/Documents/PhoneProjects/ABM/platforms/ios/cordova/build-debug.xcconfig,-workspace,Cocktail Pro.xcworkspace,-scheme,Cocktail Pro,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,Cocktail Pro.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/kerickhowlett/Documents/PhoneProjects/ABM/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/kerickhowlett/Documents/PhoneProjects/ABM/platforms/ios/build/sharedpch

尽管该消息说了什么,但似乎是完全正确的Xcode项目的常规选项卡和构建设置(即 ABM 2018 Dev)中的供应配置文件。它们与Library / MobileDevice / Provisioning Profiles文件夹中的文件匹配。团队ID已验证为正确。配置文件已重新生成/重新安装了很多次。 Xcode认为它们在Xcode内部是有效的(不抱怨)。以离子cordova build ios运行似乎有不同的看法,并且抱怨这些配置文件。与--release类似的错误添加到命令中。根据反复试验,似乎是PROVISIONING_PROFILE_SPECIFIER。我尝试了多种变体,但始终会遇到相同的错误,这似乎是虚假的。我已经尝试了个人资料名称和UUID。

Despite what the message says, there is what seems to be perfectly valid provisioning profiles in both Xcode project General tab, and Build Settings (ie 'ABM 2018 Dev'). They match the files in Library/MobileDevice/Provisioning Profiles folder. The team id is verified as correct. The profiles been regenerated / re-installed many times. Xcode thinks they are valid from within Xcode (does not complain). Running as ‘ionic cordova build ios’ seems to have a different opinion, and complains about the profiles. Similar error with --release added to the command. Based on trial and error, it is the PROVISIONING_PROFILE_SPECIFIER that seems to be the issue. I've tried a number of variations but always get the same error, which seems bogus. I have tried both profile names and UUID's.

我缺少什么?

推荐答案

我现在能够成功建立。不知道到底是哪个步骤修复了问题,但这是顺序:

I am now able to successfully build. Not sure exactly which step "fixed" things, but this was the sequence:


  • 再次尝试自动签名。不行,因此恢复为手动。

  • 恢复后,我没有合格的个人资料,所有个人资料都不合格。奇怪。

  • 我创建了一个新的证书和配置文件,两者都导入了。这也是不合格的。

  • 删除了iOS平台并重新添加了它。

  • 这样做之后,Xcode自己默认为自动签名。这有效!成功!

  • Tried automatic signing again. No go, so reverted to manual.
  • After reverting, I had no Eligible Profiles, all were ineligible. Strange.
  • I created a new certificate and profile, imported both. This too was "ineligible".
  • Removed the iOS platform and re-added it. I had tried this previously without luck.
  • After doing this, Xcode on its own defaulted to automatic signing. And this worked! Success!

虽然我不确定确切需要哪些部分,但我认为以前的证书是问题所在。我讨厌Xcode:(

While I am not sure exactly which parts were necessary, I think the previous certificates were the problem. I hate Xcode :(

感谢帮助。

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

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