Skip to content

Change relationship type from appStoreVersions to appInfos#29691

Closed
maxsz wants to merge 1 commit into
fastlane:masterfrom
maxsz:fix-post-app-info-localization
Closed

Change relationship type from appStoreVersions to appInfos#29691
maxsz wants to merge 1 commit into
fastlane:masterfrom
maxsz:fix-post-app-info-localization

Conversation

@maxsz

@maxsz maxsz commented Sep 17, 2025

Copy link
Copy Markdown

Fix AppStore Connect API usage for POST to appInfoLocalizations. See https://developer.apple.com/documentation/appstoreconnectapi/post-v1-appinfolocalizations#Add-Localized-App-Information-in-US-English

Checklist

  • I've run bundle exec rspec from the root directory to see all new and existing tests pass
  • I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
  • I see several green ci/circleci builds in the "All checks have passed" section of my PR (connect CircleCI to GitHub if not)
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary.
  • I've added or updated relevant unit tests.

Motivation and Context

It fixes AppStore Connect API use error for POST to appInfoLocalizations.

Resolves #29690

Description

I tried using spaceship as a library to update / create app info localizations and it failed with the following error.

Failed to update app info for language fr: The provided entity includes an unknown relationship - 'appStoreVersion' is not a relationship on the resource 'appInfoLocalizations' - /data/relationships/appStoreVersion
The provided entity is missing a required relationship - You must provide a value for the relationship 'appInfo' with this request - /data/relationships/appInfo

Testing Steps

Run

    attributes = {
      name: localization.name
    }

    app_info.create_app_info_localization(
      client: client,
      attributes: attributes.merge(locale: "it")
    )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

create_app_info_localization fails because of invalid relationship

2 participants