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

Support something like POLLY_IOS_DEVELOPMENT_TEAM #15

Open
mrexodia opened this issue Jul 23, 2019 · 1 comment
Open

Support something like POLLY_IOS_DEVELOPMENT_TEAM #15

mrexodia opened this issue Jul 23, 2019 · 1 comment
Assignees

Comments

@mrexodia
Copy link
Contributor

See: https://polly.readthedocs.io/en/latest/toolchains/ios/errors/polly_ios_development_team.html

For now I added the following to my CMakeLists.txt as a workaround:

# Based on: https://github.com/ruslo/polly/blob/c7462593865acbc0557fae6d461607a274dc6e36/utilities/polly_ios_development_team.cmake
string(COMPARE EQUAL "$ENV{BODEN_IOS_DEVELOPMENT_TEAM}" "" _is_empty)
if(_is_empty)
  polly_fatal_error(
      "Environment variable BODEN_IOS_DEVELOPMENT_TEAM is empty"
      " (see details: http://polly.readthedocs.io/en/latest/toolchains/ios/errors/polly_ios_development_team.html)"
  )
endif()

set(
    CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM
    "$ENV{BODEN_IOS_DEVELOPMENT_TEAM}"
)
@gitoby gitoby added the enhancement New feature or request label Aug 19, 2019
@Maddimax
Copy link
Contributor

Maddimax commented Aug 21, 2019

Sorry for the late reply, I missed this ticket.

We have a similar mechanism in "boden/cmake/ios.cmake".

In your cmake file call:
ios_setup_code_signing(MyTarget)

( ios_configure_app_info(...) will also call ios_setup_code_signing )

This will then use the environment variable BODEN_TEAM_ID to set the development team id in xcode.

I will create a ticket to document this better.

@Maddimax Maddimax removed the enhancement New feature or request label Aug 21, 2019
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

3 participants