New Build System: Cannot clean app if custom build directory is used
Originator: | hansknoechel92 | ||
Number: | rdar://40906897 | Date Originated: | 2018-06-07 |
Status: | Open | Resolved: | None |
Product: | iOS + SDK | Product Version: | iOS 12.0 + Xcode 10 |
Classification: | Bug | Reproducible: | Always |
Area: Xcode Summary: When attempting to clean an app build with the new build system enabled, the app build aborts with an error. Steps to Reproduce: 1. Create a new app 2. Specify a custom build directory via Build Settings 3. Try to clean the project Expected Results: The build succeeds. Actual Results: The build fails with the following error: [ERROR] note: Using new build system [ERROR] error: Could not delete `/path/to/project/build` because it was not created by the build system and it is not a subfolder of derived data. [ERROR] ** CLEAN FAILED ** Version/Build: Version 10.0 beta (10L176w) Configuration: iOS 12.0 Simulator, new build system enabled
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!
Same issue when using [relative] DerivedData in xcode / preferences / locations
note: Using new build system error: Could not delete
/path/to/project/DerivedData/Build/Products
because it was not created by the build system and it is not a subfolder of derived data.