Open echoz opened 11 years ago
I have the same issue when the target needs to compile a .xcdatamodeld. Problem is, this is a directory with a .xcdatamodel file inside, so there is no fileType and it fails.
I am also seeing this same issue when trying to build a framework that contains both a single xcdatamodel as well as a xcdatamodeld. Has there been any workarounds for this issue? Or is the workaround going back to MK7?
I fixed the bug by modifying the get_build_phase_files() function. Since this is simply used to check if there are any compilable sources added to the project, you can bypass altogether the VersionGroup folders like .xcdatamodeld.
def get_build_phase_files(self, build_phase_name, filter_func):
build_phase = filter(lambda x: x['isa'] == build_phase_name, self.target['buildPhases'])[0]
build_files = filter(lambda x: x['fileRef']['isa'] != 'XCVersionGroup', build_phase['files'])
build_files = filter(filter_func, build_files)
return [x['fileRef'] for x in build_files]
Currently using MK8 on Xcode 4.5.1 (4G1004) to build a Real Framework. Everything complies until the execution of the script and I get the following error
Thing is, when I check the build directory in DerivedData, I actually see the Framework structure all laid out, but its just for the platform that it was building for (in this case, armv7 and armv7s).