Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by Jesmond_Chia · Aug 29, 2016 at 07:43 PM · androidil2cppcompile-error

Android IL2CPP compile error for Unity 5.4.0f3

I have been trying to build my Unity Android project using IL2CPP since 5.4 came out but so far I have not been able to get it to work despite the project compiling fine on Mono. The build process seems fine at first until I hit the part of the build process where the progress bar says "Converting managed assemblies to C++" where the build process then gets stuck for about half an hour before crashing and displaying the following three errors.

First error:-

Failed running C:/Android/android-ndk-r10e/toolchains/llvm-3.6/prebuilt/windows-x86_64/bin/clang++ -o "Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so.debug" -Wl,-soname,libil2cpp.so.debug --sysroot "C:/Android/android-ndk-r10e/platforms/android-9/arch-arm" -gcc-toolchain "C:/Android/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64" -target armv7-none-linux-androideabi -shared -fuse-ld=gold -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Apple_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp-firstpass_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_4.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_5.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_6.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_7.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_8.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_9.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.CognitoIdentity_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.CognitoSync_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.Core_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.Core_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.Core_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.DynamoDBv2_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.DynamoDBv2_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.Lambda_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.S3_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.SecurityToken_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Common_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_DDDatabase_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_DDDSerializer_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Facebook.Unity_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_10.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_11.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_12.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_13.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_14.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_15.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_16.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_17.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_18.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_19.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_20.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_21.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_22.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_23.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_24.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_25.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_4.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_5.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_6.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_7.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_8.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_9.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Mono.Data.Sqlite_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Mono.Data.Tds_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Mono.Security_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Mono.Security_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_4.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_5.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_6.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_7.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_8.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Newtonsoft.Json_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Newtonsoft.Json_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_protobuf-net_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Stores_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Core_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Data_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Data_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Data_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Transactions_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Xml.Linq_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Xml_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Xml_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Xml_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Xml_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_4.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_5.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.Advertisements_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.Analytics_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.Purchasing_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.UI_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.UI_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_winrt_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\GenericMethods0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\GenericMethods1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\GenericMethods2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\GenericMethods3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppAttributes.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCodeRegistration.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValuesTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppDelegateWrappersManagedToNativeTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericClassTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericInstDefinitions.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericMethodDefinitions.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericMethodPointerTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericMethodTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGuids.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppInvokerTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppMarshalingFunctionsTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppMetadataRegistration.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppMetadataUsage.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppMethodPointerTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppReversePInvokeWrapperTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppTypeDefinitions.o" -L "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Release/StaticLibs/armeabi-v7a" -lil2cpp -lbdwgc -L "C:/Android/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a" -lgnustl_static

Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14914: error: undefined reference to 'IOSInit' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14939: error: undefined reference to 'IOSLogInWithReadPermissions' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14939: error: undefined reference to 'IOSLogInWithReadPermissions' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14956: error: undefined reference to 'IOSLogInWithPublishPermissions' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14956: error: undefined reference to 'IOSLogInWithPublishPermissions' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14969: error: undefined reference to 'IOSLogOut' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14969: error: undefined reference to 'IOSLogOut' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14994: error: undefined reference to 'IOSShareLink' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15047: error: undefined reference to 'IOSFeedShare' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15116: error: undefined reference to 'IOSAppRequest' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15165: error: undefined reference to 'IOSAppInvite' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15194: error: undefined reference to 'IOSCreateGameGroup' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15219: error: undefined reference to 'IOSJoinGameGroup' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15219: error: undefined reference to 'IOSJoinGameGroup' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15244: error: undefined reference to 'IOSFBAppEventsLogEvent' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15277: error: undefined reference to 'IOSFBAppEventsLogPurchase' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15298: error: undefined reference to 'IOSFBAppEventsSetLimitEventUsage' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15298: error: undefined reference to 'IOSFBAppEventsSetLimitEventUsage' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15307: error: undefined reference to 'IOSGetAppLink' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15307: error: undefined reference to 'IOSGetAppLink' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15316: error: undefined reference to 'IOSFBSdkVersion' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15316: error: undefined reference to 'IOSFBSdkVersion' clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) UnityEngine.Debug:LogError(Object) NativeCompiler:RunProgram(ProcessStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:60) NativeCompiler:Execute(String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:26) UnityEditor.Android.c_AnonStorey2:<>m6(TargetArchCompilerSettings) cAnonStorey7C`1:<>m_11A(Object) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:89)


Second error:-

Failed running C:/Android/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-objcopy "Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so.debug" "Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --strip-all

C:/Android/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-objcopy: 'Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so.debug': No such file UnityEngine.Debug:LogError(Object) NativeCompiler:RunProgram(ProcessStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:60) NativeCompiler:Execute(String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:26) UnityEditor.Android.c_AnonStorey2:<>m7(TargetArchCompilerSettings) cAnonStorey7C`1:<>m_11A(Object) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:89)


Third error:-

Exception: IL2CPP Linkage failed UnityEditor.Android.AndroidIl2CppClangCompiler.CompileDynamicLibrary (System.String libraryFile, IEnumerable`1 sourceFiles, IEnumerable`1 includePaths, IEnumerable`1 libraries, IEnumerable`1 libraryPaths) UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:223) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:132) UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.PrepareIl2cppFiles (UnityEditor.Android.PostProcessor.PostProcessorContext context, UnityEditor.Android.AndroidIl2CppPlatformProvider provider) UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args) UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:176) UnityEditor.HostView:OnGUI()


My first guess would be that this issue has to do with my third-party plugins conflicting with IL2CPP (I'm using Appsflyer, AWS, Facebook and Google Play Game Services with my project and the crash logs seem to indicate that the Facebook plugin might be at fault here) but I've already tried updating all those plugins to their latest version and my project compiles fine when I build to iOS using IL2CPP. Are there any fixes that can be done on my side to fix this problem?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by VoxelMatt · Aug 30, 2016 at 04:03 AM

So you have a bunch of undefined references to functions

 Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14914: error: undefined reference to 'IOSInit' 

So whenever you had code previously that was doing DllImport, you need to add #if UNITY_IOS checks around the definition, so that IL2CPP doesnt try to link it.

 #if UNITY_IOS
 [DllImport("__Internal")]
 private static extern void _ReportAchievement(string achievementID, float progress, bool showsCompletionBanner);
 #endif
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by liortal · Aug 30, 2016 at 06:06 AM

The problem might be related to plugins and how they are imported.

From the error, it is seen that some functions cannot be found during linkage:

Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14914: error: undefined reference to 'IOSInit'

I believe what happens, is that Facebook's SDK somehow exposes certain native functions (marked with static extern, and decorated with the [DllImport] attribute), but these are only related to iOS (their implementation is provided as a native library).

Now that your Android code is also compiled into native code, these libraries are attempted to be linked, but are not found (they are only provided for iOS).

It would help to know what Facebook SDK version you are using. You can attempt to search for one of these functions, e.g: IOSLogInWithReadPermissions. Search for any references to it in your code and verify that it is only called and used on iOS (inside #if UNITY_IOS).

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

106 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Help! i am not able to build my project! 0 Answers

Can't Build with IL2CPP for Android after 2018.3.0 Update(Empty Project) 1 Answer

il2cpp android build error 2019.2.19f1 1 Answer

Android app not building after switching to il2cpp 0 Answers

IL2CPP exception optimization 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges