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