matthewcheok / Realm-JSON

A concise Mantle-like way of working with Realm and JSON.
MIT License
661 stars 129 forks source link

Use of undeclared identifier 'RLMPropertyTypeArray' error #103

Open jcmartinac opened 7 years ago

jcmartinac commented 7 years ago

Hello! I have just update my pods and with the new version of Realm (3.0.0) this identifier is not available, so RLMObeject+Copying.m file is not compiling... any help?

BosAtWork commented 7 years ago

I had same issue and found on their release page https://github.com/realm/realm-cocoa/releases that they deprecated this enum. You can now just replace

if (property.type == RLMPropertyTypeArray)

to

if(property.array)

jcmartinac commented 7 years ago

Thanks! It solves the problem

SebastianKumor commented 6 years ago

I made fork from this repo that has those updates from Realm 3.0 https://github.com/SebastianKumor/Realm-JSON

Dalmangyi commented 6 years ago

thanks!