简体   繁体   中英

Error using Firebase, installed with pod, on xCode 10-beta 1

I am using Firebase for my swift 3 project. I am using pod to install it. This is my pod file:

use_frameworks!

target 'Firebasetest' do

  pod 'Firebase'
  pod 'Firebase/Messaging'

end

When i run pod install , I get this error message:

[!] The Aksjeblikk [Release] target overrides the HEADER_SEARCH_PATHS build setting defined in `Pods/Target Support Files/Pods-Aksjeblikk/Pods-Aksjeblikk.release.xcconfig'. This can lead to problems with the CocoaPods installation

Use the $(inherited) flag, or
Remove the build settings from the target.

In Xcode-beta, i can't find the import Firebase option, only import FirebaseMessaging , and some other, see image: 在此输入图像描述 When i write the import Firebase , i get this error message: 在此输入图像描述 The question is: How can i import Firebase?

You've to add $(inherited) flag like so:

Go to your target Build Settings -> Other linker flags -> double click . Add `$(inherited)` to a new line.

Try and check if it works. It will most of the times.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM