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

Invalid Bundle, asset valiation failure on upload #191

Open
nicolopadovan opened this issue Mar 15, 2024 · 16 comments
Open

Invalid Bundle, asset valiation failure on upload #191

nicolopadovan opened this issue Mar 15, 2024 · 16 comments

Comments

@nicolopadovan
Copy link

Environment

  • Xcode version: 15.3
  • iOS version: 15.0+
  • Devices affected: *
  • Maps SDK Version: -

Packages versions:

  • MapboxCommon: 23.6.0
  • MapboxCoreMaps: 10.14.0
  • MapboxDirections: 2.12.0
  • MapboxMaps: 10.14.0
  • MapboxMobileEvents: 1.0.10
  • MapboxNavigation: 2.14.0
  • MapboxNavigationNative: 137.1.7
  • MapboxSearch: 1.0.0-rc.7
  • MapboxSpech: 2.1.1

Observed behavior and steps to reproduce

The application builds, runs and archives correctly. However, when uploading (either to App Store or TestFlight only), multiple errors related to the MapboxCoreSearch package Info.plist file are yielded.
This only happens after the last Xcode update.
In my specific case, I've installed Mapbox via Swift Package Manager.

The errors that are yielded are:

Asset validation failed
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
Asset validation failed
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
Asset validation failed
Invalid Bundle.
The bundle [MyApp].app/Frameworks/MapboxCoreSearch.framework does not support the minimum OS Version specified in the Info.plist.

Expected behavior

The application should upload normally.

Notes / preliminary analysis

None of the following works:

  • Updating the package to the latest version
  • Resolving package version
  • Resetting cache
  • Cleaning derived data

Additional links and references

It seems that the Firebase iOS SDK encountered the same issue a couple of weeks ago. Link

@aokj4ck
Copy link
Contributor

aokj4ck commented Mar 19, 2024

@nicolopadovan thank you for this bug report. I am actively investigating the issue.

@nicolopadovan
Copy link
Author

@nicolopadovan thank you for this bug report. I am actively investigating the issue.

Thank you for investigating. Is there any update on the issue?

@MarnixArnold
Copy link

@aokj4ck We are seeing the same issue with Mapbox Search 2.0.0-rc.3. This is a serious issue that is blocking the release of our app. If this is not resolved we are going to have to drop Mapbox Search from our app, so a prompt response would be appreciated.
Screenshot 2024-04-04 at 10 02 28

@nicolopadovan
Copy link
Author

nicolopadovan commented Apr 4, 2024

@aokj4ck We are seeing the same issue with Mapbox Search 2.0.0-rc.3. This is a serious issue that is blocking the release of our app. If this is not resolved we are going to have to drop Mapbox Search from our app, so a prompt response would be appreciated.

I’m facing the same issue. For now, I had to revert to the previous Xcode version, downloading it from the developer portal.
You may encounter some issues if you already updated the packages for the new Xcode version, and you may need to re-install them.
Currently from my phone, but I’ll link the precise Xcode version to use asap.

Edit: the version is 15.2 (as @MarnixArnold already specified)

@Ketkukelmi
Copy link

Any updates on this matter @aokj4ck

@MarnixArnold
Copy link

MarnixArnold commented Apr 4, 2024

I had to revert to the previous Xcode version

Thanks for the tip @nicolopadovan, we did manage to upload to Test Flight with Xcode 15.2. Hardly a permanent solution of course, but this gives us a bit of breathing room at least...

@nicolopadovan
Copy link
Author

Is there any update on the issue yet? @aokj4ck

@MarnixArnold
Copy link

I've tried updating to MapboxSearch 1.0.0-rc9 but the problem persists. @aokj4ck is this going to be fixed any time soon? Or at all? We would like to be able to use the latest Xcode again...

@aokj4ck
Copy link
Contributor

aokj4ck commented Apr 30, 2024

@MarnixArnold @nicolopadovan I'm preparing a new release to resolve this. In the meantime until that release is finalized you can use this commit e862c84 with SPM to resolve this issue with the v1 version series. Please let me know if you encounter any other issues. I'll update this issue once that release is published.

@MarnixArnold
Copy link

@aokj4ck we've tried release 1.0.1 with Xcode 15.3 and while the first two errors (CFBundleShortVersionString and CFBundleVersion) have gone, the third is still there:

Asset validation failed, NSLocalizedRecoverySuggestion=Invalid Bundle. The bundle MyApp.app/Frameworks/MapboxCoreSearch.framework does not support the minimum OS Version specified in the Info.plist

This is because your framework's min OS version is 16.5 but its Info.plist specifies 11.0:

vtool -show MapboxCoreSearch.framework/MapboxCoreSearch 
MapboxCoreSearch.framework/MapboxCoreSearch:
Load command 8
      cmd LC_BUILD_VERSION
  cmdsize 32
 platform IOS
    minos 16.5
      sdk 17.4
   ntools 1
     tool LD
  version 1053.12
Load command 9
      cmd LC_SOURCE_VERSION
  cmdsize 16
  version 0.0

Info.plist:

	<key>MinimumOSVersion</key>
	<string>11.0</string>

Maybe you can do like Google did for the FirebaseAnalytics and just set it to 100.0, that worked for them:

	<key>MinimumOSVersion</key>
	<string>100.0</string>

@aokj4ck
Copy link
Contributor

aokj4ck commented May 9, 2024

@MarnixArnold yes this is a known issue with Xcode 15.3 and in the meantime you might have luck with Xcode 15.2 instead. I am working to fix this for you and appreciate the note. Hm vtool reporting minos 16.5 is not what I anticipated. Are you using Swift Package Manager, CocoaPods, or another package manager (like direct downloads or Carthage)?

@MarnixArnold
Copy link

@aokj4ck Yes, so far we've been able to make builds using Xcode 15.2 but with 15.4 around the corner there's no telling how long Apple will continue to allow us to do that.

We are using SPM only.

@MarnixArnold
Copy link

@aokj4ck I've just made a build with MapboxSearch 1.0.2 on Xcode 15.3 and it validates, so it looks like the problems have been resolved.

@aokj4ck
Copy link
Contributor

aokj4ck commented May 14, 2024

@MarnixArnold 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

@aokj4ck
Copy link
Contributor

aokj4ck commented May 14, 2024

@nicolopadovan is this issue solved for you with release v1.0.2?

@MarnixArnold
Copy link

please update to our latest release v2.0.3

I just did and that also works (no App Store Connect verification issues, it appears).

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

No branches or pull requests

4 participants