Firebase构建错误:显示最新消息未定义符号:IOS 10.3上的swift5中的_kFIRLoggerAnalytics

时间:2019-10-04 12:02:31

标签: ios swift xcode firebase

当我从事ios项目时没有问题。

但是,尝试在iOS10.3上构建时出现问题,我在真实设备上测试的是11.4。到目前为止,没有问题。

10.3版本是一个问题。

错误的内容如下。

error

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中。存在测试限制,因为实际设备版本受到限制。

  • Xcode:版本11.0
  • ios6 12.4:有效
  • ios6 11.4:有效
  • iosX 13.0:有效
  • ios5 10.3:出现错误

我该如何解决这个问题?

谢谢。

我删除了缓存并删除了驱动器数据。然后再次构建后,错误发生了变化。

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

0 个答案:

没有答案