Skip to content

Commit

Permalink
Ensure that XCVersionGroup always has a file type.
Browse files Browse the repository at this point in the history
Without this, xcode doesn't accept the data model's version group.

--
MOS_MIGRATED_REVID=86796043
  • Loading branch information
aragos authored and hanwen committed Feb 20, 2015
1 parent 344bcbc commit 4f7c16a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ private void trySetCurrentVersion(XCVersionGroup group) {
}

for (PBXFileReference child : group.getChildren()) {
child.setExplicitFileType(Optional.of("wrapper.xcdatamodel"));
if (child.getName().equals(currentVersion.getContent())) {
group.setCurrentVersion(Optional.of(child));
return;
}
}
}
Expand Down

0 comments on commit 4f7c16a

Please sign in to comment.