# Locate the correct slice of the .xcframework for the current architectures
select_slice "${basepath}""${paths[@]}"
local target_path="$SELECT_SLICE_RETVAL"
if[[-z"$target_path"]];then
echo"warning: [CP] $(basename${basepath}): Unable to find matching slice in '${paths[@]}' for the current build architectures ($ARCHS) and platform (${EFFECTIVE_PLATFORM_NAME-${PLATFORM_NAME}})."
return
fi
local source="$basepath/$target_path"
local destination="${PODS_XCFRAMEWORKS_BUILD_DIR}/${name}"