<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="">One step closer :) I built a master version the toolchain, fixed most errors, but left with own a few:<div class=""><br class=""></div><div class=""><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Foundation/NSRunLoop.swift:14:43: error: type 'CFRunLoopActivity' has no member 'BeforeTimers'</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">&nbsp; &nbsp; internal let kCFRunLoopBeforeTimers = CFRunLoopActivity.BeforeTimers.rawValue</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; line-height: normal;" class="">Of course, this is happening because the new version of ClangImporter is now importing enum values with lowerCamelCase. It’s beforeTimers, not BeforeTimers. I can fix it, but was wondering if it was in need of fixing or if I had built the toolchain with the wrong branch of swift.</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; line-height: normal;" class="">David.</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 14 Mar 2016, at 06:44, Brian Gesiak &lt;<a href="mailto:modocache@gmail.com" class="">modocache@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">
    <div id="compose" style="padding-left: 20px; padding-right: 20px; padding-bottom: 8px;" class="" applecontenteditable="true"><div class="">Taylor,</div><div class=""><br class=""></div><div class="">Funny you should mention that. The tests take a long time to run, and I don't really mind if a local toolchain I use has one or two failing tests. So I delete these two lines before building a toolchain: <a dir="ltr" href="https://github.com/apple/swift/blob/a11e911f662c02c14e28286d76d154370ce5f5e1/utils/build-presets.ini#L711-L712" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="0" class="">https://github.com/apple/swift/blob/a11e911f662c02c14e28286d76d154370ce5f5e1/utils/build-presets.ini#L711-L712</a></div><div class=""><br class=""></div><div class="">That disables the tests. Your toolchain builds much faster, but beware: you may have a bug or two in there! ;)</div><div class=""><br class=""></div><div class="">- Brian Gesiak</div><div class=""><br class=""><div class="acompli_signature"></div><br class=""></div></div>
    <div class="gmail_quote">_____________________________<br class="">From: Taylor Franklin &lt;<a dir="ltr" href="mailto:taylorleefranklin@gmail.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="2" class="">taylorleefranklin@gmail.com</a>&gt;<br class="">Sent: Monday, March 14, 2016 12:37 AM<br class="">Subject: Re: [swift-corelibs-dev] Building Foundation in Xcode<br class="">To: Brian Gesiak &lt;<a dir="ltr" href="mailto:modocache@gmail.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="5" class="">modocache@gmail.com</a>&gt;<br class="">Cc: Pushkar N Kulkarni &lt;<a dir="ltr" href="mailto:pushkar.nk@in.ibm.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="7" class="">pushkar.nk@in.ibm.com</a>&gt;,  &lt;<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="8" class="">swift-corelibs-dev@swift.org</a>&gt;, David Hart &lt;<a dir="ltr" href="mailto:david@hartbit.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="9" class="">david@hartbit.com</a>&gt;<br class=""><br class=""><br class="">    <div dir="ltr" class="">   Brian,   <div class="">    <br class="">   </div>   <div class="">    I have also been having issues, so I tried your suggestions and I cannot even get a toolchain built on the Swift master branch. I also tried the&nbsp;swift-3-api-guidelines branch, assuming that is where the Swift 3 code lives.   </div>   <div class="">    <br class="">   </div>   <div class="">    Anyway, I get the error:   </div>   <div class="">    <font face="monospace, monospace" class="">Failing Tests (1):</font>   </div>   <div class="">    <font face="monospace, monospace" class="">&nbsp; &nbsp; Swift :: Driver/filelists.swift</font>   </div>   <div class="">    <br class="">   </div>   <div class="">    Does the build-toolchain script take certain parameters or have other prerequisites?   </div>   <div class="">    Thanks for any help.   </div>   <div class="">    <br class="">   </div>   <div class="">    - Taylor   </div>  </div>  <div class="gmail_extra">   <br class="">   <div class="gmail_quote">    On Sun, Mar 13, 2016 at 2:34 PM, Brian Gesiak via swift-corelibs-dev     <span dir="ltr" class="">&lt;<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>&gt;</span> wrote:    <br class="">    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">     <div class="">      <div class="">       David,      </div>      <div class="">       <br class="">      </div>      <div class="">       The repository has been migrated to Swift 3. You'll need a Swift 3 .xctoolchain to build it. There isn't a snapshot available yet, but you can build your own using the script added to Swift in        <a dir="ltr" href="https://github.com/apple/swift/pull/1630" class="">https://github.com/apple/swift/pull/1630</a>.      </div>      <div class="">       <br class="">      </div>      <div class="">       Even using the Swift 3 toolchain, I encountered build errors related to NSRunLoop. Applying        <a dir="ltr" href="https://github.com/apple/swift-corelibs-foundation/pull/284" class="">https://github.com/apple/swift-corelibs-foundation/pull/284</a> got everything working for me.      </div>      <div class="">       <br class="">      </div>      <div class="">       Hope that helps!      </div>      <div class="">       <br class="">      </div>      <div class="">       - Brian Gesiak      </div>      <div class="">       <div class="h5">        <br class="">        <br class="">        <br class="">         <div class="gmail_quote">         On Sun, Mar 13, 2016 at 12:31 PM -0700, "David Hart"          <span dir="ltr" class="">&lt;<a href="mailto:david@hartbit.com" class="">david@hartbit.com</a>&gt;</span> wrote:         <br class="">          <br class="">          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">           <div dir="3D&quot;ltr&quot;" class="">            Ok, I’m also encountering errors, but many more than Pushkar:           <div class="">            <ul class="">             <li class="">OS: OS X El Capitan</li>             <li class="">Xcode: Version 7.3 beta 5 (7D162j)</li>             <li class="">Toolchain: Xcode Swift DEVELOPMENT Snapshot 2016-03-01 (a)</li>            </ul>           </div>           <div class="">            And the errors I’m getting seem to come from a mismatch with the Standard Library:           </div>           <div class="">            <div style="margin:0px 0px 0px 12px;line-height:normal" class="">             <ul class="">              <li class="">Foundation/FoundationErrors.swift:10:48: Use of undeclared type ‘ErrorProtocol'</li>              <li class="">Foundation/NSString.swift:1220:55: Use of undeclared type ‘CVarArg’</li>              <li class="">Foundation/NSData.swift:18:38: Use of undeclared type ‘OptionSet’</li>              <li class="">Foundation/NSNotification.swift:95:11: Use of undeclared type ‘Sequence'</li>              <li class="">&nbsp;...</li>             </ul>            </div>           </div>           <div class="">            Any ideas what I’m doing wrong?           </div>           <div class="">            <br class="">            <div class="">             <blockquote class="">              <div class="">               On 03 Mar 2016, at 20:01, Pushkar N Kulkarni via swift-corelibs-dev &lt;               <a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>&gt; wrote:              </div>              <br class="">              <div class="">               <font face="Verdana,Arial,Helvetica,sans-serif" size="2" class="">                <div class="">                 Brian, Philippe - Thanks for your prompt responses!&nbsp;                </div>                <div class="">                 <br class="">                </div>                <div class="">                 You were right, I was using the&nbsp;                 <span style="font-family:Menlo;font-size:14px" class="">2016-02-08</span>&nbsp;toolchain. Using the latest (                 <span style="font-family:Menlo;font-size:14px" class="">2016-03-01)</span>&nbsp;solved the problem :)                </div>                <div class="">                 <font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" class="">                  <div dir="ltr" style="font-family:Arial;font-size:10.5pt" class="">                   <div dir="ltr" style="font-family:Arial;font-size:10.5pt" class="">                    <div dir="ltr" style="font-family:Arial;font-size:10.5pt" class="">                     <div dir="ltr" class="">                      <br class="">                      <span style="font-family:georgia,serif" class=""><span style="font-size:1.143em" class="">Pushkar N Kulkarni,</span></span>                     </div>                      <div dir="ltr" class="">                      <span style="font-family:georgia,serif" class=""><span style="font-size:1.143em" class="">IBM Runtimes</span></span>                     </div>                      <div dir="ltr" class="">                      &nbsp;                     </div>                      <div dir="ltr" class="">                      <em class=""><span style="font-family:georgia,serif" class=""><span style="font-size:0.857em" class="">"Any sufficiently advanced technology is indistinguishable from magic." - Arthur Clarke</span></span></em>                     </div>                    </div>                   </div>                  </div></font>                </div><br class=""><br class=""><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" class=""><font color="#990099" class="">-----Brian Gesiak &lt;<a href="mailto:modocache@gmail.com" class="">modocache@gmail.com</a>&gt; wrote: -----</font>                 <div style="padding-left:5px" class="">                  <div style="padding-right:0px;padding-left:5px;border-left:solid black 2px" class="">                   To: &lt;                   <a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>&gt;, Pushkar N Kulkarni/India/IBM@IBMIN                   <br class="">From: Brian Gesiak &lt;                   <a href="mailto:modocache@gmail.com" class="">modocache@gmail.com</a>&gt;                   <br class="">Date: 03/02/2016 11:26PM                   <br class="">Subject: Re: [swift-corelibs-dev] Building Foundation in Xcode                   <br class="">                   <br class="">                   <div class="">                    Hello Pushkar,                   </div>                   <div class="">                    <br class="">                    <div class=""></div>One idea that comes to mind: are you launching Xcode 7.2 using a recent Swift toolchain? To do so, follow the instructions on this page:                     <a dir="ltr" href="https://swift.org/download/#latest-development-snapshots" class="">https://swift.org/download/#latest-development-snapshots</a>                   </div>                   <div class="">                    <br class="">                   </div>                   <div class="">                    Specifically, you'll want to launch Xcode using the xcrun launch-with-toolchain command.                   </div>                   <div class="">                    <br class="">                   </div>                   <div class="">                    Forgive me if this isn't the problem--I'm not at a computer right now, but that error message vaguely reminds me of what happens when one tries to build Foundatoon with an older version of Swift.                   </div>                   <div class="">                    <br class="">                   </div>                   <div class="">                    - Brian Gesiak                   </div>                   <br class="">                   <br class="">                   <br class="">                   <div class="gmail_quote">                    On Wed, Mar 2, 2016 at 8:09 AM -0800, "Pushkar N Kulkarni via swift-corelibs-dev"                     <span dir="ltr" class="">&lt;<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>&gt;</span> wrote:                    <br class="">                    <br class="">                     <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">                      <div dir="3D&quot;ltr&quot;" class="">                      <font face="Verdana,Arial,Helvetica,sans-serif" size="2" class="">                       <div class="">                        <div class="">                         <font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class="">I am very new to Xcode and &nbsp;tried building Foundation and running TestFoundation in Xcode 7.2.1, using the instructions given&nbsp;<a href="https://github.com/apple/swift-corelibs-foundation/blob/master/Docs/GettingStarted.md" title="https://github.com/apple/swift-corelibs-foundation/blob/master/Docs/GettingStarted.md" class="">here</a>.</font>                        </div>                        <div class="">                         <font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class=""><br class=""></font>                        </div>                        <div class="">                         <font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class="">In step 3, Foundation doesn't build because Xcode reports a compilation failure in NSObjCRuntime.swift (p<font color="#333333" class="">lease refer to the attached snapshot):</font></font>                        </div>                        <div class="">                         <b class=""><font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class="">Use of unresolved identifier '_typeByName'</font></b>                        </div>                        <div class="">                         <b class=""><font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class=""><br class=""></font></b>                        </div>                        <div class="">                         <font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class="">I can see that this function is defined outside of the Foundation project,&nbsp;in the swift project (<a href="https://github.com/apple/swift/blob/a44b09b6b6de50d54856499b156881f68e2eb34f/stdlib/public/core/Misc.swift" title="stdlib/public/core/Misc.swift" style="background-color:transparent;text-decoration:none;word-wrap:break-word;font-weight:bold" class=""><font color="#4078c0" class="">stdlib/public/core/Misc.swift</font></a>)<font color="#333333" class=""><b class="">. </b>I think there are other functions defined in the&nbsp;stdlib and used in Foundation. I am not sure why this particular symbol causes a problem.</font></font>                        </div>                        <div class="">                         <font color="#333333" size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class=""><b class=""><br class=""></b></font>                        </div>                        <div class="">                         <font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class="">Could someone please tell me how the symbol could be imported so that Foundation could be compiled and linked?</font>                        </div>                        <div class="">                         <font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class=""><br class=""></font>                        </div>                        <div style="font-size:small;font-family:'Default Sans Serif',Verdana,Arial,Helvetica,sans-serif" class="">                         <span style="font-family:Verdana,Arial,Helvetica,sans-serif" class=""><span class="">&lt;Image.1456916107867.jpg&gt;</span><br class=""></span>                        </div>                        <font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" style="font-size:small;font-family:Verdana,Arial,Helvetica,sans-serif" class="">                         <div dir="ltr" style="font-family:Arial;font-size:10.5pt" class="">                          <div dir="ltr" style="font-family:Arial;font-size:10.5pt" class="">                           <div dir="ltr" style="font-family:Arial;font-size:10.5pt" class="">                            <div dir="ltr" class="">                             <br class="">                             <span style="font-family:georgia,serif" class=""><span style="font-size:1.143em" class="">Pushkar N Kulkarni,</span></span>                            </div>                            <div dir="ltr" class="">                             <span style="font-family:georgia,serif" class=""><span style="font-size:1.143em" class="">IBM Runtimes</span></span>                            </div>                            <div dir="ltr" class="">                             &nbsp;                            </div>                            <div dir="ltr" class="">                             <em class=""><span style="font-family:georgia,serif" class=""><span style="font-size:0.857em" class="">"Any sufficiently advanced technology is indistinguishable from magic." - Arthur Clarke</span></span></em>                            </div>                           </div>                          </div>                         </div></font>                       </div></font>                      <br class="">                     </div>                     </blockquote>                   </div>                   </div>                 </div></font></font>               <br class="">_______________________________________________               <br class="">swift-corelibs-dev mailing list               <br class="">               <a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>               <br class="">               <a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a>               <br class="">              </div>             </blockquote>            </div>            <br class="">           </div>           </div>          </blockquote>         </div>        </div>      </div>     </div>     <br class="">_______________________________________________     <br class=""> swift-corelibs-dev mailing list     <br class="">      <a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>     <br class="">      <a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a>     <br class="">      <br class="">    </blockquote>   </div>   <br class="">   <br class="">   <div class="">    <br class="">   </div>--    <br class="">   <div class="gmail_signature">    <div dir="ltr" class="">     <div class="">      <div dir="ltr" class="">       <b class=""><font face="arial, helvetica, sans-serif" size="2" class="">Taylor Franklin</font></b>       <div class="">        iOS Developer | IBM Mobile Innovation Lab       </div>       <div class="">        <a dir="ltr" href="tel:972-207-2051" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="45" class="">972-207-2051</a> &nbsp;|         <a href="mailto:taylorleefranklin@gmail.com" class="">taylorleefranklin@gmail.com</a>       </div>       <div class="">        <i class="">Blog</i>:&nbsp;        <a href="http://taylorfranklin.me/" style="color:rgb(17,85,204);font-size:small" class="">http://taylorfranklin.me</a>&nbsp;|         <i class="">LinkedIn</i>:&nbsp;        <a href="https://www.linkedin.com/in/taylorfranklin" class="">https://www.linkedin.com/in/taylorfranklin</a>       </div>      </div>     </div>    </div>   </div>   </div>  <br class=""><br class=""></div>
  </div></blockquote></div><br class=""></div></div></body></html>