@@ -42,7 +42,7 @@ def setUpClass(cls):
42
42
BaseClass .setUpClass (logfile )
43
43
Emulator .stop ()
44
44
Simulator .stop ()
45
- cls .SIMULATOR_ID = Simulator .start ( name = SIMULATOR_NAME )
45
+ cls .SIMULATOR_ID = Simulator .ensure_available ( simulator_name = SIMULATOR_NAME )
46
46
Folder .cleanup (cls .app_name )
47
47
48
48
def setUp (self ):
@@ -359,6 +359,20 @@ def test_370_tns_run_plugin_add(self):
359
359
assert 'BUILD SUCCEEDED' not in File .read (log ), "Change of CSS files after plugin add is not incremental!"
360
360
File .write (file_path = log , text = "" ) # Clean log file
361
361
362
+ def test_390_tns_run_ios_should_warn_if_package_ids_do_not_match (self ):
363
+ """
364
+ If bundle identifiers in package.json and Info.plist do not match CLI should warn the user.
365
+ """
366
+ str1 = "<string>${EXECUTABLE_NAME}</string>"
367
+ str2 = "<string>${EXECUTABLE_NAME}</string>" \
368
+ "<key>CFBundleIdentifier</key>" \
369
+ "<string>org.nativescript.myapp</string>"
370
+ info = os .path .join (self .app_name , 'app' , 'App_Resources' ,'iOS' ,'Info.plist' )
371
+ File .replace (file_path = info , str1 = str1 , str2 = str2 )
372
+ output = Tns .run_ios (attributes = {'--path' : self .app_name , '--justlaunch' : '' })
373
+ assert "[WARNING]: The CFBundleIdentifier key inside the 'Info.plist' will be overriden" in output
374
+ assert "Successfully synced application org.nativescript.TestApp" in output
375
+
362
376
def test_400_tns_run_on_folder_with_spaces (self ):
363
377
"""
364
378
`tns run ios` for apps with spaces
0 commit comments