iOS Question App Store upload failed because MLKit framework is missing MinimumOSVersion in Info.plist when building on HostedBuilder

b4x-de

Active Member
Licensed User
Longtime User
I use the MLKit framework in my B4i app, similar to the TextRecognition and SelfieSegmentation examples. I use B4i version 10.00 and build my app with HostedBuilder.
After uploading my B4i app to the AppStore, I receive several error messages in the subsequent check:

B4X:
Invalid MinimumOSVersion. Apps that only support 64-bit devices must specify a deployment target of 8.0 or later.
MinimumOSVersion in ‘MyAppName.app/Frameworks/MLImage.framework’ is ‘’.

And

B4X:
Validation failed (409) The bundle 'Payload/MyAppName.app/Frameworks/MLImage.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: 1dd39ae6-43f5-493a-a7dc-7907f381a898)
NSUnderlyingError : Validation failed (-19241) The bundle 'Payload/MyAppName.app/Frameworks/MLImage.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

I receive several messages of this type.

It appears that the components of the MLKit framework are missing the correct version entries in the Info.plist provided on HostedBuilder. The empty string in the error message (i.e., ‘’) seems to indicate the cause.

What can/must I change in order to successfully upload the app?

Any help would be greatly appreciated! Thank you very much.
 

b4x-de

Active Member
Licensed User
Longtime User
Thank you very much, for your support! It has reduced the number of errors. Unfortunately, the check after uploading is still unsuccessful. Now there are several error messages following this pattern:

B4X:
Validation failed (409) Invalid Bundle. The bundle MyAppName.app/Frameworks/MLImage.framework does not support the minimum OS Version specified in the Info.plist. (ID: 1bbe9e15-f7bd-4bad-872b-e122c8d6f6e9)
   NSUnderlyingError : Validation failed (-19241) Invalid Bundle. The bundle MyAppName.app/Frameworks/MLImage.framework does not support the minimum OS Version specified in the Info.plist.

I am attaching the entire error log here so that you can get an overview of the whole problem more easily, if you like. (By the way: I have already found the solution for the NFC error in the log by using the forum search.)
 

Attachments

  • upload2.txt
    6.7 KB · Views: 30
Upvote 0

b4x-de

Active Member
Licensed User
Longtime User
As a test, I increased the version to 26 to rule out the possibility that the MLKit framework requires a version higher than 16. But that doesn't work either. Unfortunately, I don't know what else I could change. Could the problem lie here, when I integrate MLKit like this?

B4X:
    #AdditionalLib: MLKit/MLKitCommon.framework.3
    #AdditionalLib: MLKit/MLImage.framework.3
    #AdditionalLib: MLKit/MLKitVision.framework.3
    #AdditionalLib: MLKit/MLKitBarcodeScanning.framework.3
    #AdditionalLib: MLKit/GoogleDataTransport.noheader
    #AdditionalLib: MLKit/GoogleToolboxForMac.noheader
    #AdditionalLib: MLKit/GoogleUtilities.noheader
    #AdditionalLib: MLKit/GTMSessionFetcher.noheader
    #AdditionalLib: MLKit/nanopb.noheader
    #AdditionalLib: MLKit/MLKitXenoCommon.framework.noheader.3
    #AdditionalLib: MLKit/PromisesObjC.noheader
    #AdditionalLib: MLKit/MLKitTextRecognitionCommon.framework.3
    #AdditionalLib: MLKit/MLKitTextRecognition.framework.3   
    #AdditionalLib: Accelerate.framework
    #AdditionalLib: sqlite3
 
Upvote 0
Top