AshampooSystems / boden

Purely native C++ cross-platform GUI framework for Android and iOS development. https://www.boden.io
Other
1.67k stars 96 forks source link

Support something like POLLY_IOS_DEVELOPMENT_TEAM #15

Open mrexodia opened 5 years ago

mrexodia commented 5 years ago

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}"
)
Maddimax commented 5 years ago

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.