ios - Unity 4.5.5f1 + Facebook SDK 6 -


unity game ios , android.

when exported ios, try compile in xcode , get:

.../assets/facebook/editor/ios/fbunityinterface.mm:22:17: method definition 'initwithcookie:logging:status:frictionlessrequests:urlsuffix:' not found 

i apple mach-o linker error

ld: file not found: .../library/developer/xcode/deriveddata/unity-iphone-ailzvxifteluzgdrxapptghrbxca/build/products/xxx.app/xxx 

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

and get:

undefined symbols architecture armv7:    "_iosfbsettingspublishinstall", referenced from:       registermonomodules() in registermonomodules.o   "_iosfbsettingsactivateapp", referenced from:       registermonomodules() in registermonomodules.o   "_iosfbappeventssetlimiteventusage", referenced from:       registermonomodules() in registermonomodules.o   "_iosfbappeventslogpurchase", referenced from:       registermonomodules() in registermonomodules.o   "_iosfbappeventslogevent", referenced from:       registermonomodules() in registermonomodules.o ld: symbol(s) not found architecture armv7 clang: error: linker command failed exit code 1 (use -v see invocation) 

any good.

thanks

this late original poster, in case else stumbles across question , hunting answer, thread has it: workaround unity5 ios compile error facebook-unity-sdk 6.2.1

in summary,

  1. go "build phases" application,
  2. expand compiled sources
  3. scroll fbunityinterface.mm
  4. double click on item in list. should bring text field entering compiler flags.
  5. enter "-fno-objc-arc"

note: have no idea these flags or how work, helped me past error, hooray! :)


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -