CMake ios code signing

Error Message

When I build soundtouch for ios, met following error

1
2
error: Bundle identifier is missing. soundstretch doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'soundstretch' from project 'SoundTouch')
note: Run script build phase 'Generate CMakeFiles/ALL_BUILD' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ALL_BUILD' from project 'SoundTouch')

Solve Method

  1. skip cmake ios code signing

add code below to your CMakeLists.txt to disable code signing

1
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED "NO")
  1. support code signing

refer to page: Code Signing macOs application

1
2
3
4
set(CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM "97Z2ARC25P")
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "Developer ID Application")
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_STYLE "Manual")


CMake ios code signing
https://yxibng.github.io/2024/04/03/cmake/2024-04-03-cmake-ios-code-sign/
作者
yxibng
发布于
2024年4月3日
许可协议