ios - Other Linker Flags set to -ObjC -


this question has answer here:

i have included other linker flags set -objc in build settings use framework requires (https://github.com/rs/sdwebimage)

however after adding flag linker errors:

undefined symbols architecture armv7: 

"_objc_class_$_skproductsrequest", referenced from:

  objc-class-ref in parse(pfpurchase.o) 

"_objc_class_$_skpayment", referenced from:

  objc-class-ref in parse(pfpurchase.o) 

"_objc_class_$_skpaymentqueue", referenced from:

  objc-class-ref in parse(pfpurchase.o)    objc-class-ref in parse(pfpaymenttransactionobserver.o) 

ld: symbol(s) not found architecture armv7

clang: error: linker command failed exit code 1 (use -v see invocation)

removing -objc linker flag , project builds again without errors. ideas of cause? thanks.

you need add storekit.framework.

version 1.0.62 of parse ios sdk introduced in-app purchases. requires storekit.framework added existing parse ios projects, if iap not being used.

do this:

  1. select project
  2. select target
  3. select build phases
  4. in link binaries libraries, click +
  5. search storekit , add

then import framework project:

#import "storekit/storekit.h" 

see same error in parse community link.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -