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,
- go "build phases" application,
- expand compiled sources
- scroll fbunityinterface.mm
- double click on item in list. should bring text field entering compiler flags.
- enter "-fno-objc-arc"
note: have no idea these flags or how work, helped me past error, hooray! :)
Comments
Post a Comment