<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">** BUILD SUCCEEDED **<div class=""><br class=""></div><div class="">Thank you !! :)</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Le 10 août 2017 à 18:21, Mark Lacey <<a href="mailto:mark.lacey@apple.com" class="">mark.lacey@apple.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline"><br class=""><blockquote type="cite" class=""><div class="">On Aug 10, 2017, at 8:28 AM, Trevör ANNE DENISE via swift-dev <<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello everyone,<div class=""><br class=""></div><div class=""><br class=""></div><div class="">I followed the instructions on the Swift GitHub for installing and building Swift on my Mac but there is an error that I don't know how to fix (I am using the<b class=""><span class="Apple-converted-space"> </span>build-script -x</b><span class="Apple-converted-space"> </span>command). Here is the error:</div><div class=""><br class=""></div><div class="">** BUILD FAILED **<br class=""><br class="">The following build commands failed:<br class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>PhaseScriptExecution CMake\ Rules /Users/trevorannedenise/swift-source/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/SwiftRemoteMirror/Swift.build/Debug/swiftRemoteMirror-macosx.build/Script-340A90BA4E604C08A26364A6.sh<br class="">(1 failure)<br class="">utils/build-script: fatal error: command terminated with a non-zero exit status 65, aborting</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">There are also these errors a few lines before:</div><div class="">xcodebuild: error: SDK "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk" cannot be located.<br class="">codesign_allocate: error: unable to find utility "codesign_allocate", not a developer tool or in PATH<br class="">/Users/trevorannedenise/swift-source/build/Xcode-DebugAssert/swift-macosx-x86_64/Debug/lib/swift/macosx/libswiftRemoteMirror.dylib: the codesign_allocate helper tool cannot be found or used<br class="">make: *** [/Users/trevorannedenise/swift-source/build/Xcode-DebugAssert/swift-macosx-x86_64/Debug/lib/swift/macosx/libswiftRemoteMirror.dylib] Error 1<br class="">Command /bin/sh failed with exit code 2<br class=""><br class=""></div><div class=""><b class="">I had forgot to do xcode-select, so I thought it was that but even as I selected the beta version of Xcode the error persists. What surprises me is that the utility searches for 10.12 SDK under Xcode.app which is Xcode 8 and not Xcode 9 even tough I did select Xcode 9 using xcode-select.</b></div><div class=""><b class=""><br class=""></b></div><div class="">Do you have any idea of what is happening ?</div></div></div></blockquote><div class=""><br class=""></div>It looks like you need to pass --reconfigure to build-script, in order to get it to pick up the changes to which build tools you have selected. You do this by passing it directly to build-script-impl, which is done by adding it after a pair of dashes in the command-line, e.g.:</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""> build-script -x -- --reconfigure</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">After doing this once, I would expect that a normal “build-script -x” will work in the future.</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">If for some reason this doesn’t work for you then you probably need to remove the build directory and start over.</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Mark</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><br class=""></div><div class="">Thank you</div><div class=""><br class=""></div><div class="">Trevör</div></div>_______________________________________________<br class="">swift-dev mailing list<br class=""><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-dev" class="">https://lists.swift.org/mailman/listinfo/swift-dev</a></div></blockquote></div></div></blockquote></div><br class=""></div></body></html>