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

gym export_options : {method} resolves into empty string #21908

Closed
4 tasks done
Erodotos opened this issue Mar 4, 2024 · 2 comments
Closed
4 tasks done

gym export_options : {method} resolves into empty string #21908

Erodotos opened this issue Mar 4, 2024 · 2 comments

Comments

@Erodotos
Copy link

Erodotos commented Mar 4, 2024

New Issue Checklist

Issue Description

I am using build_app function to build an iOS app. The execution fails due to the following error:

There seems to be a mismatch between your provided `export_method` in gym
and the selected provisioning profiles. You passed the following options:
export_method:      

The export method seems to be resolved as an empty string or a " " character.

The weird think is that "Summary for gym 2.219.0" shows a correct input with all values completed as expected. For disclosure I tried executing with method being "ad-hoc" or "app-store".

Is there any reason for gym translating the input to an empty string?

Command executed
disable_automatic_code_signing(
            team_id: options[:team_id],
            profile_name: options[:provisioning_profile],
            code_sign_identity: options[:code_sign_identity]
        )
  increment_build_number(
            build_number: ENV["BUILD_NUMBER"]
        )
build_app(
            derived_data_path: options[:derived_data_path],
            workspace: options[:workspace],
            scheme: options[:scheme],
            include_symbols: true,
            toolchain: "com.guardsquare.ixguard",
            output_directory: options[:output_directory],
            output_name: options[:output_name],
            clean: true,
            codesigning_identity:options[:codesigning_identity],
            export_options: {
                teamID: options[:team_id],
                method: 'app-store'
            }
        )
Complete output when running fastlane, including the stack trace and command used
There seems to be a mismatch between your provided `export_method` in gym
[17:39:20]: and the selected provisioning profiles. You passed the following options:
[17:39:20]:   export_method:      
[17:39:20]:   Bundle identifier:  com.xxxxxxxx.qa
[17:39:20]:   Profile name:       com.xxxxxxxx.qa AppStore
[17:39:20]:   Profile type:       app-store

@Kevin498Vasquez
Copy link

Kevin498Vasquez commented Mar 11, 2024

Great post. It was much needed. Love your simplistic style of explanation. dgcustomerfirst survey

@Erodotos
Copy link
Author

Removing this line of code solved my issue.

codesigning_identity:options[:codesigning_identity],

Looks like there was double definition of signing identity which was causing the issue

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

2 participants