我将带有扩展程序的手表应用添加到我的应用时收到以下错误。即使在模拟器中,我也无法构建和运行该应用。我尝试了许多文章中提供的许多选项。但是没有一个适合我。
谁能在这个问题上帮助我。谢谢
ValidateEmbeddedBinary /Users/***/Library/Developer/Xcode/DerivedData/SampleApp-dasjqaqfdsifddln/Build/Products/QA-watchsimulator/SampleAppWatch.app/PlugIns/SampleAppWatchExtension.appex (in target: SampleAppWatch)
cd /Users/***/Workspace/SampleApp
builtin-embeddedBinaryValidationUtility /Users/***/Library/Developer/Xcode/DerivedData/SampleApp-dasjqaqfdsifddln/Build/Products/QA-watchsimulator/SampleAppWatch.app/PlugIns/SampleAppWatchExtension.appex -signing-cert - -info-plist-path /Users/***/Library/Developer/Xcode/DerivedData/SampleApp-dasjqaqfdsifddln/Build/Products/QA-watchsimulator/SampleAppWatch.app/Info.plist
error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's.
Embedded Binary Signing Certificate: Not Code Signed
Parent App Signing Certificate: - (Ad Hoc Code Signed)
请在下面找到我的应用程序的目标设置
应用目标
identifier - com.company.sampleApp
Watch app target
identifier - com.company.sampleApp.sampleAppwatch
info.plist
WKCompanionAppBundleIdentifier - com.company.sampleApp
观看扩展程序目标用户
identifier - com.company.sampleApp.sampleAppwatch.watchkitextension
info.plist
WKAppBundleIdentifier - com.company.sampleApp.sampleAppwatch
自动代码签名并为所有目标选择了相同的团队
钥匙串访问
Trust Certificate is 'Use System Defaults'
为应用程序,监视应用程序和监视扩展启用了应用程序组
使用Xcode 10.3
您需要打开应用的方案并更改其构建配置以进行调试。