Open chrisschmidtmoven opened 9 years ago
1) add pbxvariantgroup with the file name. 2) add files from different *.lproj folder to this variantgroup.
More discussion on this issue can be found here, but with ruby. https://github.com/CocoaPods/Xcodeproj/issues/85#issuecomment-146300179
Hi All,
I have a requirement for my App to support English and French. We have an automated build process that I must follow. My problem is that I have to add the localization files to the XCode project when I add the platform. I want to copy the new files in the configure the XCode project using a Cordova hook.
Using https://github.com/alunny/node-xcode
Problem is that the NodeJS xcode project does not add the proper group for this. It should look like this in
/* Begin PBXVariantGroup section / 431B8CD01B77C6EC00AFEDAE / InfoPlist.strings / = { isa = PBXVariantGroup; children = ( 431B8CCF1B77C6EC00AFEDAE / en /, 431B8CD11B77C6EE00AFEDAE / fr /, ); name = InfoPlist.strings; sourceTree = "";
};
/ End PBXVariantGroup section */
I added a method to XCode NodeJS called:
pbxProject.prototype.addPbxVariantGroup = function (filePathsArray, name, path, sourceTree) {
}
But it does not add it. The group I need does not exist, therefore it does not add it.
Maybe I am overthinking this or missed an easier way to do this. Anyone have a way to add a hook that lets the App Name be displayed in the language of the device???
Thanks,
Chris