This is a bug with SPM packages - https://bugs.swift.org/browse/SR-13840 that use binary assets, discussion thread. - https://forums.swift.org/t/swift-package-binary-framework-issue/41922
The fix in the case of plugins is mentioned here. - https://github.com/Instabug/Instabug-iOS/issues/330#issuecomment-739475832
The fix in this case of app clips is adding the following snippet in Archive Post actions - Run script phase:
bash
FRAMEWORK_NAME="ADD THE NAME OF THE BINARY ASSET HERE"
APP_PATH=$(dirname "${ARCHIVE_PRODUCTS_PATH}/Applications/${EXECUTABLE_PATH}")
APPCLIP_FOLDER_PATH="AppClips"
APPCLIP_INSTABUG="${APP_PATH}/${APPCLIP_FOLDER_PATH}/${FRAMEWORK_NAME}.framework"
if [ -d "${APPCLIP_INSTABUG}" ]; then
echo "Removing ${FRAMEWORK_NAME} from appclips at ${APPCLIP_INSTABUG}"
rm -rf "${APPCLIP_INSTABUG}"
else
echo "${FRAMEWORK_NAME} does not exist at ${APPCLIP_INSTABUG}"
fi
Topic:
App & System Services
SubTopic:
General
Tags: