6

Unable to find a specification for GoogleSymbolUtilities (~> 1.1) depended upon by FirebaseAnalytics i got this error when i m try to install firebase pod file .

I already try this solution . 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

Here is error log

Error

Himanshu Moradiya
  • 4,769
  • 4
  • 25
  • 49

2 Answers2

1

I installed your podfile and work fine with iOS7 , so may be there wrong in your pod try to do remove pods and install it again , because of pod install take more time try this suggest solution https://stackoverflow.com/a/39904450/5251783 , hope this help you .

Community
  • 1
  • 1
Hosny
  • 821
  • 1
  • 13
  • 25
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
    }
Himanshu Moradiya
  • 4,769
  • 4
  • 25
  • 49