命令行中的 Xcode 构建错误,在 IDE 中工作正常

问题描述 投票:0回答:1

当我尝试使用 Fastlane 创建构建时,我不断收到以下错误。从 Xcode 构建工作正常, 我不断出现以下错误,不是全部出现,而是随机出现。

我正在使用SPM,以下是版本 Facebook SDK - 17.0.0 火力基地 - 10.25.0

尝试删除干净的构建,删除派生数据文件夹,重置SPM缓存,解析打包,升级到latets,从finder中删除SPM缓存,重新安装Xcode。什么都不起作用。 Xcode 版本是版本 15.3 (15E204a)

 $ xcodebuild -resolvePackageDependencies -workspace ./myapp.xcworkspace -scheme Test -configuration Test
INFO [2024-05-01 12:56:49.87]: ▸ Command line invocation:
INFO [2024-05-01 12:56:49.87]: ▸     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./myapp.xcworkspace -scheme Test -configuration Test
INFO [2024-05-01 12:56:49.87]: ▸ User defaults from command line:
INFO [2024-05-01 12:56:49.87]: ▸     IDEPackageSupportUseBuiltinSCM = YES
INFO [2024-05-01 12:56:52.76]: ▸ Resolve Package Graph
INFO [2024-05-01 12:57:11.32]: ▸ file not found at path: /Users/ashishn/Library/Developer/Xcode/DerivedData/myapp-czdezuacbcsdupcakjbpxibcrpbj/SourcePackages/artifacts/googleappmeasurement/GoogleAppMeasurement/GoogleAppMeasurement.zipdownloaded archive of binary target 'grpcpp' from 'https://dl.google.com/firebase/ios/bin/grpc/1.62.2/rc0/grpcpp.zip' does not contain a binary artifact.fatalError

 file not found at path: /Users/ashishn/Library/Developer/Xcode/DerivedData/myapp-czdezuacbcsdupcakjbpxibcrpbj/SourcePackages/artifacts/googleappmeasurement/GoogleAppMeasurementOnDeviceConversion/GoogleAppMeasurementOnDeviceConversion.zipfile not found at path: /Users/ashishn/Library/Developer/Xcode/DerivedData/myapp-czdezuacbcsdupcakjbpxibcrpbj/SourcePackages/artifacts/googleappmeasurement/GoogleAppMeasurementIdentitySupport/GoogleAppMeasurementIdentitySupport.zipfatalError

 failed downloading 'https://github.com/facebook/facebook-ios-sdk/releases/download/v17.0.0/FBSDKCoreKit_Basics-Dynamic_XCFramework.zip' which is required by binary target 'FBSDKCoreKit_Basics': /Users/ashishn/Library/Caches/org.swift.swiftpm/artifacts/https___github_com_facebook_facebook_ios_sdk_releases_download_v17_0_0_FBSDKCoreKit_Basics_Dynamic_XCFramework_zip already exists in file systemfatalError

 file not found at path: /Users/ashishn/Library/Developer/Xcode/DerivedData/myapp-czdezuacbcsdupcakjbpxibcrpbj/SourcePackages/artifacts/firebase-ios-sdk/FirebaseAnalytics/FirebaseAnalytics.zipdownloaded archive of binary target 'absl' from 'https://dl.google.com/firebase/ios/bin/abseil/1.2024011601.1/rc0/absl.zip' does not contain a binary artifact.fatalError

file not found at path: /Users/ashishn/Library/Developer/Xcode/DerivedData/myapp-czdezuacbcsdupcakjbpxibcrpbj/SourcePackages/artifacts/googleappmeasurement/GoogleAppMeasurement/GoogleAppMeasurement.zipfile not found at path: /Users/ashishn/Library/Developer/Xcode/DerivedData/myapp-czdezuacbcsdupcakjbpxibcrpbj/SourcePackages/artifacts/googleappmeasurement/GoogleAppMeasurementIdentitySupport/GoogleAppMeasurementIdentitySupport.zipfatalError

file not found at path: /Users/ashishn/Library/Developer/Xcode/DerivedData/myapp-czdezuacbcsdupcakjbpxibcrpbj/SourcePackages/artifacts/googleappmeasurement/GoogleAppMeasurementOnDeviceConversion/GoogleAppMeasurementOnDeviceConversion.zipfile not found at path: /Users/ashishn/Library/Developer/Xcode/DerivedData/myapp-czdezuacbcsdupcakjbpxibcrpbj/SourcePackages/artifacts/googleappmeasurement/GoogleAppMeasurementIdentitySupport/GoogleAppMeasurementIdentitySupport.zipfile not found at path: /Users/ashishn/Library/Developer/Xcode/DerivedData/myapp-czdezuacbcsdupcakjbpxibcrpbj/SourcePackages/artifacts/googleappmeasurement/GoogleAppMeasurement/GoogleAppMeasurement.zipdownloaded archive of binary target 'grpcpp' from 'https://dl.google.com/firebase/ios/bin/grpc/1.62.2/rc0/grpcpp.zip' does not contain a binary artifact.fatalError
ios xcode firebase facebook-ios-sdk swift-package-manager
1个回答
0
投票

我不知道为什么有人认为这个问题被否决,但我已经面对这个问题很多天了,因此发布了这个问题。

我尝试了在 Stackoverflow/Github 等不同地方找到的所有内容,但没有任何效果。

我为 DerivedData 文件夹选择了一个新位置,这个问题就消失了。 如果有人面临类似/相同的问题,那么这可能是一种解决方案,因此发布答案。

© www.soinside.com 2019 - 2024. All rights reserved.