Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,809
    • Issues 3,809
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

An update will be applied May 24th, between 12PM and 1PM EDT (UTC -400). The site may be slow during that time.

  • CMake
  • CMakeCMake
  • Issues
  • #16900

Closed
Open
Created May 18, 2017 by Yasser Zabuair@yasser

XCode generator does not generate a proper xcode project when .swift files are in the project.

This is on XCode 8.2, using CMake 3.8.1 and the XCode generator.

If a .swift file is included in the CMakeLists project, it is not included as part of the PBXSourcesBuildPhase. For example, I have two .swift files, AppDelegate.swift and ViewDelegate.swift. This is the PbxSourcesBuildPhase generated by cmake (edited to remove anything proprietary):

            3EF8DE5AF7E6448FBE1C4A89 /* Sources */ = {
                    isa = PBXSourcesBuildPhase;
                    buildActionMask = 2147483647;
                    files = (
                            2FF6DFE4F36F4C36A4FBBA91 /* Cardreader.mm */,
                            E53F580BD73F46C58233D5D4 /* main.mm */,
                    );
                    runOnlyForDeploymentPostprocessing = 0;
            };

After I manualy add the files to the target:

            3EF8DE5AF7E6448FBE1C4A89 /* Sources */ = {
                    isa = PBXSourcesBuildPhase;
                    buildActionMask = 2147483647;
                    files = (
                            3B71D98C1ECE9683007AA9DA /* ViewController.swift in Sources */,
                            3B71D98B1ECE967F007AA9DA /* AppDelegate.swift in Sources */,
                            2FF6DFE4F36F4C36A4FBBA91 /* Cardreader.mm in Sources */,
                            E53F580BD73F46C58233D5D4 /* main.mm in Sources */,
                    );
                    runOnlyForDeploymentPostprocessing = 0;
            };
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking