drmohundro / SWXMLHash

Simple XML parsing in Swift
MIT License
1.41k stars 205 forks source link

Ambiguous use of 'Element' #217

Closed rahul-apple closed 5 years ago

rahul-apple commented 5 years ago

Ambiguous use of 'Element' error on Building Project

To Reproduce Steps to reproduce the behavior:

  1. Adding SWXMLHash via cocoa pods
  2. Build the project
  3. Shows errors with Ambiguous use of 'Element'
  4. See error

Screenshots image

Environment:

drmohundro commented 5 years ago

Can you also post what your Podfile looks like? Thanks!

drmohundro commented 5 years ago

I think this is from an old version of SWXMLHash... if you're on Xcode 10 with Swift 5+, make sure your Podfile is targeting 5.0.0. Like so:

pod 'SWXMLHash', '~> 5.0.0'

See also #140.

rahul-apple commented 5 years ago

@drmohundro 👍 It was an issue with old Xcode