-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix NSString compile error on linux #94
Conversation
I think a better solution would be to directly use the |
@djbe Sorry, I was in a rush to solve the compilation issue that I didn't see what the function was about. You may discard this pr if you want to solve it using |
Oh no, you can just update your PR to create a Note: don't forget to add a changelog entry for your changes, see https://github.com/SwiftGen/SwiftGen/blob/master/CONTRIBUTING.md#requirements--conventions. |
@djbe I still think that the better solution would be to go with If you still think Let me know what you think. |
Even if |
@AliSoftware Sure!. I will update the PR to use |
One of the test fails when calculating According to https://linux.die.net/man/1/dirname, Its the expectation which is wrong. |
Behavior on If they are the same and both return If they are different in practice today just because they are based on different methods for each OS and those OS methods (on which we don't really have control over) behave differently too, I don't know what's the best approach (respect the convention depending on the OS, like Anyway, we have to ensure that we make the tests pass on all platforms and not just one (I don't remember if CircleCI is already configured to test on all platforms on this project already?) |
We test stencilswiftkit on linux, we don't test swiftgen yet (because SPM reasons). I think matching the platform behaviour would be best? We'll have to add a platform check in the tests ( |
@AliSoftware @djbe The behaviour of |
Oh, then just update the test 😄 |
@djbe Let me know if there are any more changes required. Everything seems to pass now ✌🏻 |
Cool, thank you for your contribution! |
Reference: https://stackoverflow.com/questions/37293388/cannot-convert-value-of-type-string-to-type-nsstring-in-coercion-when-i-use