Search code examples
restkitapportable

RestKit and apportable - error: expected a type


I'm just trying to get my app woking with appportable and I keep getting the following error from RestKit while compiling

/Pods/Headers/RestKit/RestKit/CoreData/RKManagedObjectStore.h:246:78: error: 
       expected a type

 - (NSManagedObjectContext *)newChildManagedObjectContextWithConcurrencyType:    (NSManagedObjectContextConcurrencyType...

Has anyone come across this before..?


Solution

  • Apportable does not yet implement NSManagedObjectContextConcurrencyType.

    ~/.apportable  $  cd ~/.apportable/SDK/System/
    ~/.apportable/SDK/System  $ grep -r NSManagedObjectContextConcurrencyType *
    ~/.apportable/SDK/System  $
    

    If you're not using that part of RestKit, you could comment out the code causing the warning. Otherwise, currently you'd need to reimplement it with other API's.