boden icon indicating copy to clipboard operation
boden copied to clipboard

Support something like POLLY_IOS_DEVELOPMENT_TEAM

Open mrexodia opened this issue 5 years ago • 1 comments

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}"
)

mrexodia avatar Jul 23 '19 15:07 mrexodia

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 avatar Aug 21 '19 07:08 Maddimax