swiftlang / swift-source-compat-suite

The infrastructure and project index comprising the Swift source compatibility suite.
Apache License 2.0
284 stars 150 forks source link

Add ability to place xcode build folder outside source #864

Closed justice-adams-apple closed 11 months ago

justice-adams-apple commented 11 months ago

In This PR

When building a project with xcodebuild and the derived data path is a subfolder of the source we often see module missing errors https://ci.swift.org/view/Swift%205.10/job/swift-5.10-source-compat-suite/56/artifact/swift-source-compat-suite/XFAIL_CareKit_5.0_BuildXcodeWorkspaceScheme_CareKit_generic-platform-iOS.log

error: Missing package product 'AsyncAlgorithms' (in target 'CareKitStore' from project 'CareKitStore')

This PR sets the derived data to a custom project build folder outside the scope of the source if a user specifies with "external_build_folder": true, in the config

https://forums.swift.org/t/xcode-and-swift-package-manager/44704/9

justice-adams-apple commented 11 months ago

@swift-ci test

shahmishal commented 11 months ago

Looks good, make sure the clean up script can handle the new location

justice-adams-apple commented 11 months ago

Looks good, make sure the clean up script can handle the new location

the build folders are still in the project_cache/ which will be removed when someone uses --cleanup-cache with the cleanup script. Should be good to go!