Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 AlexUser · Apr 07, 2014 at 12:13 PM · u3dxt3.5

Android + U3DXT: assembly stripping failed

I am using Unity 3.5.7f6 on Mac; lastest U3DXT. Build Android, code stripping enabled. When I am trying to build a project with U3DXT, I get following error:

 UnityException: Failed assemblies stripper: /Applications/Unity3.5/Unity3.5.app/Contents/Frameworks/Mono/bin/mono "/Applications/Unity3.5/Unity3.5.app/Contents/Frameworks/Tools/UnusedBytecodeStripper/UnusedBytecodeStripper.exe" -l none -c link -a "Assembly-CSharp-firstpass.dll" -a "Assembly-CSharp.dll" -out output -x "/Applications/Unity3.5/Unity3.5.app/Contents/Frameworks/Tools/UnusedBytecodeStripper/link.xml" -d "Temp/StagingArea/Data/Managed" -x "/Users/user/Application/unity/Assets/link.xml" -x "tmplink.xml" current dir : Temp/StagingArea/Data/Managed
  result file exists: False
 stdout: 
 stderr: Unhandled Exception: Mono.Linker.ResolutionException: Can not resolve reference: UnityEngine.iPhoneGeneration UnityEngine.iPhone::get_generation()  at 
 Mono.Linker.Steps.MarkStep.MarkMethod (Mono.Cecil.MethodReference reference, System.Object markedby) [0x00000] in <filename unknown>:0   at
 Mono.Linker.Steps.MarkStep.MarkInstruction (Mono.Cecil.Cil.Instruction instruction, Mono.Cecil.MethodDefinition markedby) [0x00000] in <filename unknown>:0   at 
 Mono.Linker.Steps.MarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody body) [0x00000] in <filename unknown>:0   at 
 Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) [0x00000] in <filename unknown>:0   at 
 Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00000] in <filename unknown>:0   at Mono.Linker.Steps.MarkStep.Process () [0x00000] in <filename unknown>:0   at 
 Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context) [0x00000] in <filename unknown>:0   at 
 Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00000] in <filename unknown>:0   at 
 UnusedBytecodeStripper.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 
 
 UnityEditor.MonoProcessUtility.RunMonoProcess (System.Diagnostics.Process process, System.String name, System.String resultingFile)
 UnityEditor.MonoAssemblyStripping.MonoLink (BuildTarget buildTarget, System.String managedLibrariesDirectory, System.String[] input, System.String[] allAssemblies, UnityEditor.RuntimeClassRegistry usedClasses)
 UnityEditor.HostView:OnGUI()

Removing U3DXT solves the problem. Disabling code stripping solves the problem, but any other stripping level still does not work. Also, I found another question with similar problem, but there is no answer still.

What should I do to fix this?

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
0

Answer by u3dxt · Apr 10, 2014 at 05:32 AM

Hi, since U3DXT currently only supports iOS, the workaround is like you said, to delete it when building for Android.

Comment
Add comment · Show 3 · 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 mikemvpi · Apr 11, 2014 at 08:58 AM 0
Share

This is a very disappointing answer. We don't expect U3DXT to support anything except iOS, but we do expect it to not disturb builds for other platforms.

The essence of Unity3D is ability to build same project for variety of platforms and it would be rather troublesome to setup build scripts that would temporally delete all U3DXT libs for Andriid build and then return them back.

Could you please consider handling it on your side?

avatar image u3dxt · Apr 13, 2014 at 09:49 PM 0
Share

Hi, that is a reasonable argument. We will do something about it. But, we will likely just rename the files on our side when switching to Android or other platforms, and rename them back when switching to iOS.

avatar image tomeee · Apr 02, 2015 at 06:22 AM 0
Share

@u3dxt, what's the solution now?

avatar image
0

Answer by chetanisinanand · Oct 16, 2014 at 07:25 PM

I encountered same issue and here I have Steps to resolve the issue while stripping is enabled and Building for Android Platform:

  1. Delete entire U3DXT directory (inside Assets directory )

  2. Make sure U3DXT classes/methods are not accessed/used anywhere inside project.

  3. Delete the " link.xml " file under Asset directory (Most Important)

Build with stripping on unity Pro and this should do the trick :-)

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

24 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

Related Questions

Microphone in 3.5 beta 1 Answer

Help getting started with ActionScript 1 Answer

Any way to build and submit a unity 3.5 project to appstore after Xcode6 became minimum requirement?to 0 Answers

GameKit Authenticates but can't post scores to leaderboard 3 Answers

u3dxt: how to check if iCloud is connected? 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