无法编译新的Xcode项目,出现错误: 未知参数: ‘-frontend-parseable-output’

huangapple go评论67阅读模式
英文:

Unable to compile a new Xcode project with error: unknown argument: '-frontend-parseable-output'

问题

我已经升级到最新的Xcode 14.2版本,但无法再编译任何项目。选择"文件->新建应用项目"会出现相同的错误。

尝试安装Xcode 14.3 beta - 仍然有相同的问题。

MacOS版本:Ventura 13.2.1
Xcode版本:14.2和14.3 Beta

英文:

I have upgraded Xcode to the latest Xcode 14.2 version and can no longer compile any project. File->New App project gives me same error.

Tried to install Xcode 14.3 beta - same issue.

MacOS: Ventura 13.2.1
Xcode: 14.2 and 14.3 Beta

SwiftCompile normal x86_64 Compiling\ SceneDelegate.swift /Users/<myuser>/Desktop/Sources/test8/test8/SceneDelegate.swift (in target 'test8' from project 'test8')
    cd /Users/<myuser>/Desktop/Sources/test8
    builtin-swiftTaskExecution -- /Library/Developer/Toolchains/swift-5.4.2-RELEASE.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/<myuser>/Desktop/Sources/test8/test8/ViewController.swift /Users/<myuser>/Desktop/Sources/test8/test8/AppDelegate.swift -primary-file /Users/<myuser>/Desktop/Sources/test8/test8/SceneDelegate.swift -emit-dependencies-path /Users/<myuser>/Library/Developer/Xcode/DerivedData/test8-ezstbxfhpbqmxjagjamtjhijljgh/Build/Intermediates.noindex/test8.build/Debug-iphonesimulator/test8.build/Objects-normal/x86_64/SceneDelegate.d -emit-reference-dependencies-path /Users/<myuser>/Library/Developer/Xcode/DerivedData/test8-ezstbxfhpbqmxjagjamtjhijljgh/Build/Intermediates.noindex/test8.build/Debug-iphonesimulator/test8.build/Objects-normal/x86_64/SceneDelegate.swiftdeps -serialize-diagnostics-path /Users/<myuser>/Library/Developer/Xcode/DerivedData/test8-ezstbxfhpbqmxjagjamtjhijljgh/Build/Intermediates.noindex/test8.build/Debug-iphonesimulator/test8.build/Objects-normal/x86_64/SceneDelegate.dia -target x86_64-apple-ios16.4-simulator -enable-objc-interop -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk -I /Users/<myuser>/Library/Developer/Xcode/DerivedData/test8-ezstbxfhpbqmxjagjamtjhijljgh/Build/Products/Debug-iphonesimulator -F /Users/<myuser>/Library/Developer/Xcode/DerivedData/test8-ezstbxfhpbqmxjagjamtjhijljgh/Build/Products/Debug-iphonesimulator -no-color-diagnostics -enable-testing -g -module-cache-path /Users/<myuser>/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -Onone -D DEBUG -serialize-debugging-options -Xcc -working-directory -Xcc /Users/<myuser>/Desktop/Sources/test8 -resource-dir /Library/Developer/Toolchains/swift-5.4.2-RELEASE.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -I/Users/<myuser>/Library/Developer/Xcode/DerivedData/test8-ezstbxfhpbqmxjagjamtjhijljgh/Build/Intermediates.noindex/test8.build/Debug-iphonesimulator/test8.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/<myuser>/Library/Developer/Xcode/DerivedData/test8-ezstbxfhpbqmxjagjamtjhijljgh/Build/Intermediates.noindex/test8.build/Debug-iphonesimulator/test8.build/test8-generated-files.hmap -Xcc -I/Users/<myuser>/Library/Developer/Xcode/DerivedData/test8-ezstbxfhpbqmxjagjamtjhijljgh/Build/Intermediates.noindex/test8.build/Debug-iphonesimulator/test8.build/test8-own-target-headers.hmap -Xcc -I/Users/<myuser>/Library/Developer/Xcode/DerivedData/test8-ezstbxfhpbqmxjagjamtjhijljgh/Build/Intermediates.noindex/test8.build/Debug-iphonesimulator/test8.build/test8-all-target-headers.hmap -Xcc -iquote -Xcc /Users/<myuser>/Library/Developer/Xcode/DerivedData/test8-ezstbxfhpbqmxjagjamtjhijljgh/Build/Intermediates.noindex/test8.build/Debug-iphonesimulator/test8.build/test8-project-headers.hmap -Xcc -I/Users/<myuser>/Library/Developer/Xcode/DerivedData/test8-ezstbxfhpbqmxjagjamtjhijljgh/Build/Products/Debug-iphonesimulator/include -Xcc -I/Users/<myuser>/Library/Developer/Xcode/DerivedData/test8-ezstbxfhpbqmxjagjamtjhijljgh/Build/Intermediates.noindex/test8.build/Debug-iphonesimulator/test8.build/DerivedSources-normal/x86_64 -Xcc -I/Users/<myuser>/Library/Developer/Xcode/DerivedData/test8-ezstbxfhpbqmxjagjamtjhijljgh/Build/Intermediates.noindex/test8.build/Debug-iphonesimulator/test8.build/DerivedSources/x86_64 -Xcc -I/Users/<myuser>/Library/Developer/Xcode/DerivedData/test8-ezstbxfhpbqmxjagjamtjhijljgh/Build/Intermediates.noindex/test8.build/Debug-iphonesimulator/test8.build/DerivedSources -Xcc -DDEBUG\=1 -module-name test8 -frontend-parseable-output -target-sdk-version 16.4 -o /Users/<myuser>/Library/Developer/Xcode/DerivedData/test8-ezstbxfhpbqmxjagjamtjhijljgh/Build/Intermediates.noindex/test8.build/Debug-iphonesimulator/test8.build/Objects-normal/x86_64/SceneDelegate.o -index-store-path /Users/<myuser>/Library/Developer/Xcode/DerivedData/test8-ezstbxfhpbqmxjagjamtjhijljgh/Index.noindex/DataStore -index-system-modules

</details>


# 答案1
**得分**: 1

根据 `/Library/Developer/Toolchains/swift-5.4.2-RELEASE.xctoolchain`,看起来您安装了一个辅助工具链。也许您忘记了这一点。尝试卸载它,或者至少切换到Xcode内置的工具链。(但最好卸载它;它可能太旧,不兼容此版本的Xcode。)

<details>
<summary>英文:</summary>

Judging from `/Library/Developer/Toolchains/swift-5.4.2-RELEASE.xctoolchain` it looks like you&#39;ve installed an ancillary tool chain. Perhaps you forgot you&#39;d done this.  Try uninstalling it or at least switching to the tool chain built into Xcode. (But uninstalling it would be better; it&#39;s probably too old and not compatible with this version of Xcode.)

</details>



huangapple
  • 本文由 发表于 2023年2月27日 12:11:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/75576717.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定