[英]Error using Firebase, installed with pod, on xCode 10-beta 1
I am using Firebase for my swift 3 project. 我正在使用Firebase进行我的swift 3项目。 I am using pod to install it.
我正在使用pod来安装它。 This is my pod file:
这是我的pod文件:
use_frameworks!
target 'Firebasetest' do
pod 'Firebase'
pod 'Firebase/Messaging'
end
When i run pod install
, I get this error message: 当我运行
pod install
,我收到此错误消息:
[!] The
Aksjeblikk [Release]
target overrides theHEADER_SEARCH_PATHS
build setting defined in `Pods/Target Support Files/Pods-Aksjeblikk/Pods-Aksjeblikk.release.xcconfig'.[!]
Aksjeblikk [Release]
目标覆盖了“Pods / Target Support Files / Pods-Aksjeblikk / Pods-Aksjeblikk.release.xcconfig”中定义的HEADER_SEARCH_PATHS
构建设置。 This can lead to problems with the CocoaPods installation这可能导致CocoaPods安装出现问题
Use the
$(inherited)
flag, or使用
$(inherited)
标志,或
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: 在Xcode-beta中,我找不到
import Firebase
选项,只import FirebaseMessaging
,还有其他一些,请参阅图片: When i write the
import Firebase
, i get this error message: 当我写入
import Firebase
,我收到以下错误消息: The question is: How can i import Firebase?
问题是:我如何导入Firebase?
You've to add $(inherited)
flag like so: 你要添加
$(inherited)
标志,如下所示:
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.
它大部分时间都是如此。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.