def watch_app_for(host_target, deployment_target, language = :objc)
      watch_app_target = target do |t|
        t.name = "#{host_target.name}-Watch"

        t.type = :watch2_app
        t.platform = :watchos
        t.deployment_target = deployment_target
        t.language = language
      end

      watch_extension_target = target do |t|
        t.name = "#{host_target.name}-Watch Extension"

        t.type = :watch2_extension
        t.platform = :watchos
        t.deployment_target = deployment_target
        t.language = language
      end

      host_target.target_dependencies << watch_app_target
      watch_app_target.target_dependencies << watch_extension_target

      yield(watch_app_target, watch_extension_target) if block_given?

      nil
    end
def watch_app_for(host_target, deployment_target, language = :objc)
      watch_app_target = target do |t|
        t.name = "#{host_target.name}-Watch"

        t.type = :watch2_app
        t.platform = :watchos
        t.deployment_target = deployment_target
        t.language = language
      end

      watch_extension_target = target do |t|
        t.name = "#{host_target.name}-Watch Extension"

        t.type = :watch2_extension
        t.platform = :watchos
        t.deployment_target = deployment_target
        t.language = language
      end

      host_target.target_dependencies << watch_app_target
      watch_app_target.target_dependencies << watch_extension_target

      yield(watch_app_target, watch_extension_target) if block_given?

      nil
    end
Defines targets for watch app.

 @param  [Target] watch app's compantion app
         iOS target for the watch app

 @param  [Proc] block
         an optional block that configures the targets through the DSL.

 @return Void