Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PlistBuddy instead of defaults in scripts #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ for BUILD_FRAMEWORK_PATH in "$(find "${BUILD_FRAMEWORKS_DIR}" -name '*.framework
FRAMEWORK_NAME=$(basename "${BUILD_FRAMEWORK_PATH}")

# Determine the uuids of the architectures of the executable file within the framework bundle.
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "${BUILD_FRAMEWORK_PATH}/Info.plist" CFBundleExecutable)
FRAMEWORK_EXECUTABLE_NAME=$(/usr/libexec/PlistBuddy -c "Print :CFBundleExecutable" "${BUILD_FRAMEWORK_PATH}/Info.plist")
FRAMEWORK_EXECUTABLE_PATH="${BUILD_FRAMEWORK_PATH}/${FRAMEWORK_EXECUTABLE_NAME}"
EXECUTABLE_ARCHS="$(lipo -info "${FRAMEWORK_EXECUTABLE_PATH}" | rev | cut -d ':' -f1 | rev)"
FRAMEWORK_SLICE_UUIDS="$(xcrun dwarfdump --uuid "${FRAMEWORK_EXECUTABLE_PATH}" | awk '{ print $2 }' | tr '\n' ' ')"
Expand Down
2 changes: 1 addition & 1 deletion FraudForce SDK/build scripts/slim-build-frameworks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ for UNIVERSAL_FRAMEWORK in "$(find "${INPUT_FRAMEWORKS_DIR}" -name '*.framework'
cp -a "${UNIVERSAL_FRAMEWORK}" "${OUTPUT_FRAMEWORKS_DIR}/."

# Determine the architectures of the executable file within the framework bundle.
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "${OUTPUT_FRAMEWORK_PATH}/Info.plist" CFBundleExecutable)
FRAMEWORK_EXECUTABLE_NAME=$(/usr/libexec/PlistBuddy -c "Print :CFBundleExecutable" "${OUTPUT_FRAMEWORK_PATH}/Info.plist")
FRAMEWORK_EXECUTABLE_PATH="${OUTPUT_FRAMEWORK_PATH}/${FRAMEWORK_EXECUTABLE_NAME}"
EXECUTABLE_ARCHS="$(lipo -info "${FRAMEWORK_EXECUTABLE_PATH}" | rev | cut -d ':' -f1 | rev)"
echo "Framework (${FRAMEWORK_NAME}) executable (${FRAMEWORK_EXECUTABLE_NAME}) contains archs: ${EXECUTABLE_ARCHS}"
Expand Down
2 changes: 1 addition & 1 deletion iovSample/bin/add-framework-symbols-to-app-archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ for BUILD_FRAMEWORK_PATH in "$(find "${BUILD_FRAMEWORKS_DIR}" -name '*.framework
FRAMEWORK_NAME=$(basename "${BUILD_FRAMEWORK_PATH}")

# Determine the uuids of the architectures of the executable file within the framework bundle.
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "${BUILD_FRAMEWORK_PATH}/Info.plist" CFBundleExecutable)
FRAMEWORK_EXECUTABLE_NAME=$(/usr/libexec/PlistBuddy -c "Print :CFBundleExecutable" "${BUILD_FRAMEWORK_PATH}/Info.plist")
FRAMEWORK_EXECUTABLE_PATH="${BUILD_FRAMEWORK_PATH}/${FRAMEWORK_EXECUTABLE_NAME}"
EXECUTABLE_ARCHS="$(lipo -info "${FRAMEWORK_EXECUTABLE_PATH}" | rev | cut -d ':' -f1 | rev)"
FRAMEWORK_SLICE_UUIDS="$(xcrun dwarfdump --uuid "${FRAMEWORK_EXECUTABLE_PATH}" | awk '{ print $2 }' | tr '\n' ' ')"
Expand Down
2 changes: 1 addition & 1 deletion iovSample/bin/slim-build-frameworks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ for UNIVERSAL_FRAMEWORK in "$(find "${INPUT_FRAMEWORKS_DIR}" -name '*.framework'
cp -a "${UNIVERSAL_FRAMEWORK}" "${OUTPUT_FRAMEWORKS_DIR}/."

# Determine the architectures of the executable file within the framework bundle.
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "${OUTPUT_FRAMEWORK_PATH}/Info.plist" CFBundleExecutable)
FRAMEWORK_EXECUTABLE_NAME=$(/usr/libexec/PlistBuddy -c "Print :CFBundleExecutable" "${OUTPUT_FRAMEWORK_PATH}/Info.plist")
FRAMEWORK_EXECUTABLE_PATH="${OUTPUT_FRAMEWORK_PATH}/${FRAMEWORK_EXECUTABLE_NAME}"
EXECUTABLE_ARCHS="$(lipo -info "${FRAMEWORK_EXECUTABLE_PATH}" | rev | cut -d ':' -f1 | rev)"
echo "Framework (${FRAMEWORK_NAME}) executable (${FRAMEWORK_EXECUTABLE_NAME}) contains archs: ${EXECUTABLE_ARCHS}"
Expand Down