【问题标题】:Unable to find a specification for `GoogleSymbolUtilities (~> 1.1)` depended upon by `FirebaseAnalytics`找不到 `FirebaseAnalytics` 依赖的`GoogleSymbolUtilities (~> 1.1)` 的规范
【发布时间】:2017-05-02 04:39:17
【问题描述】:

无法找到 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

这是错误日志

【问题讨论】:

标签: ios objective-c firebase cocoapods


【解决方案1】:

我安装了你的 podfile 并且在 iOS7 上工作正常,所以你的 pod 可能有问题尝试删除 pod 并重新安装它,因为 pod install 需要更多时间试试这个建议的解决方案https://stackoverflow.com/a/39904450/5251783,希望这对你有帮助.

【讨论】:

【解决方案2】:
 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
    }

【讨论】:

    猜你喜欢
    • 2022-06-14
    • 1970-01-01
    • 2020-07-05
    • 2019-04-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多