@@ -356,24 +356,20 @@ 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
- output = File .read (app_name + "/platforms/ios/build/device/" + app_id + ".app/" + app_id )
362
362
assert "TKLiveSync" not in output , "TKLiveSync binaries available in release configuration."
363
363
else :
364
- pass
365
- output = File .read (app_name + "/platforms/ios/build/device/" + app_id + ".app/" + app_id )
366
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
- output = File .read (app_name + "/platforms/ios/build/emulator/" + app_id + ".app/" + app_id )
373
371
assert "TKLiveSync" not in output , "TKLiveSync binaries available in release configuration."
374
372
else :
375
- pass
376
- output = File .read (app_name + "/platforms/ios/build/emulator/" + app_id + ".app/" + app_id )
377
373
assert "TKLiveSync" in output , "TKLiveSync binaries not available in debug configuration."
378
374
return output
379
375
0 commit comments