Prevent Deploying (Disable) Watchkit App with iOS iPhone App in Xcode

Prevent deploying (disable) WatchKit App with iOS iPhone App in Xcode

Remove the WatchKit extension

To make sure that your WatchKit extension is no longer visible, you have to do two things:

1) Remove the WatchKit extension from "Target Dependencies"

  • (To go to Target Dependencies: in the project navigator, click the project file. Then click the target of the iPhone app. Go to the Build Phases tab.)

2) Remove the WatchKit extension from "Embed App Extensions" (in Xcode 7+, "Embed Watch Content")

  • (In Build Phases, go to Embed App Extensions. Remove the WatchKit extension entry from the list Embed App Extensions.)

Finally, you may have to clean your build folder. Then build and run your iPhone application.

To re-add the WatchKit extension:

For watchOS1: FIRST, add your WatchKit extension to Target Dependencies. This re-creates the .appex file that you can now add to the list under Embed App Extensions by pressing the plus button and choosing "App Name WatchKit Extension.appex".

For watchOS2: Just add your WatchKit extension to Target Dependencies.

Remarks:

  • I have tried the whole process of removing and recreating the extension both in the simulator and on the actual devices (iPhone and Apple Watch). It worked in both cases.
  • I have also tried to do either A or B but that was not sufficient.
  • I used Xcode version 6.3.2

How to remove apple Watch app from existing Xcode project?

In Xcode 6.3.2, two steps are necessary:

  • Remove the WatchKit extension from "Target Dependencies"
  • Remove WatchKit extension from "Embed App Extensions"

A detailed description is available here.

Remove WatchKit App From Deployed App - iOS WatchOS Swift

You can remove the WatchKit Extension from your iOS app even after you deployed the watchOS app to the AppStore. You simply need to remove the Apple Watch targets from your Xcode project and then upload an update to the AppStore.

Not uploading a watch kit app

Removing watchOS Target

You should just remove the Watch Extension.

Solution:

Go to Build Phases in iOS target, which is located in your Project file, then from Target Dependencies, remove WatchKit Extension target.

Also in the same page, you should go to Embed App Extensions and remove the WatchKit extension.

Then, clean, build and run your project as usual. You should be done.

Re-adding watchOS Target

The only step is to add the extension to Target Dependencies.

NOTE: However, if you are working with watchOS 1, after adding the extension to Target Dependencies, you should add it to the Embed App Extensions too. Just select the *.appex file containing WatchKit extension data there.

Conclusion

1- To remove watchOS Target, remove it from both Target Dependencies and Embed App Extensions.

2- To re-add watchOS Target,

A) In watchOS 2, add it to Target Dependencies.

B) In watchOS 1, also add the *.appex file to Embed App Extensions as well as adding the extension to Target Dependencies.

Xcode / ItunesConnect: Is it possible to remove watch kit target and add it back or not submit the watchkit App?

If you go to the target of your main app and remove the watchkit extension from "Embedded Binaries" it should remove your watchkit app.

xCode exclude watchkit extension for submitting

If you want to exclude the WatchKit extension from your app, you just need to remove their targets from the targets list in your project. And remove their related files and groups.

How to remove apple Watch app from existing Xcode project?

In Xcode 6.3.2, two steps are necessary:

  • Remove the WatchKit extension from "Target Dependencies"
  • Remove WatchKit extension from "Embed App Extensions"

A detailed description is available here.

Watchkit: How do I prevent the apple watch screen from turning off while my app is running?

You can't. This is not possible with the current WatchKit APIs (even in watchOS 2).



Related Topics



Leave a reply



Submit