@@ -194,6 +194,28 @@ class XcodeBuildPluginExtensionSpecification extends Specification {
194194
195195 }
196196
197+ def " application bundle for tvOS" () {
198+ when :
199+ File projectDir = new File (" ../example/tvOS/Example_tvOS_Swift" )
200+ project = ProjectBuilder . builder(). withProjectDir(projectDir). build()
201+ extension = new XcodeBuildPluginExtension (project)
202+ extension. commandRunner = new CommandRunner ()
203+ XcodeProjectFile xcodeProjectFile = new XcodeProjectFile (project, new File (projectDir, " Example_tvOS_Swift.xcodeproj/project.pbxproj" ))
204+ extension. projectSettings = xcodeProjectFile. getProjectSettings()
205+
206+ extension. type = Type . tvOS
207+ extension. simulator = false
208+ extension. target = " Example_tvOS_Swift"
209+ extension. productName = " Example_tvOS_Swift"
210+ extension. infoPlist = " ../../example/tvOS/Example_tvOS_Swift/Example_tvOS_Swift/Info.plist"
211+
212+ String applicationBundle = extension. getApplicationBundle(). absolutePath;
213+
214+ then :
215+ applicationBundle. endsWith(" build/sym/Debug-appletvos/Example_tvOS_Swift.app" )
216+
217+ }
218+
197219 def " application bundle for watchos" () {
198220 when :
199221
@@ -410,6 +432,24 @@ class XcodeBuildPluginExtensionSpecification extends Specification {
410432 }
411433
412434
435+ def " get binary tvOS" () {
436+ when :
437+ File projectDir = new File (" ../example/tvOS/Example_tvOS_Swift" )
438+ project = ProjectBuilder . builder(). withProjectDir(projectDir). build()
439+ extension = new XcodeBuildPluginExtension (project)
440+ XcodeProjectFile xcodeProjectFile = new XcodeProjectFile (project, new File (projectDir, " Example_tvOS_Swift.xcodeproj/project.pbxproj" ))
441+ extension. projectSettings = xcodeProjectFile. getProjectSettings()
442+ extension. type = Type . tvOS
443+ extension. simulator = false
444+ extension. target = " Example_tvOS_Swift"
445+ extension. productType = " appex"
446+ extension. infoPlist = " ../../example/tvOS/Example_tvOS_Swift/Example_tvOS_Swift/Info.plist"
447+
448+ then :
449+ extension. getBinary(). toString(). endsWith(" Debug-appletvos/Example_tvOS_Swift.app/Example_tvOS_Swift" )
450+ }
451+
452+
413453 def " get binary OS X" () {
414454 when :
415455 File projectDir = new File (" ../example/OSX/ExampleOSX" )
0 commit comments