@@ -500,7 +500,8 @@ def test_390_tns_run_ios_should_warn_if_package_ids_do_not_match(self):
500
500
"<string>org.nativescript.myapp</string>"
501
501
info = os .path .join (self .app_name , 'app' , 'App_Resources' , 'iOS' , 'Info.plist' )
502
502
File .replace (file_path = info , str1 = str1 , str2 = str2 )
503
- output = Tns .run_ios (attributes = {'--path' : self .app_name , '--justlaunch' : '' })
503
+ # `--emulator` added to workaround https://github.com/NativeScript/nativescript-cli/issues/3644
504
+ output = Tns .run_ios (attributes = {'--path' : self .app_name , '--emulator' : '' , '--justlaunch' : '' })
504
505
assert "[WARNING]: The CFBundleIdentifier key inside the 'Info.plist' will be overriden" in output
505
506
assert "Successfully synced application org.nativescript.TestApp" in output
506
507
@@ -511,12 +512,13 @@ def test_400_tns_run_on_folder_with_spaces(self):
511
512
destination_path = os .path .join (TEST_RUN_HOME , "folder with spaces" , "Test App" )
512
513
Folder .cleanup (folder = destination_path )
513
514
Folder .copy (src = self .app_name , dst = destination_path )
514
- output = Tns .run_ios (attributes = {'--path' : "\" " + destination_path + "\" " , '--justlaunch' : '' })
515
+ output = Tns .run_ios (
516
+ attributes = {'--path' : "\" " + destination_path + "\" " , '--emulator' : '' , '--justlaunch' : '' })
515
517
assert "Multiple errors were thrown" not in output
516
518
assert "fail" not in output
517
519
518
520
@unittest .skip ("Ignore because of https://github.com/NativeScript/nativescript-cli/issues/3625" )
519
- def test_404_run_on_invalid_device_id (self ):
521
+ def test_404_tns_run_ios_on_not_existing_device_should_not_start_simulator (self ):
520
522
Simulator .stop ()
521
523
output = Tns .run_ios (attributes = {'--path' : self .app_name , '--device' : 'fakeId' , '--justlaunch' : '' },
522
524
assert_success = False )
0 commit comments