无法找到`GoogleSymbolUtilities(〜> 1.1)的规范``FirebaseAnalytics所依赖的`

时间:2016-12-16 11:30:21

标签: ios objective-c firebase cocoapods

无法找到GoogleSymbolUtilities (~> 1.1)所依赖的FirebaseAnalytics规范我在尝试安装firebase pod文件时遇到此错误。

我已经尝试过此解决方案pod repo update --verbose

# Uncomment the next line to define a global platform for your project
 platform :ios, '7.0'

target 'Rehabtask' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  use_frameworks!

  # Pods for Rehabtask

  target 'RehabtaskTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'RehabtaskUITests' do
    inherit! :search_paths
    # Pods for testing
  end

pod 'Firebase'

end

这是错误日志

Error

2 个答案:

答案 0 :(得分:1)

我安装了你的podfile并且可以正常使用iOS7,所以你的pod中可能有错误尝试删除pod并再次安装它,因为pod安装花费更多时间尝试这个建议解决方案https://stackoverflow.com/a/39904450/5251783,希望这个帮助你。

答案 1 :(得分:0)

 func PracticalTask(){
        let string1 : NSString = txtfirst.text! as NSString
        let string2 : NSString = txtSecond.text! as NSString
        let alphaNumericCharacterSet = string1.description.removeCharacters(from: "0123456789")
        print("no digits",alphaNumericCharacterSet) // will print: Vishal
        var result = ""
        string1.enumerateSubstrings(in: NSRange(location: 0, length: string1.length), options: .byComposedCharacterSequences, using: { substring, substringRange, enclosingRange, stop in

            if string2.length >= substringRange.upperBound{
                if !string2.substring(with: substringRange).contains((substring?.characters.first)!){
                    result = result + substring!
                }
            }else{
                result = result + substring!
            }

        })
        string2.enumerateSubstrings(in: NSRange(location: 0, length: string2.length), options: .byComposedCharacterSequences, using: { substring, substringRange, enclosingRange, stop in
            if string1.length >= substringRange.upperBound{
                print(string1.substring(with: substringRange))
                if !string1.substring(with: substringRange).contains((substring?.characters.first)!){
                   result = result + substring!
                }
            }else{
                 result = result + substring!
            }

        })

        print("String after removed duplicate characters : \(result)")
        lblresult.text = result
    }