[swift-corelibs-dev] XCTest Build is failing for Dev environment

Alex Blewitt alblue at apple.com
Mon Apr 24 05:47:42 CDT 2017


I'd suggest trying to run the command that failed manually and see if there's any additional error messages that get printed out:

> xcodebuild -workspace /Users/tapan/swift-source/swift-corelibs-xctest/XCTest.xcworkspace -scheme SwiftXCTest -configuration Release SWIFT_EXEC="/Users/tapan/swift-source/build/Ninja-ReleaseAssert/swift-macosx-x86_64/bin/swiftc" SWIFT_LINK_OBJC_RUNTIME=YES SYMROOT="/Users/tapan/swift-source/build/Ninja-ReleaseAssert/xctest-macosx-x86_64" OBJROOT="/Users/tapan/swift-source/build/Ninja-ReleaseAssert/xctest-macosx-x86_64"


It looks like it may be trying to link in SwiftFoundation, and failing. I'm not sure if there's any additional steps that need to be built beforehand in order to build XCTest.

Alex

> On 23 Apr 2017, at 14:56, Tapan Prakasht via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote:
> 
> Hi,
> 
> I am new to this mailing list.
> 
> I am trying to build XCtest project. I followed every step mentioned
> in the documentation.  I have executed the following command. But
> build got failed.
> 
> ../swift/utils/build-script --preset corelibs-xctest
> 
> Error:
> 
> ** BUILD FAILED **
> 
> 
> The following build commands failed:
> 	Ld /Users/tapan/swift-source/build/Ninja-ReleaseAssert/xctest-macosx-x86_64/Release/SwiftFoundation.framework/Versions/A/SwiftFoundation normal x86_64
> (1 failure)
> Traceback (most recent call last):
>   File "/Users/tapan/swift-source/swift-corelibs-xctest/build_script.py", line 526, in <module>
>     main()
>   File "/Users/tapan/swift-source/swift-corelibs-xctest/build_script.py", line 522, in main
>     parsed_args.func(parsed_args)
>   File "/Users/tapan/swift-source/swift-corelibs-xctest/build_script.py", line 98, in build
>     source_dir=SOURCE_DIR))
>   File "/Users/tapan/swift-source/swift-corelibs-xctest/build_script.py", line 31, in run
>     subprocess.check_call(command, shell=True)
>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
>     raise CalledProcessError(retcode, cmd)
> subprocess.CalledProcessError: Command 'xcodebuild -workspace /Users/tapan/swift-source/swift-corelibs-xctest/XCTest.xcworkspace -scheme SwiftXCTest -configuration Release SWIFT_EXEC="/Users/tapan/swift-source/build/Ninja-ReleaseAssert/swift-macosx-x86_64/bin/swiftc" SWIFT_LINK_OBJC_RUNTIME=YES SYMROOT="/Users/tapan/swift-source/build/Ninja-ReleaseAssert/xctest-macosx-x86_64" OBJROOT="/Users/tapan/swift-source/build/Ninja-ReleaseAssert/xctest-macosx-x86_64"' returned non-zero exit status 65
> ../swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
> ../swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
> 
> 
> My dev environment is MacOS Sierra 10.12.4 (16E195)
> Xcode 8.3.2
> 
> Can somebody help here?
> 
> Thanks,
> Tapan
> _______________________________________________
> swift-corelibs-dev mailing list
> swift-corelibs-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev



More information about the swift-corelibs-dev mailing list