我在我的项目中使用 spm。当我通过 Xcode 13 构建时,我收到错误“参数列表太长”。经过一番研究,我发现标志多次重复 -F /Users/renat/DerivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks。你知道如何解决这个问题吗?
完整日志:
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'TryToReproduce' from project 'MyProject')
cd /Users/renat/Sources/MyProject
export DEVELOPER_DIR\=/Applications/Xcode-13.0.0.app/Contents/Developer
export SDKROOT\=/Applications/Xcode-13.0.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk
/Applications/Xcode-13.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc
...
-I /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator
-I /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/RxCocoa
-I /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/RxRelay
-I /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/RxSwift
-I /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/TensorFlowLiteSwift
-I /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/RxCocoa
-I /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/RxRelay
-I /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/RxSwift
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator/PackageFrameworks
-F /Users/renat/DerrivedData/Build/Products/Debug-iphonesimulator
-F /Users/renat/Sources/release-ios/ios/Pods/TensorFlowLiteC/Frameworks
-F /Users/renat/Sources/release-ios/ios/Pods/YandexMapKit
-F /Users/renat/Sources/release-ios/ios/Pods/YandexRuntime
-F /Users/renat/Sources/release-ios/ios/lib
-F /Users/renat/Sources/release-ios/iOS
...
我已经创建了一个空项目并检查了将包添加到一个空项目,问题是可重现的