Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add xcdatamodeld resource file as `XCVersionGroup` instead of simple `PBXFileReference` #1155

Closed
AliSoftware opened this Issue · 0 comments

1 participant

AliSoftware
AliSoftware
Collaborator

When adding a xcdatamodeld file to the resources of a Podspec, the datamodel is included in the generated Pods.xcodeproj/project.pbjproj as a regular file entry instead as a XCVersionGroup entry.

As a consequence, the content of the xcdatamodeld file can't be displayed in Xcode (when selecting it in the Project Navigator, its contents does not shows up in the main editor). Removing and adding the xcdatamodeld file manually from the Pods project resolves this (but needs to be done manually after each pod update).

Note: I've looked at the code and it's probably just some conditional code in Pod::Installer::FileReferencesInstaller to create a XCVersionGroup instead of a simple PBXGroup/PBXFileReference when dealing with xcdatamodeld files? but I'm not confortable enough with Ruby to propose a pull request yet, sorry…

(See also #795)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.