Fix an App Store error due to an RTE version mismatch. (#3029)

This commit is contained in:
Doug
2024-07-12 17:01:59 +01:00
committed by GitHub
parent c92c6a28ae
commit a8bf97a472
3 changed files with 31 additions and 1 deletions
+9
View File
@@ -174,6 +174,15 @@ targets:
else
echo "warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat"
fi
- name: 🔧 Fix the Rich Text Editor
runOnlyWhenInstalling: false
basedOnDependencyAnalysis: false
shell: /bin/sh
script: |
# The RTE XCFramework contains .frameworks instead of static libs. For some reason Xcode embeds the binary, but also
# an empty framework containing a stub binary. This stub binary is generated for our app and so its version mismatches
# the one declared by the XCFramework's Info.plist file (and we can't match it because of Element iOS).
/usr/libexec/PlistBuddy -c "Set :MinimumOSVersion ${IPHONEOS_DEPLOYMENT_TARGET}" ${BUILT_PRODUCTS_DIR}/ElementX.app/Frameworks/WysiwygComposerFFI.framework/Info.plist
dependencies:
- target: NSE