目标指定了产品类型"com.apple.product-type.watchkit2-extension",但"iphonesimulator"平台没有此类产品类型 [英] target specifies product type 'com.apple.product-type.watchkit2-extension', but there's no such product type for the 'iphonesimulator' platform
问题描述
当我尝试运行项目时弹出此错误
this error pops up when I try to run my project
目标指定产品类型为"com.apple.product-type.watchkit2-extension",但"iphonesimulator"平台没有此类产品
target specifies product type 'com.apple.product-type.watchkit2-extension', but there's no such product type for the 'iphonesimulator' platform
我不知道该怎么办,请帮忙.
I don't know what to do please help.
推荐答案
就我而言,当我使用xcode 7添加watchkit扩展时,大多数事情都可以,但是扩展的调试目标是iOS.因此,当我在调试/模拟器中运行时,出现此错误.我必须将它们更改为WatchOS.和解决.选择 Project>目标>支持的平台>调试>watchOS
(我在这里有iOS).
In my case, most of the things were ok when I add watchkit extension with xcode 7. but debug target of the extension was iOS. So when I run in debug/simulator I got this error. I have to change them to WatchOS. and Solved.
Select Project > Targets > Supported Platform > Debug > watchOS
(I had iOS here).
这篇关于目标指定了产品类型"com.apple.product-type.watchkit2-extension",但"iphonesimulator"平台没有此类产品类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!