mapbox / mapbox-search-ios

Search SDK for iOS with preconfigured UI in Swift
https://docs.mapbox.com/ios/search/guides/
Other
17 stars 20 forks source link

The app distribution to App Store Connect fails with “Asset validation failed” errors. #208

Closed PlayRhyba closed 5 months ago

PlayRhyba commented 7 months ago

I use

MaboxMaps 11.2.0
MabboxSearch 2.0.0-rc.3
Xcode 15.3

The app is targeting iOS and has a deployment target of iOS 15.

Probably this issue is specific to Xcode 15.3. An app distribution to App Store Connect (as well as an app validation) always fails with “Asset validation failed” errors. Please check the screenshot and logs below. Screenshot

2024-04-09 18:10:52.583 DEBUG: [ContentDelivery.Uploader] swinfo errors: (
    "Error Domain=ContentDelivery Code=90057 \"Asset validation failed\" UserInfo={NSLocalizedFailureReason=The bundle 'Payload/MyApp.app/Frameworks/MapboxCoreSearch.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: 0c532e45-8d9e-4b82-bf89-27f1e98eb46f), NSUnderlyingError=0x6000037f8a20 {Error Domain=IrisAPI Code=-19241 \"Asset validation failed\" UserInfo={status=409, detail=The bundle 'Payload/MyApp.app/Frameworks/MapboxCoreSearch.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=0c532e45-8d9e-4b82-bf89-27f1e98eb46f, code=STATE_ERROR.VALIDATION_ERROR.90057, title=Asset validation failed, NSLocalizedFailureReason=The bundle 'Payload/MyApp.app/Frameworks/MapboxCoreSearch.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, NSLocalizedDescription=Asset validation failed}}, iris-code=STATE_ERROR.VALIDATION_ERROR.90057, NSLocalizedDescription=Asset validation failed}",

"Error Domain=ContentDelivery Code=90056 \"Asset validation failed\" UserInfo={NSLocalizedFailureReason=This bundle Payload/MyApp.app/Frameworks/MapboxCoreSearch.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: 2ae0fe11-ceeb-4e35-bc9f-2e936df0efc8), NSUnderlyingError=0x6000037f8150 {Error Domain=IrisAPI Code=-19241 \"Asset validation failed\" UserInfo={status=409, detail=This bundle Payload/MyApp.app/Frameworks/MapboxCoreSearch.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=2ae0fe11-ceeb-4e35-bc9f-2e936df0efc8, code=STATE_ERROR.VALIDATION_ERROR.90056, title=Asset validation failed, NSLocalizedFailureReason=This bundle Payload/MyApp.app/Frameworks/MapboxCoreSearch.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, NSLocalizedDescription=Asset validation failed}}, iris-code=STATE_ERROR.VALIDATION_ERROR.90056, NSLocalizedDescription=Asset validation failed}",

"Error Domain=ContentDelivery Code=90208 \"Asset validation failed\" UserInfo={NSLocalizedFailureReason=Invalid Bundle. The bundle MyApp.app/Frameworks/MapboxCoreSearch.framework does not support the minimum OS Version specified in the Info.plist. (ID: ddc5568a-999d-4c8b-b8b8-a30b1e3409ce), NSUnderlyingError=0x6000037f81e0 {Error Domain=IrisAPI Code=-19241 \"Asset validation failed\" UserInfo={status=409, detail=Invalid Bundle. The bundle MyApp.app/Frameworks/MapboxCoreSearch.framework does not support the minimum OS Version specified in the Info.plist., id=ddc5568a-999d-4c8b-b8b8-a30b1e3409ce, code=STATE_ERROR.VALIDATION_ERROR.90208, title=Asset validation failed, NSLocalizedFailureReason=Invalid Bundle. The bundle MyApp.app/Frameworks/MapboxCoreSearch.framework does not support the minimum OS Version specified in the Info.plist., NSLocalizedDescription=Asset validation failed}}, iris-code=STATE_ERROR.VALIDATION_ERROR.90208, NSLocalizedDescription=Asset validation failed}"
aokj4ck commented 7 months ago

Hi @PlayRhyba thank you for reporting this issue. This is under investigation to find a fix for you.

guillecom commented 7 months ago

I'm having the same issue, any workaround or ETA? Thanks!

MarnixArnold commented 6 months ago

This was reported earlier as issue 191. Which also still has not been addressed...

Temporary workaround is to use Xcode 15.2 to upload, it won't give you these errors.

aokj4ck commented 6 months ago

@PlayRhyba @guillecom please update to our latest release v2.0.3 and let me know if you encounter any issues. https://github.com/mapbox/mapbox-search-ios/releases/tag/v2.0.3

PlayRhyba commented 6 months ago

@aokj4ck I have tested with v2.0.3 and Xcode 15.4. The issue was fixed. Thank you!