objective c - Parse iOS Unit Testing a subclass of PFUser -


i'm trying unit test (with xctest) subclass of subclass of pfobject getting warnings such subclasses part of testing target:

class mysubclassofsubclassofpfobject implemented in both /var/mobile/containers/bundle/application/84c7811f-348e-42ef-9ff4-f243db669591/myapp.app/myapp , /var/mobile/containers/data/application/a84479a8-1acd-4f7b-b02d-a28cb412cd14/tmp/myapptests.xctest/myapptests. 1 of 2 used. 1 undefined. 

i'm getting exception subclass of pfuser:

*** terminating app due uncaught exception 'nsinternalinconsistencyexception', reason: 'tried register both parseuser , parseuser native pfobject subclass of _user. cannot determine right class use because neither inherits other.' 

i've installed parse 1.12 via cocoapods , running xcode 7.2.

my podfile looks this:

target 'watchi' use_frameworks! pod 'parse' end  target 'watchitests'  end 

in test target build settings, i've added $(srcroot) user header search paths (recursive), otherwise test target can't find pfobject+subclassing.h.

any idea why might happening? reason unit tests/parse think there 2 versions of these classes, there's 1 file of each in code.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -