This app contains a WatchKit app with an invalid bundle identifier. The bundle identifier of a WatchKit app must have a prefix consisting of the companion app's bundle identifier, followed by a '.'.
info.plist 添加鍵值對(duì)
key:WKCompanionAppBundleIdentifier
value: com.lnyd.iLiaoning
watchAPP info.plist
[SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "Default Configuration")
在watchinfo.plist里添加如下代碼
<key>UIApplicationSceneManifest</key>
<dict>
<key>UISceneConfigurations</key>
<dict>
<key>Default Configuration</key>
<dict>
<key>UISceneClassName</key>
<string>MySceneDelegate</string>
<key>UISceneConfigurationName</key>
<string>Default Configuration</string>
</dict>
</dict>
</dict>
xcode運(yùn)行watchapp同時(shí)安裝iOSapp祸挪,實(shí)現(xiàn)同時(shí)安裝
在watch的Scheme中添加母體應(yīng)用
watchScheme配置iOSApp
iOSApp綁定WatchApp
Swift項(xiàng)目配置多Target宏
ILIAONING_IN=1 Target配置即可
Swift項(xiàng)目配置