V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
wisej
V2EX  ›  Swift

Xcode 如何跳转方法具体代码实现处?

  •  
  •   wisej · Sep 23, 2022 · 2421 views
    This topic created in 1323 days ago, the information mentioned may be changed or developed.

    用 Xcode 开发时,想查看某个方法的具体实现。但是 Jump to Definition 后,只有函数签名,没有具体代码实现。要如何才能跳转到代码实现处呢?

    搜了下,在 stackoverflow 上发现相同的问题: https://stackoverflow.com/questions/8748340/xcode-shortcut-for-jumping-to-implementation-of-a-method , 但是没有有效的回答

    Supplement 2  ·  Sep 23, 2022
    看起来没法在 Xcode 内直接跳转到 source code 了
    5 replies    2022-11-01 16:12:48 +08:00
    cht
        2
    cht  
       Sep 23, 2022
    <kbd>⌘</kbd> + <kbd>F</kbd>
    wisej
        3
    wisej  
    OP
       Sep 23, 2022
    @qq73666 可能我没表达清楚。我的意思是比如我用了 swiftui 里的 View ,Jump to Definition 跳转后,只有函数的声明,但是没有 func body ,看不到具体实现。

    不是希望说 command click 可以直接跳转
    foxwe10
        4
    foxwe10  
       Sep 27, 2022 via iPhone
    框架没开源,只能看到 Interface 层
    ethusdt
        5
    ethusdt  
       Nov 1, 2022
    xcode 通过 swiftinterface 或者 swiftmodule 生成出来的 就是个头文件给你看的, 具体实现看不见
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2744 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 16:02 · PVG 00:02 · LAX 09:02 · JFK 12:02
    ♥ Do have faith in what you're doing.