ios - XCode unittest build failed with error "Undefined symbols for architecture x86_64" -


my unittest target build failed below error:

undefined symbols architecture x86_64:   "_objc_class_$_mcstore", referenced from:       objc-class-ref in mcstoretests.o ld: symbol(s) not found architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation) 

basic information:

  • xcode6.2
  • ios8.2 sdk

what have checked:

  • symbols hidden default no
  • other linker flags -framework xctest
  • framework search paths $(sdkroot)/developer/library/frameworks $(inherited)

according link, need set bundle loader below content in unittest target build settings

$(built_products_dir)/myexistingapp.app/myexistingapp


Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -