Question or problem
I am working on a migration of a huge project (a PoC rather than a set in stone migration) and I am facing difficulties adding an xcframework dependency with a path that is specified in the xcconfig.
So, I have multiple configurations and depending on a config I have different paths for my xcframeworks.
Let’s put it this way:
Debug.xcconfig
MY_DEPENDENCY_PATH=$(PROJECT_DIR)/Deps/Debug/MyDep.xcframework
Release.xcconfig
MY_DEPENDENCY_PATH=$(PROJECT_DIR)/Deps/Release/MyDep.xcframework
In my current setup, in the pbxproj file I have it as:
SomeRandomId /* MyDep.xcframework */ = { isa PBXFileReference; lastKnownType = wrapper.xcframework; name = MyDep.xcframework; path = $MY_DEPENDENCY_PATH; sourceTree = “”; };
Expectation
I expected that I’d have a way to specify an
.xcframework("$MY_DEPENDENCY_PATH")
dependency for my target and it let it be resolved at the build time. But I don’t see any option to pass a string instead of a Path there.
But it seems there’s no such possibility. Am I missing anything? Or do I have to find another way of dealing with the dependency?
Context
- Tuist version: 4.34.3