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
if (filePath.endsWith(path.join('Pods.xcodeproj', 'project.pbxproj'))) {
// The Pods.xcodeproj file isn't currently able to be parsed
// by node-xcode:
// https://github.com/alunny/node-xcode/issues/127
//
// We don't actually need to manipulate it so we'll go ahead and ignore.
return;
}
If I remove the section above from utilities.js everything works for me, so I'm wondering if perhaps there could be an option when running the script whether to run this check or not, or if it is even needed any more?
Steps to reproduce the behavior
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered:
When I built the library, the xcode package would throw an exception while trying to parse that particular pbxproj file. It doesn't hurt to have the script run through all of your project files, I just didn't want to swallow errors about not being able to parse entire files and pretend it worked, so this was the best workaround for then. If the latest versions of the package don't do that, then there's no reason to skip that file at all that I can see.
So all that'd be needed in a PR is:
Upgrade the dependency in package json + yarn.lock to ensure we get the latest version when people install.
Remove the section of code you've quoted above.
I'd be happy to merge that PR.
I'd probably release it as a major version number (breaking change) just in case someone's pods file is more complex than the one you've got, then they won't magically have their workflow broken without their realising why.
I'm wondering about this part in the utilities.js
In my project I have a dependency on https://github.com/tlenclos/react-native-audio-streaming which has a Pods.xcodeproj which also needs to have my staging configurations copied.
If I remove the section above from utilities.js everything works for me, so I'm wondering if perhaps there could be an option when running the script whether to run this check or not, or if it is even needed any more?
Steps to reproduce the behavior
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: