swiftswift3xcconfigswift-package-manager

Provide configuration file to Swift Package Manager


I'm trying to marry swiftpm and .xcconfig files.

I've created Config.xcconfig file right next to my Package.swift file with two lines:

LIBRARY_SEARCH_PATHS = $(inherited) $(SRCROOT)/../3rdparty/mylib/.build/
OTHER_LDFLAGS = $(inherited) -lmylibRelease

But I still have 120 linkage errors, my guess is that swift build does not see my config file.

What should I do?


Solution

  • Xcode 11.3 supports now SPM with custom Xcode configurations.