无法编译新的Xcode项目,出现错误:未知参数:'-前端-可解析-输出'

yhuiod9q  于 2023-03-04  发布在  其他
关注(0)|答案(1)|浏览(171)

我已经将Xcode升级到最新的Xcode 14. 2版本,无法再编译任何项目。文件-〉新应用程序项目给我同样的错误。
尝试安装Xcode 14.3 beta -相同问题。
MacOS:苹果操作系统Xcode:14.2和14.3测试版

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
lx0bsm1f

lx0bsm1f1#

/Library/Developer/Toolchains/swift-5.4.2-RELEASE.xctoolchain来看,你好像安装了一个辅助工具链。也许你忘了你已经安装了。试着卸载它或者至少切换到Xcode内置的工具链。(但是卸载它会更好;它可能太旧了,与此版本Xcode不兼容。)

相关问题