<html><body><div></div><div>I have often wanted to quickly test a module I have built in the REPL after building... I can get so far, but then bump up against a problem where it can't seem to find the right symbols. I'm sure I'm doing something simple wrong but the flow is:&nbsp;</div><div><br data-mce-bogus="1"></div><div>swift build</div><div><br data-mce-bogus="1"></div><div>This correctly builds the module, and I can see .build/debug/PipMath.swiftmodule afterwards</div><div><br></div><div>So I try to run the REPL with the new module available for import</div><div><br data-mce-bogus="1"></div><div>swift -I .build/debug</div><div><br data-mce-bogus="1"></div><div>Which works and I can....</div><div><br data-mce-bogus="1"></div><div><p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: #f5f5f5; background-color: #000000;" data-mce-style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: #f5f5f5; background-color: #000000;"><span style="font-variant-ligatures: no-common-ligatures; color: #747474;" data-mce-style="font-variant-ligatures: no-common-ligatures; color: #747474;">&nbsp;&nbsp;1&gt; </span><span style="font-variant-ligatures: no-common-ligatures;" data-mce-style="font-variant-ligatures: no-common-ligatures;">import CoreGraphics</span></p><p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: #f5f5f5; background-color: #000000;" data-mce-style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: #f5f5f5; background-color: #000000;"><span style="font-variant-ligatures: no-common-ligatures; color: #747474;" data-mce-style="font-variant-ligatures: no-common-ligatures; color: #747474;">&nbsp; 2&gt; </span><span style="font-variant-ligatures: no-common-ligatures;" data-mce-style="font-variant-ligatures: no-common-ligatures;">import PipMath</span></p><p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: #f5f5f5; background-color: #000000;" data-mce-style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: #f5f5f5; background-color: #000000;"><span style="font-variant-ligatures: no-common-ligatures; color: #747474;" data-mce-style="font-variant-ligatures: no-common-ligatures; color: #747474;">&nbsp; 3&gt; </span><span style="font-variant-ligatures: no-common-ligatures;" data-mce-style="font-variant-ligatures: no-common-ligatures;">print(random(from:1.0, to:2.0))</span></p><p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: #f5f5f5; background-color: #000000;" data-mce-style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: #f5f5f5; background-color: #000000;"><span style="font-variant-ligatures: no-common-ligatures;" data-mce-style="font-variant-ligatures: no-common-ligatures;">error: Couldn't lookup symbols:</span></p><p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: #f5f5f5; background-color: #000000;" data-mce-style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: #f5f5f5; background-color: #000000;"><span style="font-variant-ligatures: no-common-ligatures;" data-mce-style="font-variant-ligatures: no-common-ligatures;">&nbsp; __TF7PipMath6randomFT4fromV12CoreGraphics7CGFloat2toS1__S1_</span></p><div><span style="font-variant-ligatures: no-common-ligatures;" data-mce-style="font-variant-ligatures: no-common-ligatures;"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures;" data-mce-style="font-variant-ligatures: no-common-ligatures;">So it very nearly works, but can't seem to find the symbol. Any ideas what I need to do in addition? It would be very useful for iterative development!</span></div><div><span style="font-variant-ligatures: no-common-ligatures;" data-mce-style="font-variant-ligatures: no-common-ligatures;"><br data-mce-bogus="1"></span></div><div><span style="font-variant-ligatures: no-common-ligatures;" data-mce-style="font-variant-ligatures: no-common-ligatures;">-sstudies</span></div></div></body></html>