….8.7, just manually hack the header.
…platform and ruby version.
* MRI 1.8.7 for OS X 10.8 * MRI 2.0.0 for OS X 10.9
Generate correct ReferencedContainer attribute when the Xcode project has a non-empty `projectDirPath`. The ReferencedContainer attribute is actually relative to the projectDirPath. I ran into a problem where Xcode would generate duplicate schemes of the hidden schemes that are generated by CocoaPods because the ReferencedContainer attribute that CocoaPods generates was different from what Xcode generated on an Xcode project that was generated by Cmake in a certain way.
Before this patch, the method would raise an error on aggregate targets. The method still doesn't support PBXLegacyTargets, since I don't know how they behave.
Previously, the behavior was simply to silently create an invalid Xcode project file that Xcode UI showed as if the dependency wasn't added.
It mirrors the functionality of the method with the same name in CocoaPod's Pod::Project class (which after this patch will override it). The differences are 1) CocoaPod's implementation is constant time but this is linear wrt the number of objects, 2) CocoaPod's implementation does not work when you load a previously existing file.