Mantle / MTLManagedObjectAdapter

Core Data support for Mantle
https://github.com/Mantle/Mantle
MIT License
140 stars 55 forks source link

'mtl_moa_EXTScope.h' file not found #13

Closed engmsaleh closed 9 years ago

engmsaleh commented 9 years ago

Installing using pod and when trying to build the workspace it gives

../Pods/MTLManagedObjectAdapter/MTLManagedObjectAdapter/MTLManagedObjectAdapter.m:13:9: 'mtl_moa_EXTScope.h' file not found
tabuchid commented 9 years ago

I'm also seeing this issue.

jspahrsummers commented 9 years ago

We do not maintain the podspec for this project. Please contact the contributors to it.

engmsaleh commented 9 years ago

Hi @jspahrsummers , Ok no problem I have found a workaround it seems a naming issue

screen shot 2015-06-24 at 12 59 16 am screen shot 2015-06-24 at 12 59 46 am

I have modified the header to

#import "EXTScope.h"
#import "EXTRuntimeExtensions.h"

and I have modified the other to

        mtl_propertyAttributes *attributes = mtl_copyPropertyAttributes(property);

and it worked for now, I will try to contact the maintainer of Podspec to check with. Thanks for your great effort.

MendyK commented 9 years ago

@engmsaleh Does changing that modify the default behavior? If not, can you submit a pull request?

engmsaleh commented 9 years ago

@MendyK No, It doesn't modify the behavior, I have opened issue with the original author as advised , but I think he didn't update it. What I have done is changing the code itself after installing the pod. Honestly, I didn't make a Cocoapod before, but I may try :)

MendyK commented 9 years ago

@engmsaleh That would be awesome if you could do that :)