我正在尝试将Firebase包含在链接到应用程序的框架目标中。当我将Firebase包含在框架目标中时,它不会编译应用程序,当我将Firebase包含到App和框架时,我会看到以下警告。
objc[25463]: Class FIRAAppEnvironmentUtil is implemented in both /Users/User/Library/Developer/Xcode/DerivedData/TestApp-bldxbgfroizmdggroxupwpsxowvt/Build/Products/Debug-iphonesimulator/AppUIKit.framework/AppUIKit (0x109078e98) and /Users/User/Library/Developer/Xcode/DerivedData/TestApp-bldxbgfroizmdggroxupwpsxowvt/Build/Products/Debug-iphonesimulator/AppKit.framework/AppKit (0x108effdb8). One of the two will be used. Which one is undefined.
以下是我的Pod文件
platform :ios, '9.0'
pod 'Firebase', '~> 3.6'
pod 'Firebase/RemoteConfig', '~> 3.6'
target 'AppKit' do
use_frameworks!
pod 'Alamofire', '~> 4.0'
target 'AppKitTests' do
inherit! :search_paths
# Pods for testing
end
end
target 'AppUIKit' do
use_frameworks!
# Pods for AppUIKit
target 'AppUIKitTests' do
inherit! :search_paths
# Pods for testing
end
end
target 'TestApp' do
use_frameworks!
# Pods for TestApp
target 'TestAppTests' do
inherit! :search_paths
# Pods for testing
end
end