简体   繁体   中英

Error: WatchKit Extension doesn't contain any WatchKit apps.

验证WatchKit App的Info.plist中WKWatchKitApp的值是否设置为YES。

After weeks and weeks of investigations i finally found out the problem.

The product name of the Iphone App was the same as the product name of the Watch App.

Once i changed the Product Name of the WatchApp it worked.

go to your targets. Select the watch app target go to build settings. Search for Product Name Edit your Product name to be different than the App Target! Clean and Build. Should Work. Thanks

It seems like this is the default error msg for random stuff on Xcode 7.

All of a sudden I got that error constantly when trying to Archive. After retracing my steps I've learned that changing the Build Location to Custom - > Relative to WorkSpace is responsible for that error: WatchKit Extension doesn't contain any WatchKit apps..

Setting the Build Location back to Shared Folder -> Build fixed it completely.

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM