Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook Unity SDK and Unity 4.3 have a conflicting instance method 'openURL' on iOS
    primarykey
    data
    text
    <p>I had Facebook Unity SDK working in my game prototype until I updated to Unity 4.3. After the update build fails on dSYM generation in xCode. Error message: </p> <p>Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil failed with exit code 11</p> <p>Most notably before the final error message above I get this warning: </p> <p>ld: warning: instance method 'application:openURL:sourceApplication:annotation:' in category from /Users/<em>/Library/Developer/Xcode/DerivedData/Unity-iPhone-duxgtdhujpdgtjbanfxzqinkvybw/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/FbUnityInterface.o overrides method from class in /Users/</em>/Library/Developer/Xcode/DerivedData/Unity-iPhone-duxgtdhujpdgtjbanfxzqinkvybw/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/UnityAppController.o</p> <p>I investigated this a bit and yes, it seems that both UnityAppController.mm and FbUnityInterface.mm define "openURL" method and that's what xCode doesn't like. I also checked the iOS build that I had worked with on earlier (4.2.x) Unity version and in that build Unity did <em>not</em> define openURL-method in any of its .mm files. </p> <p>Version Info: </p> <ul> <li>Facebook Unity SDK Version 4.3.4</li> <li>Unity Editor Version 4.3 (Pro)</li> <li>Xcode 5.0.2</li> </ul> <p>Changes vs Unity xCode project default configuration: </p> <ul> <li>Added the frameworks that AdMob requires </li> <li>Added linker flag "-ObjC" that AdMob requires (Build Settings -> Other Linker Flags)</li> </ul> <p>I tested linking without the "-ObjC" flag also. Result is the same. Any ideas on how to fix this? </p> <p>-tomi</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload