Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Issues
  • #909
Closed
Open
Issue created Sep 29, 2016 by Administrator@rootContributor

SwiftCompile should include headers if bridging header is presented

Created by: fkorotkov

It seems when a bridging header is presented header symlink trees should be provided to swift compiler via -I flag.

I've created an example here: https://github.com/fkorotkov/buck-sandbox/commit/46d25d39a07f52f3e2f981d080c1eef0845ca26d

Basically my bridging header next to a BUCK file has #import "objc/Foo.h" and objc/Foo.h contains #import "Version.h" where Version.h suppose to be next to the BUCK file as well. With this special setup I'm getting:

complex_objc_swift/Foo-Bridging-Header.h:1:
#import "objc/Foo.h"
        ^
/Users/fedor_korotkov/workspace/buck-sandbox/complex_objc_swift/objc/Foo.h:3:9: error: 'Version.h' file not found
#import "Version.h"
        ^
<unknown>:0: error: failed to import bridging header 'complex_objc_swift/Foo-Bridging-Header.h'

I was able to fix the command line by adding -I complex_objc_swift.

Assignee
Assign to
Time tracking