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,199
    • Issues 3,199
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 16
    • Merge Requests 16
  • 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
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • CMake
  • CMakeCMake
  • Issues
  • #21678

Closed
Open
Opened Jan 07, 2021 by Patrick Fu@patrick-fu

Xcode: Link error when building dynamic library for iOS simulator (x86_64)

After I upgraded CMake from version 3.18.4 to 3.19.2, there was a link problem when building the iOS dynamic library

The problem occurred when compiling the iOS Simulator x86_64 architecture. In the Ld call, there was an additional -F parameter, pointing to the specific system framework's path, but unfortunately the path for the simulator architecture should be */iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/*, but it still points to iOS real device's SDK path, so it leads to the error of Undefined symbols for architecture x86_64.

When I downgraded back to version 3.18.4, everything works fine.

P.S.: I have also encountered the Xcode database issue #21282 of new build system, and I have added the -Tbuildsystem=1 parameter when using version 3.19.2, I am not sure if adding -Tbuildsystem=1 parameter will cause this link with unexpected -F parameter problem.

cmake_link_issue

Edited Jan 07, 2021 by Brad King
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: cmake/cmake#21678