Ahmed-Ali / Cucumberish

Cucumberish is test automation framework for Behaviour Driven Development. It is inspired by the amazing way of writing automated test cases introduced originally by Cucumber using Gherkin language
MIT License
344 stars 83 forks source link

In the "Install Manually for Swift" page you need to add @objc in Swift 4 and above #134

Open cortis opened 3 years ago

cortis commented 3 years ago

With Swift 4 and higher you need to change the code for the CucumberInitializer to include the @objc tag like the following

import Foundation
        @objc class CucumberishInitializer: NSObject {
            @objc class func CucumberishSwiftInit()

Otherwise you'll get an error that CucumberishSwiftInit() is not a method on CucumberishInitializer

zhaoxh11 commented 2 years ago

Hi, will you encounter the issue No such module 'Cucumberish' in file CucumerishInitiallzer.swift.