<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">You're not the only person to run into this. <a href="rdar://problem/33635183" class="">rdar://problem/33635183</a> tracks the issue within Apple, and since it would need Xcode-side changes as well there's no point in having a report at <a href="http://bugs.swift.org" class="">bugs.swift.org</a>. I'm afraid we don't have a workaround right now other than what you've mentioned.</div><div class=""><br class=""></div><div class="">Jordan</div><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 16, 2017, at 03:17, bhargav gurlanka via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">We have moderately complex Swift project with around 2,000 Swift files in a single module.<div class=""><br class=""></div><div class="">Most of the Swift source files are deeply nested inside directories and 90% of these files have absolute paths with more than 150 characters (assuming project is in "/Volumes/Macintosh HD2/Project" folder)</div><div class=""><br class=""></div><div class="">Because Swift compiler (Xcode 8.3.2) takes the absolute paths of all source files while compiling, the ARG_MAX limit is reached and build fails with:</div><div class=""><br class=""></div><div class=""><p class="gmail-p1"><font face="monospace, monospace" class="">Build operation failed without specifying any errors. Individual build tasks may have failed for unknown reasons.</font></p><p class="gmail-p1"><font face="monospace, monospace" class="">One possible cause is if there are too many (possibly zombie) processes; in this case, rebooting may fix the problem.</font></p><p class="gmail-p1"><font face="monospace, monospace" class="">Some individual build task failures (up to 12) may be listed below.</font></p><p class="gmail-p1"><br class=""></p><p class="gmail-p1">Have anybody experienced this issue before?</p><p class="gmail-p1">We temporarily fixed this issue by renaming longer folder names to shorter ones.</p><p class="gmail-p1">I'm assuming that breaking this monolithic module into smaller ones might fix the issue, but are there any other better solutions?</p></div></div>
_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></body></html>