yzbythesea
V2EX  ›  问与答

用 Xcode 如何写 C++ 项目?

  •  
  •   yzbythesea · Apr 4, 2022 · 1649 views
    This topic created in 1586 days ago, the information mentioned may be changed or developed.
    突发奇想试了下 Xcode 写 C++,完全没有头绪。

    项目使用 bazel 编译,之前用的比如 Vim 或者 VSCode 都支持 compilation database ,所以我直接生成一个 compile_command.json 后,代码就能自动被索引。

    但是 Xcode 不支持这个(或者我没有找到方法),代码不能索引导致 jump to definition ,自动补全这些都没法使用了。想问下大家有这方面经验吗?
    2 replies    2022-04-04 10:21:15 +08:00
    BrettD
        1
    BrettD  
       Apr 4, 2022 via iPhone
    yzbythesea
        2
    yzbythesea  
    OP
       Apr 4, 2022
    @BrettD

    试了下好像只能配置 build ,代码依然没法索引。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5240 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 09:00 · PVG 17:00 · LAX 02:00 · JFK 05:00
    ♥ Do have faith in what you're doing.