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 /
avatar image
0
Question by Stranger-Games · Dec 19, 2015 at 02:52 PM · il2cppwindows 10

windows 10 universal SDK and il2cpp

Hi

I have a windows 8.1 machine with unity 5.3.0f4. I am trying to port my app to Universal 10 SDK. I faced a lot of problems due to missing classes in .NET, so I switched to il2cpp

I get the following error.

Failed running E:\Program Files\Unity5.3.0f4\Editor\Data\Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe -out "D:\path\Temp\StagingArea\Data\Managed\tempStrip" -l none -c link -b False -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Core.xml" -f "E:\Program Files\Unity5.3.0f4\Editor\Data\il2cpp\LinkerDescriptors" -x "D:\path/Temp\StagingArea\Data/methods_pointedto_by_uievents.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\AI.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Animation.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Audio.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\CloudWebServices.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Core.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\IMGUI.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\JSONSerialize.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\ParticlesLegacy.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\ParticleSystem.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Physics.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Physics2D.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Terrain.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\TerrainPhysics.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\TextRendering.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\UI.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\UNET.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\UnityAds.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\UnityAnalytics.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\UnityConnect.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\UnityWebRequest.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\VR.xml" -x "E:\Program Files\Unity5.3.0f4\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Web.xml" -x "path\Assets\link.xml" -d "path\Temp\StagingArea\Data\Managed" -a "path\Temp\StagingArea\Data\Managed\Assembly-CSharp-firstpass.dll" -a "path\Temp\StagingArea\Data\Managed\Assembly-CSharp.dll" -a "path\Temp\StagingArea\Data\Managed\Assembly-UnityScript.dll" -a "path\Temp\StagingArea\Data\Managed\UnityEngine.UI.dll" -a "path\Temp\StagingArea\Data\Managed\Tapjoy.dll"

stdout: Fatal error in Mono CIL Linker Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Microsoft.Phone, Version=8.0.0.0, Culture=neutral, PublicKeyToken=24eec0d8c86cda1e' at Mono.Linker.LinkContext.Resolve(IMetadataScope scope) at Mono.Linker.Steps.LoadReferencesStep.ProcessReferences(AssemblyDefinition assembly) at Mono.Linker.Steps.LoadReferencesStep.ProcessReferences(AssemblyDefinition assembly) at Mono.Linker.Steps.BaseStep.Process(LinkContext context) at Mono.Linker.Pipeline.Process(LinkContext context) at Mono.Linker.Driver.RunDriver(Driver driver) stderr:

UnityEngine.Debug:LogError(Object) UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:94) UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:107) UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:100) UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(String, IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:201) UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:131) UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:201) UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:128) PostProcessUAPIl2Cpp:RunIL2CPP() (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessUAPIl2Cpp.cs:92) PostProcessWinRT:Process() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:131) UnityEditor.HostView:OnGUI()

The projects just compiles fine on iOS, which I guess uses the same il2cpp.

Any helps is greatly appreciated.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Tautvydas-Zilys · Dec 21, 2015 at 03:18 PM

Hi,

it seems that one of your plugins is referencing Microsoft.Phone.dll, which is NOT available in the .NET 3.5 profile that Unity uses for all IL2CPP platforms. This particular assembly is only available when targeting Windows Phone 8.0, and using .NET scripting backend. The plugin that is referencing this DLL is not compatible with any other platform.

The easiest way to solve your issue is to mark the DLL in question to not be compatible with "Windows Store" platform in the plugin inspector. If you can successfully build for iOS, then the plugin is already marked as not compatible with iOS, so you merely need to apply the same setting for Windows Store.

You can read about what kind of plugins are currently supported on IL2CPP scripting backend here:

http://docs.unity3d.com/Manual/windowsstore-plugins-il2cpp.html

Comment
Add comment · Show 1 · 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 Stranger-Games · Dec 23, 2015 at 12:59 AM 0
Share

Thank you very much for your answer. I will test and accept the answer if it is solved.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

WACK test failed APPCONTAINER 1 Answer

Problem with il2cpp and unityplayer.dll 0 Answers

Does Unity 5.5 support touch and multi touch gestures on Windows 8.1 and 10 standalone touch screen device? 2 Answers

Failing to build hololens app : UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors 1 Answer

I'm unable to decompress/import unity packages now that I use a new windows 10 laptop. 0 Answers


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