@@ -356,25 +356,21 @@ def build_ios(attributes={}, assert_success=True, tns_path=None):
356
356
emu_folder = app_name + "/platforms/ios/build/emulator/"
357
357
if "--forDevice" in attributes .keys () or "--for-device" in attributes .keys ():
358
358
assert "build/device/" + app_id + ".app" in output
359
- assert File .exists (app_name + "/platforms/ios/build/device/" + app_id + ".ipa" )
359
+ assert File .exists (device_folder + app_id + ".ipa" )
360
+ output = File .read (device_folder + app_id + ".app/" + app_id )
360
361
if "--release" in attributes .keys ():
361
- assert not File .pattern_exists (directory = device_folder , pattern = "*TKLiveSync*" ), \
362
- "TKLiveSync binaries available in release configuration."
362
+ assert "TKLiveSync" not in output , "TKLiveSync binaries available in release configuration."
363
363
else :
364
- pass
365
- # assert File.pattern_exists(directory=device_folder, pattern="*TKLiveSync*"), \
366
- # "TKLiveSync binaries not available in debug configuration."
364
+ assert "TKLiveSync" in output , "TKLiveSync binaries not available in debug configuration."
367
365
else :
368
366
assert "build/emulator/" + app_id + ".app" in output
369
- assert File .exists (app_name + "/platforms/ios/build/emulator/" + app_id + ".app" )
370
367
assert File .exists (app_name + "/platforms/ios/" + app_id + "/" + app_id + "-Prefix.pch" )
368
+ assert File .exists (emu_folder + app_id + ".app" )
369
+ output = File .read (emu_folder + app_id + ".app/" + app_id )
371
370
if "--release" in attributes .keys ():
372
- assert not File .pattern_exists (directory = emu_folder , pattern = "*TKLiveSync*" ), \
373
- "TKLiveSync binaries available in release configuration."
371
+ assert "TKLiveSync" not in output , "TKLiveSync binaries available in release configuration."
374
372
else :
375
- pass
376
- # assert File.pattern_exists(directory=emu_folder, pattern="*TKLiveSync*"), \
377
- # "TKLiveSync binaries not available in debug configuration."
373
+ assert "TKLiveSync" in output , "TKLiveSync binaries not available in debug configuration."
378
374
return output
379
375
380
376
@staticmethod
0 commit comments