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
When path is set to undefiend or null the following code is generated:
8E63D5C4EFE34B3BAE93815F /* Frameworks */ = {
isa = PBXGroup;
children = (
18285FBD1A3D4F05A3F47AC4 /* GoogleInterchangeUtilities.framework */,
);
name = Frameworks;
path = undefined;
sourceTree = "<group>";
};
Since it is possible to create groups without a path it would be nice to not set a path when the path is undefined or null. Furthermore a path that equals undefined or null makes the Group appear red in xcode. This would also be fixed by simply dropping the path
@janpio I used addFramework on a pbxProject instance, but it also happens when using addPbxGroup on a pbxProject instance (which is used by addFramework).
Activity
janpio commentedon Dec 7, 2018
Can you share the code used to produce this? Would make finding the correct parts of the library to change a lot easier. Thanks.
n1ru4l commentedon Dec 7, 2018
@janpio I used
addFrameworkon apbxProjectinstance, but it also happens when usingaddPbxGroupon apbxProjectinstance (which is used byaddFramework).janpio commentedon Dec 7, 2018
So
cordova-node-xcode/lib/pbxProject.js
Lines 317 to 362 in d1ff114
cordova-node-xcode/lib/pbxProject.js
Lines 494 to 543 in d1ff114
The solution would be to change the latter to check if a path is provided, and if not drop the
pathkey from the array?n1ru4l commentedon Dec 7, 2018
What about 57e6e98?