当我从事ios项目时没有问题。
但是,尝试在iOS10.3上构建时出现问题,我在真实设备上测试的是11.4。到目前为止,没有问题。
10.3版本是一个问题。
错误的内容如下。
ld: warning: ignoring file /Users/***/Library/Developer/Xcode/DerivedData/****-aadwktpgbh*****f/Build/Products/Debug-iphoneos/FirebaseAuth/FirebaseAuth.framework/FirebaseAuth, building for iOS-armv7 but attempting to link with file built for iOS-arm64
ld: warning: ignoring file /Users/****/Library/Developer/Xcode/DerivedData/*****-a***/Build/Products/Debug-iphoneos/FirebaseCore/FirebaseCore.framework/FirebaseCore, building for iOS-armv7 but attempting to link with file built for iOS-arm64
ld: warning: ignoring file /Users/***/Library/Developer/Xcode/DerivedData/***-***/Build/Products/Debug-iphoneos/FirebaseCoreDiagnostics/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics, building for iOS-armv7 but attempting to link with file built for iOS-arm64
ld: warning: ignoring file /Users/***/Library/Developer/Xcode/DerivedData/****-****/Build/Products/Debug-iphoneos/FirebaseInstanceID/FirebaseInstanceID.framework/FirebaseInstanceID, building for iOS-armv7 but attempting to link with file built for iOS-arm64
ld: warning: ignoring file /Users/****/Library/Developer/Xcode/DerivedData/***-******/Build/Products/Debug-iphoneos/FirebaseMessaging/FirebaseMessaging.framework/FirebaseMessaging, building for iOS-armv7 but attempting to link with file built for iOS-arm64
ld: warning: ignoring file /Users/***/Library/Developer/Xcode/DerivedData/****-***/Build/Products/Debug-iphoneos/GoogleDataTransport/GoogleDataTransport.framework/GoogleDataTransport, building for iOS-armv7 but attempting to link with file built for iOS-arm64
ld: warning: ignoring file /Users/******/Library/Developer/Xcode/DerivedData/***-*****/Build/Products/Debug-iphoneos/GoogleDataTransportCCTSupport/GoogleDataTransportCCTSupport.framework/GoogleDataTransportCCTSupport, building for iOS-armv7 but attempting to link with file built for iOS-arm64
ld: warning: ignoring file /Users/***/Library/Developer/Xcode/DerivedData/****-******/Build/Products/Debug-iphoneos/Pods_*****.framework/Pods_********, building for iOS-armv7 but attempting to link with file built for iOS-arm64
这似乎是与FireBase
相关的错误。此问题发生在10.3。不在11.4中。存在测试限制,因为实际设备版本受到限制。
我该如何解决这个问题?
谢谢。
firebasecore/firebasecore.h' file not found
我的podFile
# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'
target 'testapp' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for DeleteMe
pod 'SwiftSVG', '~> 2.0'
pod 'Toaster'
pod 'BigInt', '~> 4.0'
pod 'CryptoSwift'
pod 'RealmSwift'
pod 'web3.swift.pod', '~> 2.2.0'
pod 'Firebase'
pod 'Firebase/Messaging'
pod 'Firebase/Auth'
pod 'Firebase/Core'
end