Uploaded image for project: 'Swift'
  1. Swift
  2. SR-1165

Swift 3 importer creates duplicate XCTest.run() methods

    XMLWordPrintable

    Details

      Description

      I used swift-api-dump.py to generate XCTest.framework headers:

      $ export SWIFT_BIN_DIR="/path/to/build/Ninja-ReleaseAssert/swift-macosx-x86_64/bin"
      $ $SWIFT_BIN_DIR/swift-api-dump.py -s macosx -m XCTest \
          --framework-dir /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/
      

      Using a recent commit of Swift (https://github.com/apple/swift/commit/fc86f6e86ef5405756e0052e27dae1830e3d33bc), the importer generates two XCTestCase.run() definitions:

      class XCTest : NSObject {
        // ...
        @available(*, deprecated)
        func run() -> XCTestRun
        func run()
      }
      

      These two should be disambiguated by being given different names. Alternatively, the deprecated run() method could be removed--although I'd expect you'd need to confirm with the Apple XCTest team that this is OK.

        Attachments

          Activity

            People

            Assignee:
            modocache Brian Ivan Gesiak
            Reporter:
            modocache Brian Ivan Gesiak
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: