gpt4 book ai didi

ios - 当在 vscode 上按 Swift 代码运行时,它会显示此错误 :

转载 作者:行者123 更新时间:2023-12-05 08:13:20 30 4
gpt4 key购买 nike

我已经从官方网站下载了swift,我已经在环境变量中检查了它的路径


[Running] swift "x:\1. Other\TEST\test.swift" <module-includes>:1:10: note: in file included from <module-includes>:1: #include "AssertionReporting.h" 

C:\Library\Developer\Platforms\Windows. platform\Developer\SDKs\Windows.sdk\usr\lib\swift\shims/ AssertionReporting.h:16:10: note: in file included from C:\Library\Developer\Platforms\Windows. platform\Developer\SDKs\Windows.sdk\usr\lib\swift\shims/ AssertionReporting.h:16: #include "SwiftStdint.h"

C:\Library\Developer\Platforms\Windows. platform\Developer\SDKs\Windows.sdk\usr\lib\swift\shims/ SwiftStdint.h:28:10: error: 'stdint.h' file not found #include <stdint.h>

unknown:0: error: could not build C module 'SwiftShims'
[Done] exited with code=1 in 0.24 seconds

最佳答案

这是因为您在 Windows 上运行它。尝试在 macOS 上运行它(如果可能)。我在 Windows 上遇到了同样的错误,但它在 macOS 上编译完美。

关于ios - 当在 vscode 上按 Swift 代码运行时,它会显示此错误 :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71609312/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com