<div id="compose" contenteditable="true" style="padding-left: 20px; padding-right: 20px; padding-bottom: 8px;"><div>Madhu,</div><div><br></div><div>In addition the checking out the latest code in apple/swift, please run `utils/update-checkout`, in order to update the other repositories Swift depends upon.</div><div><br></div><div>I haven't been able to build OS X since Xcode 8 beta was required for the build, so I'm not sure about your specific error, unfortunately. Perhaps double-check that `xcode-select -print-path` prints out the path to Xcode 8...?</div><div><br></div><div>- Brian Gesiak</div><div><br></div><div><br></div><div><br><div class="acompli_signature"></div><br></div></div>
                <div class="gmail_quote">_____________________________<br>From: Madhu Samuel <<a dir="ltr" href="mailto:madhusamuel@gmail.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="0">madhusamuel@gmail.com</a>><br>Sent: Monday, June 20, 2016 10:22 PM<br>Subject: Re: [swift-corelibs-dev] [XCTest] Cannot build using XCode<br>To: Brian Croom <<a dir="ltr" href="mailto:brian.s.croom@gmail.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="1">brian.s.croom@gmail.com</a>><br>Cc: Brian Gesiak <<a dir="ltr" href="mailto:modocache@gmail.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="2">modocache@gmail.com</a>>, <<a dir="ltr" href="mailto:swift-corelibs-dev@swift.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="3">swift-corelibs-dev@swift.org</a>><br><br><br><div dir="ltr">So after spending almost a week trying to build swift and core libraries (mainly xctest) during the end of May un-successfully, I made up my mind to give another attempt today.<div><br></div><div>I checkout the latest code from swift repo. Since the xctest documentation says, "Confirm you're able to build the Swift project using utils/build-script -R", that's where I started. </div><div><br></div><div>Unfortunately, build-script -R gives the below error.</div><div><br></div><div><unknown>:0: error: Swift does not support the SDK 'MacOSX10.11.sdk'<br></div><div><br></div><div><br></div><div>My active developer directory is '/Applications/Xcode-beta.app/Contents/Developer'.</div><div>The toolchain is 'Xode 8.0'</div><div><br></div><div>The build is taken in Mac OSX El Capitan 10.11.4</div><div><br></div><div>Let me know whether I miss anything? I assume getting the build working for the first time is the hardest, but there I am!</div><div><br></div><div>Any help is appreciated!</div><div><br></div><div>Regards,<br>Madhu</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 30, 2016 at 8:32 AM, Madhu Samuel <span dir="ltr"><<a href="mailto:madhusamuel@gmail.com">madhusamuel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p><span>Wow, that was a quick response. Thanks Brian Gesiak and Brian Croom. </span></p><p><span>My first quick attempt using build-toolchain script to build my own tool chain failed. Anyway I will give it another try and let you know the status.</span></p></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 30, 2016 at 1:52 AM, Brian Croom <span dir="ltr"><<a href="mailto:brian.s.croom@gmail.com">brian.s.croom@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">That's right, breaking changes have been made to Swift since the latest toolchain snapshot was released, and Corelibs Foundation has been updated accordingly.<div><br></div><div>Until the next snapshot, an alternative to building your own toolchain would be to check out an older commit of Foundation which still builds with the compiler in the snapshot toolchain<span></span>, since XCTest doesn't depend on any of the more recent Foundation changes. I've had success using this commit: <a href="https://github.com/apple/swift-corelibs-foundation/commit/04d4f92870652160388f1c69de3fd7bb0656860c">https://github.com/apple/swift-corelibs-foundation/commit/04d4f92870652160388f1c69de3fd7bb0656860c</a> </div><span><font color="#888888"><div><br></div></font></span><div><span><font color="#888888">--Brian</font></span><div><div><br><br>söndag 29 maj 2016 skrev Brian Gesiak via swift-corelibs-dev <<a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a>>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Madhu,</div><div><br></div><div>Oy, my bad -- I only just noticed you put the toolchain version at the bottom of your original email.</div><div><br></div><div>It's possible the May 9th toolchain is already too old to build XCTest. I'll double-check myself. In the meantime, you may want to try building your own toolchain and using that.</div><div><br></div><div>- Brian Gesiak<br><br><div></div><br></div><br><br><br><div class="gmail_quote">On Sun, May 29, 2016 at 7:23 AM -0700, "Brian Gesiak" <span dir="ltr"><<a><a dir="ltr" href="mailto:modocache@gmail.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="9">modocache@gmail.com</a></a>></span> wrote:<br><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="3D"ltr""><div>Madhu,</div><div><br></div><div>Thanks for the report!</div><div><br></div><div>The main difference between the build scripts (which use xcodebuild) and using Xcode itself is the version of Swift that is used. The build scripts build a Swift 3.0 compiler, then use that to build XCTest. When using Xcode directly, you need to select a recent Swift toolchain yourself.</div><div><br></div><div>Which Swift toolchain are you using to compile XCTest in Xcode?</div><div><br></div><div>Our tests only make sure apple/swift master works. If the latest Swift toolchain from <a dir="ltr" href="http://swift.org">http://swift.org</a> doesn't work, you may have to built your own toolchain. You can do so using the `utils/build-toolchain` script in the Swift repository.</div><div><br></div><div>Once you figure out your Swift toolchain version, let us know! You should be able to find out in the preferences pane in Xcode.</div><div><br></div><div>- Brian Gesiak</div><div><br><div></div><br></div><br><br><br><div class="gmail_quote">On Sun, May 29, 2016 at 1:24 AM -0700, "Madhu Samuel via swift-corelibs-dev" <span dir="ltr"><<a><a dir="ltr" href="mailto:swift-corelibs-dev@swift.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="12">swift-corelibs-dev@swift.org</a></a>></span> wrote:<br><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="3D"ltr""><div dir="ltr"><div><div>Hi All,</div><div><br></div><div>I am new to this forum. </div><div><br></div><div>I am trying to build the xctest project. I followed the instructions at <a href="https://github.com/apple/swift-corelibs-xctest">https://github.com/apple/swift-corelibs-xctest</a></div><div><br></div><div>I am able to successfully build via the build scripts. But, if I build XCTest using xcode using the SwiftXCTest scheme I am getting a few errors. </div><div><br></div><div>1. swift-corelibs-foundation/Foundation/NSXMLDTDNode.swift:242:64: error: cannot convert value of type 'UnsafeMutablePointer<Void>' (aka 'UnsafeMutablePointer<()>') to expected argument type 'OpaquePointer'</div><div> let unmanaged = Unmanaged<NSXMLDTDNode>.fromOpaque(privateData)</div><div><br></div><div>2. swift-corelibs-foundation/Foundation/NSTimer.swift:14:47: error: cannot convert value of type 'UnsafeMutablePointer<Void>' (aka 'UnsafeMutablePointer<()>') to expected argument type 'OpaquePointer'</div><div> let t = Unmanaged<NSTimer>.fromOpaque(info!).takeUnretainedValue()</div><div><br></div><div>etc.</div><div><br></div><div>My dev environment, </div><div>OS: Mac OSX El Capitan 10.11.4 (15E65).</div><div>Xcode Version: Version 7.3.1 (7D1014)</div><div>XCode Toolchain: Swift Development Snapshot 2016-05-09 (a)</div><div><br></div><div>Any help is appreciated.</div><div><br></div><div>Regards,</div><div>Madhu</div><div><br></div><div><br></div></div></div></div></blockquote></div></div></blockquote></div></div></blockquote></div></div></div></blockquote></div><br></div></div></div></blockquote></div><br></div><br><br></div>