Techxiu
V2EX  ›  macOS

求教,自从升级 Catalina 后 Xcode 经常会出现“ Implicitly declaring library function”还有头文件找不到警告和错误

  •  
  •   Techxiu · Oct 31, 2019 · 5641 views
    This topic created in 2410 days ago, the information mentioned may be changed or developed.

    只是新建一个项目后,printf 旁边就显示下面内容,但是编译运行都没有问题

    Implicitly declaring library function 'printf' with type 'int (const char *, ...)'
    1. Include the header <stdio.h> or explicitly provide a declaration for 'printf'
    

    截屏 2019-10-31 下午 5.26.24.png

    截屏 2019-10-31 下午 5.46.55.png

    已经尝试过从 MAS 重装,尝试过从 developer.apple.com 重装,尝试从 10.15 beta 升级到今天 10.15.1 正式版,这个问题一直存在,重启偶尔会正常不显示了,但是没多久又复现。

    在 reddit 和 stackoverflow 有找到两个类似帖子,不过都没有看到有效解决办法 https://www.reddit.com/r/Xcode/comments/dffc1k/semantic_issue_implicitly_declaring_library/ https://stackoverflow.com/questions/58302949/semantic-issue-implicitly-declaring-library-function-printf-with-type-int 被困扰好久了,不知道有没有 V2 老哥知道怎么解决😣

    2 replies    2019-11-01 12:08:00 +08:00
    Building
        1
    Building  
       Nov 1, 2019
    Xcode 是一个越更新越垃圾的神奇软件。
    aptx4689
        2
    aptx4689  
       Nov 1, 2019
    换回 Xcode 10 解决
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2646 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 15:42 · PVG 23:42 · LAX 08:42 · JFK 11:42
    ♥ Do have faith in what you're doing.