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
[SR-9669] XCTest module can't be imported during compilation #52113
Comments
IIRC XCTest only lives inside Xcode.app, so I can only think of a few options, none of them great:
I think the first option is probably best for now, if I'm correct that XCTest.framework doesn't exist inside /Library/Developer/CommandLineTools. |
— I think the first option is probably best for now, if I'm correct that XCTest.framework doesn't exist inside /Library/Developer/CommandLineTools. That is the case, yes. |
Trying to see if there's a quick fix for this. Can you let me know what (I can set up my own test machine with command line tools installed but if you happen to be around this is faster!) |
Note that some of the regression tests depend on XCTest, so a Swift built from the command line tools won't pass all the tests with this solution. I think that's correct, though; marking those tests XFAIL or UNSUPPORTED would hide the fact that some parts of the stdlib and overlays aren't being tested. (We do this in other places for things like sanitizer support, but there the things that are being tested are the things that are missing.) |
sorry for the delay .. I did not have my mac with me yesterday :/ here the outputs: $> xcrun -show-sdk-path -sdk macosx
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk $> xcrun -show-sdk-path -sdk iphonesimulator
xcrun: error: SDK "iphonesimulator" cannot be located
xcrun: error: SDK "iphonesimulator" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'iphonesimulator' I do agree that marking those tests as XFAIl or UNSUPPORTED would not be ideal. But would it be possible to hint the user that the developer dir they have selected does not include XCTest? At first it was not obvious to me why the module was not found, I had Xcode installed and believed my setup was fine :/. |
Additional Detail from JIRA
md5: f49bf0f272dcabb426ed20b3bcc35308
Issue Description:
I did a checkout of master branch of swift repo the proceeded to check dependencies:
and compilation would break with following error:
Workarounds:
@belkadan suggested in this forum post to check the following
and then :
but doing:
$> xcode-select -s /Applications/Xcode.app/Contents/Developer
before re-running build script would as well fix the issue.
The text was updated successfully, but these errors were encountered: