Swift:能够从 xcode 构建项目,但不能从命令行 xcodebuild

时间:2021-01-08 21:01:59

标签: swift xcode build xcodebuild jazzy

我正在尝试从命令行运行 xcodebuild,但出现 146 次失败!该项目是从 xcode UI 完美构建的,所以我正在努力了解这里的问题。

这是错误输出的示例:

** BUILD FAILED **


The following build commands failed:
    CompileSwift normal arm64 /Users/***/Desktop/Development/GitClones/myProject/myProject/src/Views/FuelSheetViews/FuelSheetSubviews/FuelSheetDataField.swift
    CompileSwift normal arm64 /Users/***/Desktop/Development/GitClones/myProject/myProject/src/Views/FuelSheetViews/FuelSheetDiscrepancyView.swift
    CompileSwift normal arm64 /Users/***/Desktop/Development/GitClones/myProject/myProject/src/ViewControllers/FuelOrderProgressViewController.swift
    CompileSwift normal arm64 /Users/***/Desktop/Development/GitClones/myProject/myProject/src/Models/Flight.swift
    CompileSwift normal arm64 /Users/***/Desktop/Development/GitClones/myProject/myProject/src/Models/AircraftRefuelHistory.swift
    CompileSwift normal arm64 /Users/***/Desktop/Development/GitClones/myProject/myProject/src/Models/OperationsSettings.swift
    CompileSwift normal arm64 /Users/***/Desktop/Development/GitClones/myProject/myProject/src/Views/FuelOrderBaseButtons.swift
    CompileSwift normal arm64 /Users/***/Desktop/Development/GitClones/myProject/myProject/src/Components/Cells/ColorBannerCell.swift
    CompileSwift normal arm64 /Users/***/Desktop/Development/GitClones/myProject/myProject/src/Views/FuelOrderSecondaryButtons.swift

我尝试在命令中指定更多参数,包括:

xcodebuild -project myProject.xcodeproj -scheme "meProject (Staging)"  -sdk iphoneos14.3 clean build

我认为这可能是默认 SDK 的 iOS 版本问题,但它仍然无法正常工作。任何帮助都会很棒

0 个答案:

没有答案
相关问题