Packaging static library in SPM Package for iOS Executable

Xcode copies the *.a to everywhere inside the app bundle, includes Contents/Library/LoginItems/ and Contents/Resources/ folders.

Append a Run Script Phase to Build Phases should remove unwanted static libraries:

rm -rf "${TARGET_BUILD_DIR}/${TARGET_NAME}.app/Contents/"**/*.a
rm -rf "${TARGET_BUILD_DIR}/${TARGET_NAME}.app/Contents/"**/**/*.a