BlinkID / blinkid-capacitor

ID scanning for cross-platform apps built with Capacitor.
11 stars 3 forks source link

AppStore connect upload failing because of missing plist entry #13

Closed louisdebaere closed 3 years ago

louisdebaere commented 3 years ago

We get the following output when trying to upload our capacitor app with version 5.10 of the blinkid-capacitor plugin.

2021-03-12 10:08:50.097 altool[9701:55159] *** Error: code -18000 (ERROR ITMS-90057: "The bundle 'Payload/Test.app/Frameworks/Microblink.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")
2021-03-12 10:08:50.097 altool[9701:55159] *** Error: code -18000 (ERROR ITMS-90056: "This bundle Payload/Test.app/Frameworks/Microblink.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")

I noticed CFBundleVersion and CFBundleShortVersionString are missing from different architecture slices from Microblink.framework/Info.plist inside the Microblink.xcframework of the PPBlinkID cocoapods dependency, suggesting this could caused by the latest version of the native plugin.

Are the Info.plist files inside xcframeworks supposed to contain these keys (and is cocoapods supposed to generate them), or could they be missing from elsewhere? Has anyone else run into similar upload issues?

louisdebaere commented 3 years ago

We are able to successfully upload our capacitor app to AppStore Connect if we use version 5.9.0, indicating that a change with version 5.10.0 is causing the failure.

mparadina commented 3 years ago

Hi @louisdebaere

Thank you for waiting for our response.

Yes, this is a bug from our side with version 5.10.0, but this will be fixed in the next release.

Until then, you can use this workaround:

In the Info.plist inside Microblink.xcframework add:

    <key>CFBundleVersion</key>
    <string>1</string>

Also, in the Info.plist inside Microblink.framework add:

    <key>CFBundleShortVersionString</key>
    <string>5.10.0</string>
    <key>CFBundleVersion</key>
    <string>1</string>

After the keys have been added, the issue should be resolved.

Let me know if the solution worked.

Regards, Milan

ChoyWingLun commented 3 years ago

Hi, this problems still exists in version 5.11.0

mparadina commented 3 years ago

Hi @ChoyWingLun

I just double-checked and the Bundle version and the Bundle Version string (short) is set to 5.11.0 in the Info.plist located in the framework in the 5.11.0 version of the SDK.

Are you receiving the same exceptions mentioned above? Also, would you mind sharing how the Info.plist files look like in the framework in your project?

Regards, Milan