{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/facebook-sdk-for-unity/issues/32","repository_url":"https://api.github.com/repos/facebook/facebook-sdk-for-unity","labels_url":"https://api.github.com/repos/facebook/facebook-sdk-for-unity/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/facebook/facebook-sdk-for-unity/issues/32/comments","events_url":"https://api.github.com/repos/facebook/facebook-sdk-for-unity/issues/32/events","html_url":"https://github.com/facebook/facebook-sdk-for-unity/issues/32","id":172208772,"number":32,"title":"Issues with Android IL2CPP Compilation","user":{"login":"InfiniteCode","id":1863464,"avatar_url":"https://avatars.githubusercontent.com/u/1863464?v=3","gravatar_id":"","url":"https://api.github.com/users/InfiniteCode","html_url":"https://github.com/InfiniteCode","followers_url":"https://api.github.com/users/InfiniteCode/followers","following_url":"https://api.github.com/users/InfiniteCode/following{/other_user}","gists_url":"https://api.github.com/users/InfiniteCode/gists{/gist_id}","starred_url":"https://api.github.com/users/InfiniteCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InfiniteCode/subscriptions","organizations_url":"https://api.github.com/users/InfiniteCode/orgs","repos_url":"https://api.github.com/users/InfiniteCode/repos","events_url":"https://api.github.com/users/InfiniteCode/events{/privacy}","received_events_url":"https://api.github.com/users/InfiniteCode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-08-19T19:59:03Z","updated_at":"2016-11-05T21:03:08Z","closed_at":null,"body":"The current version of Facebook SDK for Unity (7.8.0) doesn't work well with Android IL2CPP compilation. Fails with the following:\n\n```\n[10:39:56][Step 2/5] Failed running /Users/user/Library/Android/ndk//toolchains/llvm-3.6/prebuilt/darwin-x86_64/bin/clang++ -o \"Temp/StagingArea/assets/bin/Data/Native/x86/libil2cpp.so.debug\" -Wl,-soname,libil2cpp.so.debug --sysroot \"/Users/user/Library/Android/ndk/platforms/android-9/arch-x86\" -gcc-toolchain \"/Users/user/Library/Android/ndk//toolchains/x86-4.9/prebuilt/darwin-x86_64\" -target i686-none-linux-android -shared -fuse-ld=gold -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Assembly-CSharp-firstpass_0.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Assembly-CSharp-firstpass_1.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Assembly-CSharp_0.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Assembly-CSharp_1.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Assembly-CSharp_2.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Assembly-CSharp_3.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Facebook.Unity_0.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Generics_0.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Generics_1.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Generics_10.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Generics_11.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Generics_12.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Generics_13.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Generics_2.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Generics_3.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Generics_4.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Generics_5.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Generics_6.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Generics_7.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Generics_8.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Generics_9.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Mono.Security_0.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Mono.Security_1.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Newtonsoft.Json_0.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_Newtonsoft.Json_1.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_SmartLocalization_Runtime_0.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_System.Core_0.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_System.Runtime.Serialization_0.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_System.Xml_0.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_System.Xml_1.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_System.Xml_2.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_System.Xml_3.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_System_0.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_System_1.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_System_2.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_UnityEngine.UI_0.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_UnityEngine.UI_1.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_UnityEngine_0.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_UnityEngine_1.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_UnityEngine_2.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_UnityEngine_3.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_mscorlib_0.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_mscorlib_1.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_mscorlib_2.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_mscorlib_3.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_mscorlib_4.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_mscorlib_5.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_mscorlib_6.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Bulk_mscorlib_7.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/GenericMethods0.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/GenericMethods1.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppAttributes.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppCodeRegistration.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppCompilerCalculateTypeValuesTable.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppDelegateWrappersManagedToNativeTable.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppGenericClassTable.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppGenericInstDefinitions.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppGenericMethodDefinitions.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppGenericMethodPointerTable.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppGenericMethodTable.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppGuids.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppInvokerTable.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppMarshalingFunctionsTable.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppMetadataRegistration.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppMetadataUsage.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppMethodPointerTable.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppReversePInvokeWrapperTable.o\" \"Temp/StagingArea/Il2Cpp/il2cppOutput/x86/Il2CppTypeDefinitions.o\"    -L \"/Applications/Unity/PlaybackEngines/AndroidPlayer/Variations/il2cpp/Release/StaticLibs/x86\" -lil2cpp -lbdwgc -L \"/Users/user/Library/Android/ndk//sources/cxx-stl/gnu-libstdc++/4.9/libs/x86\" -lgnustl_static\n[10:39:56][Step 2/5] \n[10:39:56][Step 2/5] Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Facebook.Unity_0.cpp:16129: error: undefined reference to 'IOSInit'\n[10:39:56][Step 2/5] Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Facebook.Unity_0.cpp:16154: error: undefined reference to 'IOSLogInWithReadPermissions'\n[10:39:56][Step 2/5] Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Facebook.Unity_0.cpp:16154: error: undefined reference to 'IOSLogInWithReadPermissions'\n[10:39:56][Step 2/5] Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Facebook.Unity_0.cpp:16171: error: undefined reference to 'IOSLogInWithPublishPermissions'\n[10:39:56][Step 2/5] Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Facebook.Unity_0.cpp:16171: error: undefined reference to 'IOSLogInWithPublishPermissions'\n[10:39:56][Step 2/5] Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Facebook.Unity_0.cpp:16184: error: undefined reference to 'IOSLogOut'\n[10:39:56][Step 2/5] Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Facebook.Unity_0.cpp:16184: error: undefined reference to 'IOSLogOut'\n[10:39:56][Step 2/5] Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Facebook.Unity_0.cpp:16193: error: undefined reference to 'IOSSetShareDialogMode'\n[10:39:56][Step 2/5] Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Facebook.Unity_0.cpp:16193: error: undefined reference to 'IOSSetShareDialogMode'\n```\n"},"comment":{"url":"https://api.github.com/repos/facebook/facebook-sdk-for-unity/issues/comments/258640469","html_url":"https://github.com/facebook/facebook-sdk-for-unity/issues/32#issuecomment-258640469","issue_url":"https://api.github.com/repos/facebook/facebook-sdk-for-unity/issues/32","id":258640469,"user":{"login":"PimDeWitte","id":8763534,"avatar_url":"https://avatars.githubusercontent.com/u/8763534?v=3","gravatar_id":"","url":"https://api.github.com/users/PimDeWitte","html_url":"https://github.com/PimDeWitte","followers_url":"https://api.github.com/users/PimDeWitte/followers","following_url":"https://api.github.com/users/PimDeWitte/following{/other_user}","gists_url":"https://api.github.com/users/PimDeWitte/gists{/gist_id}","starred_url":"https://api.github.com/users/PimDeWitte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PimDeWitte/subscriptions","organizations_url":"https://api.github.com/users/PimDeWitte/orgs","repos_url":"https://api.github.com/users/PimDeWitte/repos","events_url":"https://api.github.com/users/PimDeWitte/events{/privacy}","received_events_url":"https://api.github.com/users/PimDeWitte/received_events","type":"User","site_admin":false},"created_at":"2016-11-05T21:03:08Z","updated_at":"2016-11-05T21:03:08Z","body":"+1 on a fix for this, experiencing the same issue and it will force us to remove Facebook from Android."}}
{"actor":{"display_login":"PimDeWitte"}}