+
Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Core 3.9.2

Compare
Choose a tag to compare
@tanner0101 tanner0101 released this 19 Sep 14:17
18f2436
  • Fixed an issue with DirectoryConfig.detect() in Xcode 11 when using native SPM integration. (#208)

Working directory detection methods used in Xcode projects created with swift package generate-xcodeproj no longer work in Xcode 11 when using native SPM integration. The Xcode team has indicated to us that they are not planning on providing any workarounds to allow for this automatic directory detection to work in Xcode 11. Because of this, DirectoryConfig.detect() will no longer attempt to automatically determine the current working directory if it detects Xcode >= 11 using native SPM integration. Instead, it will always return the current working directory.

By default, this current working directory will be a temporary folder used by Xcode. To change this, you must enable Use custom working directory in the scheme editor for your Run scheme:

59303398-2365c080-8c64-11e9-87ad-dfcb239fa99f

You should set the custom working directory to the folder that contains the Package.swift file for your project. Once you have set a custom working directory for your scheme, DirectoryConfig.detect() will correctly detect and return that path to your application. This change should only need to be made once since Xcode project settings are persisted in the .swiftpm folder.

Note that this change should only affect projects using Xcode >= 11 with native SPM integration. Projects using swift package generate-xcodeproj should continue to work without needing to make changes to the Run scheme.

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载