Closed JeremyBradshaw7 closed 2 years ago
does it help if you remove the comment?
does it help if you remove the comment?
Yes it will, but that file is generated every time you run the rnuc utility.
This is quite weird btw. It works fine for me. Which version of xcode are you using?
afaik //
is a correct comment in xcconfig
Ah sorry, I see what's happening now. This is in relation to my other query: https://github.com/maxkomarychev/react-native-ultimate-config/issues/93 - where I'm trying to expose the variables to the build script I'm running in. So it's this command that is throwing that error:
set -o allexport; source ios/rnuc.xcconfig; set +o allexport # expose all env file variables
I probably need to preprocess the file with grep
or something to avoid it. Closing this now, but I'd still like to know the recommended way to expose the "current" environment variables from this package to a build script.
Getting this warning/error on a production build in the console:
ios/rnuc.xcconfig: line 1: //: is a directory
It's because the first line of the file written to the ios folder contains a comment:
Can anything be done about this?