Reputation: 1030
I'm trying to import an SPM package in Xcode11. I can fetch the library and see it in the project as Swift Package Dependencies but when trying to import, Xcode doesn't find it. I read that the problem could be custom configurations and not the standard e.g. Debug.
Does anyone know how to solve this without renaming the configuration names?
Upvotes: 1
Views: 359
Reputation: 2014
The best advice at the moment is this post on the Swift forums where Ankit says:
This is a known issue that Apple folks are tracking internally. Currently, Swift packages default to the "Release" configuration when anything other than Debug and Release is used. In theory, adding
$(BUILD_DIR)/Release
toSWIFT_INCLUDE_PATHS
build setting for the custom configurations should work around this issue but it can lead to some weird errors in case something unexpected gets picked from that directory.
Upvotes: 2