Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,235
    • Issues 3,235
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 14
    • Merge Requests 14
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Issues
  • #21636

Closed
Open
Opened Dec 26, 2020 by Craig Scott@craig.scottMaintainer

CMakeIOSInstallCombined should avoid using VALID_ARCHS with Xcode 12+

Apple has deprecated use of the VALID_ARCHS Xcode project setting as of Xcode 12. In its place, a new EXCLUDED_ARCHS setting has been introduced which appears to be essentially the inverse of that. This setting becomes important for building iOS apps on Apple Silicon hosts because the simulator is no longer a different architecture to the device (both are arm64). It looks like one has to exclude the arm64 architecture for simulator builds. The following references may be useful in helping to identify any changes required:

  • https://stackoverflow.com/a/63405201/1938798 (this one has feedback from Apple)
  • https://stackoverflow.com/a/63955114/1938798

At the moment, the CMakeIOSInstallCombined module appears to be relying on VALID_ARCHS to work, so it likely is going to have problems with Xcode 12+.

Cc: @gusc @gjasny @brad.king

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: cmake/cmake#21636