tchapgouv / tchap-ios

A Matrix client for iOS
https://apps.apple.com/fr/app/tchap/id1446253779
Apache License 2.0
59 stars 17 forks source link

[Build] Avec Xcode 15.4 l'archive générée est non valide pour TestFlight/AppStore #1082

Open NicolasBuquet opened 4 weeks ago

NicolasBuquet commented 4 weeks ago

Tchap 2.8.0

Le framework https://github.com/matrix-org/matrix-wysiwyg-composer-swift est deprecated mais encore utilisé dans Element/Tchap.

Il est remplacé par https://github.com/matrix-org/matrix-rich-text-editor-swift

Xcode 15.4 ne trouve plus les informations de versions suffisantes dans le descripteur de projet pour générer une archive valide pour testFlight/AppStore.

La validation refuse les données de info.plist du framework généré.

Asset validation failed
Invalid MinimumOSVersion. Apps that only support 64-bit devices must specify a deployment target of 8.0 or later. MinimumOSVersion in 'Tchap.app/Frameworks/WysiwygComposerFFI.framework' is ''. (ID: 43f8032e-66cb-4bf1-abd4-0e27bf0c1b20)

Asset validation failed
Missing Info.plist value. A value for the key 'MinimumOSVersion' in bundle Tchap.app/Frameworks/WysiwygComposerFFI.framework is required. (ID: 15256840-ecf1-4219-839f-80153dd8f54a)

Asset validation failed
The bundle 'Payload/Tchap.app/Frameworks/WysiwygComposerFFI.framework' is missing plist key. The Info.plist file is missing the required key: CFBundleShortVersionString. Please find more information about CFBundleShortVersionString at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring (ID: 3ebd5a70-b915-4e99-b802-61b018f73eee)

Asset validation failed
This bundle Payload/Tchap.app/Frameworks/WysiwygComposerFFI.framework is invalid. The Info.plist file is missing the required key: CFBundleVersion. Please find more information about CFBundleVersion at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion (ID: 4f8f6b0b-ccf9-466a-be28-4655e384217d)

Asset validation failed
Invalid Bundle. The bundle Tchap.app/Frameworks/WysiwygComposerFFI.framework does not support the minimum OS Version specified in the Info.plist. (ID: 7848974c-f03a-4dec-9eb5-dbf143558fd0)

Cela ne posait pas de problème avec Xcode 15.2.

NicolasBuquet commented 4 weeks ago

C'est un problème côté Apple.

https://forums.developer.apple.com/forums/thread/747452 https://forums.developer.apple.com/forums/thread/738351

La solution temporaire est de mettre à la main ces données de le fichier info.plist dans l'archive générée avant de l'uploader sur TestFlight.

Fichier info.plist valide :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleExecutable</key>
    <string>WysiwygComposerFFI</string>
    <key>CFBundleIdentifier</key>
    <string>org.matrix.WysiwygComposerFFI</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundlePackageType</key>
    <string>FMWK</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0.0</string>
    <key>CFBundleVersion</key>
    <string>1</string>
    <key>MinimumOSVersion</key>
    <string>15.0</string>
</dict>
</plist>
NicolasBuquet commented 4 weeks ago

Déclaré chez Element : https://github.com/element-hq/element-ios/issues/7833