真机调试watch的一系列bug
真机调试watch的一系列bug
系列一
WatchKit 2.0 app's bundle ID com.jiaoshi.memoKB is not prefixed by the parent app's bundle ID followed by a '.'; expected prefix com.jiaoshi.memoKB.
Missing or invalid value of WKCompanionAppBundleIdentifier key in WatchKit 2.0 app's Info.plist: pualus.memoKB (expected com.jiaoshi.memoKB)
解决
用expected prefix后的字符串改写原有字符串
系列二
Keyboard Extension has conflicting provisioning settings. Keyboard Extension is automatically signed, but provisioning profile 137dae0b-0200-4c84-b71d-94e829158ee6 has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual signing in the project editor.
Code signing is required for product type 'WatchKit Extension' in SDK 'watchOS 3.2'
解决
- 首先检查证书问题
- 修改项目/第三方/第三方扩展的Bundle identifier. 替换Identifier即可,不必管后缀
- 选择Team(如果步骤1没什么问题,此处问题也不大)
- 修改项目/第三方/第三方扩展的 Building setting-->Code Signing Identity-->Debug为pp文件
「3,4详见博客【真机测试教程】」