gpt4 book ai didi

ios - Pod文件在一段时间后不断消失

转载 作者:行者123 更新时间:2023-12-01 21:22:00 26 4
gpt4 key购买 nike

我在我的项目中安装了 IronSourceSDK pod 文件,并且一切都编译和运行良好。但是,当我完成一天并在第二天拿起它时,我总是会收到一个编译错误,即缺少该文件的 pod -

:0: error: error opening input file '.../Pods/IronSourceSDK/IronSource/IronSource.framework/Versions/A/Headers/IronSource.h' (No such file or directory)


所以我每天都重新安装 pods ,直到第二天恢复正常。
我之前使用过 Firebase SDK,并且曾经发生过完全相同的事情。
是什么导致了这个头文件的删除?
编辑 :
根据要求,这是我的 Podfile 的样子:
 platform :ios, '10.0'

target 'testGame' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for testGame

pod 'IronSourceSDK','6.17.0.0'
pod 'IronSourceAdMobAdapter','4.3.12.0'
pod 'IronSourceFacebookAdapter','4.3.16.0'
pod 'SVProgressHUD'
pod 'FBAudienceNetwork'
pod 'Firebase/Core'

target 'testGameTests' do
inherit! :search_paths
# Pods for testing
end

target 'testGameUITests' do
# Pods for testing
end

end
编辑 2 :
这是错误日志:
PrecompileSwiftBridgingHeader normal arm64 (in target 'testGame' from project 'testGame')
cd /Users/admin/Documents/Projects/testGame
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -target arm64-apple-ios11.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -I /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos -F /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos -F /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/FBSDKCoreKit -F /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/FirebaseCore -F /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/FirebaseCoreDiagnostics -F /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/FirebaseInstallations -F /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/GoogleDataTransport -F /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/GoogleDataTransportCCTSupport -F /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/GoogleUtilities -F /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/PromisesObjC -F /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/SVProgressHUD -F /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/nanopb -F /Users/admin/Documents/Projects/testGame/Pods/FBAudienceNetwork/Static -F /Users/admin/Documents/Projects/testGame/Pods/FirebaseAnalytics/Frameworks -F /Users/admin/Documents/Projects/testGame/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current -F /Users/admin/Documents/Projects/testGame/Pods/GoogleAppMeasurement/Frameworks -F /Users/admin/Documents/Projects/testGame/Pods/IronSourceAdMobAdapter/ISAdMobAdapter -F /Users/admin/Documents/Projects/testGame/Pods/IronSourceFacebookAdapter/ISFacebookAdapter -F /Users/admin/Documents/Projects/testGame/Pods/IronSourceSDK/IronSource -enable-testing -g -module-cache-path /Users/admin/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 4.2 -enforce-exclusivity=checked -Onone -D DEBUG -serialize-debugging-options -Xcc -working-directory -Xcc /Users/admin/Documents/Projects/testGame -enable-anonymous-context-mangled-names -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Intermediates.noindex/testGame.build/Debug-iphoneos/testGame.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Intermediates.noindex/testGame.build/Debug-iphoneos/testGame.build/testGame-generated-files.hmap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Intermediates.noindex/testGame.build/Debug-iphoneos/testGame.build/testGame-own-target-headers.hmap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Intermediates.noindex/testGame.build/Debug-iphoneos/testGame.build/testGame-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Intermediates.noindex/testGame.build/Debug-iphoneos/testGame.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Intermediates.noindex/testGame.build/Debug-iphoneos/testGame.build/testGame-project-headers.hmap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/include -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/FBSDKCoreKit/FBSDKCoreKit.framework/Headers -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/FirebaseCore/FirebaseCore.framework/Headers -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/FirebaseCoreDiagnostics/FirebaseCoreDiagnostics.framework/Headers -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/FirebaseInstallations/FirebaseInstallations.framework/Headers -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/GoogleDataTransport/GoogleDataTransport.framework/Headers -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/GoogleDataTransportCCTSupport/GoogleDataTransportCCTSupport.framework/Headers -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/GoogleUtilities/GoogleUtilities.framework/Headers -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/PromisesObjC/FBLPromises.framework/Headers -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/SVProgressHUD/SVProgressHUD.framework/Headers -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Products/Debug-iphoneos/nanopb/nanopb.framework/Headers -Xcc -I/Users/admin/Documents/Projects/testGame/Pods/Headers/Public -Xcc -I/Users/admin/Documents/Projects/testGame/Pods/Headers/Public/Firebase -Xcc -I/Users/admin/Documents/Projects/testGame/Pods/Firebase/CoreOnly/Sources -Xcc -I/Sources/FBLPromises/include -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Intermediates.noindex/testGame.build/Debug-iphoneos/testGame.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Intermediates.noindex/testGame.build/Debug-iphoneos/testGame.build/DerivedSources/arm64 -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Intermediates.noindex/testGame.build/Debug-iphoneos/testGame.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -DDEBUG=1 -Xcc -DFBSDKCOCOAPODS=1 -Xcc -DDEBUG=1 -Xcc -DPB_FIELD_32BIT=1 -Xcc -DPB_NO_PACKED_STRUCTS=1 -Xcc -DPB_ENABLE_MALLOC=1 -serialize-diagnostics-path /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Intermediates.noindex/PrecompiledHeaders/IronSource-2INEYF37VVZFN.dia /Users/admin/Documents/Projects/testGame/Pods/IronSourceSDK/IronSource/IronSource.framework/Versions/A/Headers/IronSource.h -index-store-path /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Index/DataStore -emit-pch -pch-output-dir /Users/admin/Library/Developer/Xcode/DerivedData/testGame-hjvcsuwthrlgqvgzoiwufxyfpede/Build/Intermediates.noindex/PrecompiledHeaders

最佳答案

问题是由于之前的设备迁移,项目文件夹被错误地存储在 iCloud 驱动器中。通过每次插入移动设备进行测试,数据备份尝试刷新 Pod 文件但找不到它们,因此它们卡在状态 - “等待下载,然后 Xcode 无法识别。
本地化项目文件夹和删除云依赖解决了这个问题。

关于ios - Pod文件在一段时间后不断消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63729090/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com