You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add a reference to a .framework that is not created yet. I'm sure the file will exist after compiling the target that generates it. But it doesn't exist yet.
I know what I'm doing, but I'm not sure if adding this method to the group API is ok. I mean, it allows to add unexistent files references. You guys know much more about the uses of the xcodeproj, what do you think? Is it worth to add it? If is it ok, I can make a PR for this feature.
The text was updated successfully, but these errors were encountered:
Hey @llinardos, that's a utterly valid use case.
A PR was merged recently modifying the addFile method to support overriding existing file. You could do add another argument to support adding non-existing files:
func addFile(validatePresence:Bool=true) // Default to true for backwards compatibility.
I'm trying to add a reference to a
.framework
that is not created yet. I'm sure the file will exist after compiling the target that generates it. But it doesn't exist yet.The method add file in PBXGroup check for existence of the file, so it throws when I try to add the yet unexistent file.
I solve my issue adding the next method to PBXGroup:
I know what I'm doing, but I'm not sure if adding this method to the group API is ok. I mean, it allows to add unexistent files references. You guys know much more about the uses of the xcodeproj, what do you think? Is it worth to add it? If is it ok, I can make a PR for this feature.
The text was updated successfully, but these errors were encountered: