raiseInformative,"#{aggregate_target.name} must call use_frameworks! because it is hosting an embedded target that calls use_frameworks!."unlessaggregate_target.requires_frameworks?
target_mismatches<<"- #{target_definition.name} (#{target_definition.platform}) and #{host_target_definition.name} (#{host_target_definition.platform}) do not use the same platform."
target_mismatches<<"- #{target_definition.name} (#{target_definition.uses_framworks?}) and #{host_target_definition.name} (#{host_target_definition.uses_frameworks?}) do not both set use_frameworks!."
target_mismatches<<"- #{target_definition.name} (#{target_definition.swift_version}) and #{host_target_definition.name} (#{host_target_definition.swift_version}) do not both use the same Swift version."
end
check_prop.call(host_target_definition,target_definition,:platform,'do not use the same platform')
check_prop.call(host_target_definition,target_definition,:uses_frameworks?,'do not both set use_frameworks!')
check_prop.call(host_target_definition,target_definition,:swift_version,'do not both use the same Swift version')