Xcode + SwiftPM Issues behind Enterprise Proxy

Number:rdar://FB7622368 Date Originated:2020-03-11
Status:Open Resolved:
Product:Xcode Product Version:Version 11.3.1 (11C504)
Classification:Incorrect/Unexpected Behavior Reproducible:Always
Xcode does not seem to honor system settings when performing network requests for the Swift Package Manager (SwiftPM).

Please list the steps you took to reproduce the issue:
0. Make sure you have to use an enterprise proxy to access sites like github.com.
1. Create a new Xcode project.
2. In the project navigator, select your project (usually the topmost item).
3. In the “PROJECT” list, select your project, then click “Swift Packages” at the top.
4. Click the “+” button to add a dependency.
5. Enter “https://github.com/AliSoftware/OHHTTPStubs.git” as the package URL (without quotation marks)

What did you expect to happen?
6. Xcode displays a sheet “Verifying OHHTTPStubs.git” for a brief moment.
7. Xcode displays a screen with information about the repository and request version specification information (such as “version: up to next major; 9.0.0 < 10.0.0”).

What actually happened?
6. Xcode displays a sheet “Verifying OHHTTPStubs.git” for 90–100 seconds.
7. Xcode displays another sheet on top: “An unknown error occurred”


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!