ios Xcode 找不到任何匹配的配置文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/51387873/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 09:46:02  来源:igfitidea点击:

Xcode couldn't find any provisioning profiles matching

iosxcodecordovaionic-framework

提问by Hal Burgiss

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.

我正在尝试重建一个以前没有问题的 ios 应用程序(在 6 个月左右的时间内首次重建)。环境是 OSX 10.13.5,所有最新更新,Xcode 9.4.1,Ionic 是 3.20.0。本地cordova、ionic 和node 模块已更新。

These plugins:

这些插件:

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

科尔多瓦插件设备
科尔多瓦插件文件
科尔多瓦插件文件传输
科尔多瓦插件闪屏
科尔多瓦插件白名单
科尔多瓦插件x社会共享

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:

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

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'

** ARCHIVE FAILED **

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

检查依赖项代码签名错误:找不到与“ABM 2018 Dev”匹配的团队“8SEBNER3XM”的配置文件:Xcode 找不到任何与“8SEBNER3XM/ABM 2018 Dev”匹配的配置文件。安装配置文件(通过将其拖放到 Xcode 的停靠项上)或在目标编辑器的“常规”选项卡中选择不同的配置文件。代码签名错误: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

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.

不管消息怎么说,在 Xcode 项目的“常规”选项卡和“构建设置”(即“ABM 2018 Dev”)中似乎都有完全有效的配置文件。它们与 Library/MobileDevice/Provisioning Profiles 文件夹中的文件相匹配。团队 ID 经验证正确。配置文件已重新生成/重新安装多次。Xcode 认为它们在 Xcode 内是有效的(不会抱怨)。作为“ionic cordova build ios”运行似乎有不同的意见,并抱怨配置文件。将 --release 添加到命令中的类似错误。根据反复试验,似乎问题出在 PROVISIONING_PROFILE_SPECIFIER 上。我尝试了许多变体,但总是得到相同的错误,这似乎是假的。我已经尝试了配置文件名称和 UUID。

What am I missing?

我错过了什么?

回答by Hal Burgiss

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

我现在能够成功构建。不确定哪一步“修复”了事情,但这是顺序:

  • 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!
  • 再次尝试自动签名。不行,所以恢复到手动。
  • 恢复后,我没有符合条件的配置文件,全部都不符合条件。奇怪的。
  • 我创建了一个新的证书和配置文件,同时导入了两者。这也是“不合格”。
  • 删除了iOS平台并重新添加了它。我以前尝试过这个,但没有运气。
  • 这样做之后,Xcode 自己默认为自动签名。这奏效了!成功!

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

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

Thanks for help.

感谢帮助。

回答by Punnerud

Requirements:

要求:

  1. Unique name (across all Apple Apps)
  2. Have to sign in while your phone is connected (mine had a large warning here)
  1. 唯一名称(跨所有 Apple App)
  2. 必须在您的手机连接时登录(我的这里有一个很大的警告)

Worked great without restart on Xcode 10

无需在 Xcode 10 上重新启动即可运行良好

Settings

设置

回答by m3rk

Try to check Signing settings in Build settings for your projectand target. Be sure that code signing identity section has correct identities for Debug and Release.

尝试在您的项目目标的构建设置中检查签名设置。确保代码签名标识部分具有用于调试和发布的正确标识。

image description here

图片说明在这里

回答by Yogendra Ghatpande

I opened XCode -> Preferences -> Accounts and clicked on Download certificate. That fixed my problem

我打开 XCode -> Preferences -> Accounts 并点击下载证书。那解决了我的问题