Skip to content

Commit

Permalink
fix duplicate apple framework identifiers, fixes #93
Browse files Browse the repository at this point in the history
  • Loading branch information
tanersener committed Sep 16, 2021
1 parent 28612fc commit d4c6cba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/function-apple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,9 @@ create_single_framework() {

initialize_folder "${FRAMEWORK_PATH}"

local CAPITAL_CASE_LIBRARY_NAME=$(to_capital_case "${LIBRARY_NAME}")
local CAPITAL_CASE_FRAMEWORK_NAME=$(to_capital_case "${FRAMEWORK_NAME}")

build_info_plist "${FRAMEWORK_PATH}/Info.plist" "${LIBRARY_NAME}" "com.arthenica.ffmpegkit.${CAPITAL_CASE_LIBRARY_NAME}" "${LIBRARY_VERSION}" "${LIBRARY_VERSION}"
build_info_plist "${FRAMEWORK_PATH}/Info.plist" "${LIBRARY_NAME}" "com.arthenica.ffmpegkit.${CAPITAL_CASE_FRAMEWORK_NAME}" "${LIBRARY_VERSION}" "${LIBRARY_VERSION}"

cp "${BASEDIR}/prebuilt/$(get_universal_library_directory "${ARCHITECTURE_VARIANT}")/${LIBRARY_NAME}/lib/${STATIC_LIBRARY_NAME}.a" "${FRAMEWORK_PATH}/${FRAMEWORK_NAME}" 1>>"${BASEDIR}/build.log" 2>&1

Expand Down
8 changes: 4 additions & 4 deletions scripts/function.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1318,8 +1318,8 @@ get_external_library_license_path() {
copy_external_library_license() {
output_path_array=("$2")
for output_path in "${output_path_array[@]}"; do
$(copy_external_library_license_file "$1" "${output_path}/LICENSE")
if [[ $? -ne 0 ]]; then
RESULT=$(copy_external_library_license_file "$1" "${output_path}/LICENSE")
if [[ ${RESULT} -ne 0 ]]; then
echo 1
return
fi
Expand All @@ -1330,8 +1330,8 @@ copy_external_library_license() {
# 1 - library index
# 2 - output path
copy_external_library_license_file() {
$(cp $(get_external_library_license_path "$1") "$2" 1>>"${BASEDIR}"/build.log 2>&1)
if [[ $? -ne 0 ]]; then
RESULT=$(cp $(get_external_library_license_path "$1") "$2" 1>>"${BASEDIR}"/build.log 2>&1)
if [[ ${RESULT} -ne 0 ]]; then
echo 1
return
fi
Expand Down

0 comments on commit d4c6cba

Please sign in to comment.