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

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

Open
NicolasBuquet opened this issue Aug 14, 2024 · 3 comments
Assignees
Labels

Comments

@NicolasBuquet
Copy link
Contributor

NicolasBuquet commented Aug 14, 2024

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 NicolasBuquet self-assigned this Aug 14, 2024
@NicolasBuquet
Copy link
Contributor Author

NicolasBuquet commented Aug 14, 2024

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
Copy link
Contributor Author

Déclaré chez Element : element-hq/element-ios#7833

@NicolasBuquet
Copy link
Contributor Author

Le problème se manifeste toujours sous Xcode 16.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant