`Shell Script` Build Phase Fails When Input / Output Files List is Too Large
| Originator: | Andrew.Mishanin | ||
| Number: | rdar://15781129 | Date Originated: | 09-Jan-2014 |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | 5.0.2 |
| Classification: | Reproducible: |
Summary: When using a large list of input / output files for a `Shell Script` build phase Xcode build fails with the following error: Build operation failed without specifying any errors. Individual build tasks may have failed for unknown reasons. Some of these (up to 12) may be listed below. This behaviour depends on the length of a full path to input / output files. Steps to Reproduce: 1. You'll need an Xcode project consisting of several targets with `Shell Script` build phases. Each build phase should have sufficiently large list of input / output files. For example you could use Chromium Open Source project when building for iOS (http://www.chromium.org/developers/how-tos/build-instructions-ios). 2. Place Xcode project in directory with sufficiently long full path (I have something like /Users/amishanin/Projects/C753D996-0356-4A74-8EAA-6E4C07A56319/6E5A541B-DA0E-41BD-83FD-35858B749D1F/Browser/src/yandex/ios on my local machine; a path like this triggers the error, whereas path like /Users/amishanin/Projects/Browser/src/yandex/ios does not). 3. Start building the project. Expected Results: The project builds successfully regardless of the full path to input / output files of `Shell Script` build phase. Actual Results: Build fails with the following error: Build operation failed without specifying any errors. Individual build tasks may have failed for unknown reasons. Some of these (up to 12) may be listed below. Version: OS X: Version 10.9.1 Build 13B42 Xcode: Version 5.0.2 (5A3005) Clang: Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) Target: x86_64-apple-darwin13.0.0 Thread model: posix Notes: Error message showing up in Xcode UI is rather unhelpful, but you can add a breakpoint on -[XCWorkQueueCommandInvocation emitBuildMessageOfType:toTranscript:message:forFileAtPath:lineNumber:] and start building the problematic project. Soon breakpoint will be hit and inspecting r8 register will show the "real" error message: error: couldn't run '/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/Frameworks/DevToolsCore.framework/Resources/xcexec' because an internal error occurred (Argument list too long) Configuration: 15-inch MacBook Pro w/Retina Display (early 2013) CPU: 2.7 GHz Intel Core i7 Memory: 16 GB 1600 Mhz DDR3
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!