-
-
Notifications
You must be signed in to change notification settings - Fork 595
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
Cannot convert value of type 'FileString' (aka 'String') to expected argument type 'StaticString #598
Comments
We use Nimble/Sources/Nimble/Utils/SourceLocation.swift Lines 3 to 12 in 5eccb95
So you could use Nimble/Sources/Nimble/Adapters/NimbleXCTestHandler.swift Lines 75 to 91 in b6f0a7b
|
Oh You could use |
Thanks. I loaded up the Nimble code downloaded via Carthage and saw that code but I wasn't sure I understood the problem it was solving. I'm running in Xcode against a iOS simulator so I just assumed that FileString would be correct. I'll try the code you suggested and see how it goes. Thanks. |
I ended up staying on the release code and using:
Which is working just fine for me. Thanks for pointing me at that code. |
What did you do?
Am trying to write a custom AssertionHandler for testing some test support functions that generate
Nimble failures. In that code tried to do this:
What did you expect to happen?
The code should compile.
What actually happened instead?
The compile failed with:
Cannot convert value of type 'FileString' (aka 'String') to expected argument type 'StaticString'
Discussion
I found a previous issue (#242) which is this exact problem. The comment log in that suggested to me that it had been fixed, but it appears not.
Environment
List the software versions you're using:
Quick: None, using XCTest
Nimble: 7.1.3
Xcode Version: 10.0 beta 6 (10L232m)
Swift Version: 4.2
Carthage: 0.30.1
The text was updated successfully, but these errors were encountered: