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 naviln · Oct 27, 2019 at 09:02 AM · erroriosbuildxcode

iOS Archive error: Build input file cannot be found: '/Users/navil/Desktop/WW3ClientiOS/Classes/Native/Unity.ugui_CodeGen.c' (in target 'Unity-iPhone' from project 'Unity-iPhone')

Hi guys,

I have a question!

I recently upgraded Unity to the latest version (2019.2.10f1) because I'd like to use IAP (in app purchases). My windows and android builds seem to be ok, but my iOS build fails in xCode with the below error (while trying to do the archive):

  • ARCHIVE FAILED **

       The following build commands failed:
         CompileC /Users/navil/Library/Developer/Xcode/DerivedData/Unity-iPhone-hitwrvrwzwmjnhaucycumjzhcenh/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/Unity.ugui_CodeGen.o /Users/navil/Desktop/WW3ClientiOS/Classes/Native/Unity.ugui_CodeGen.c normal armv7 c com.apple.compilers.llvm.clang.1_0.compiler
         (1 failure)
         /Users/navil/Library/Developer/Xcode/DerivedData/Unity-iPhone-hitwrvrwzwmjnhaucycumjzhcenh/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/PrecompiledHeaders/SharedPrecompiledHeaders/17326902885880269110/Prefix.pch -MMD -MT dependencies -MF /Users/navil/Library/Developer/Xcode/DerivedData/Unity-iPhone-hitwrvrwzwmjnhaucycumjzhcenh/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/Unity.ugui_CodeGen.d --serialize-diagnostics /Users/navil/Library/Developer/Xcode/DerivedData/Unity-iPhone-hitwrvrwzwmjnhaucycumjzhcenh/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/Unity.ugui_CodeGen.dia -c /Users/navil/Desktop/WW3ClientiOS/Classes/Native/Unity.ugui_CodeGen.c -o /Users/navil/Library/Developer/Xcode/DerivedData/Unity-iPhone-hitwrvrwzwmjnhaucycumjzhcenh/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/Unity.ugui_CodeGen.o
         error: Build input file cannot be found: '/Users/navil/Desktop/WW3ClientiOS/Classes/Native/Unity.ugui_CodeGen.c' (in target 'Unity-iPhone' from project 'Unity-iPhone')
    
    
    

Do you guys know what Unity.ugui_CodeGen.c is? What can i do fix this error? Am i missing something?

Many thanks! Navil

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
2
Best Answer

Answer by naviln · Oct 29, 2019 at 03:55 PM

Posting my own answer here, in case it helps anyone.

First, i had a new permission that i had to grant in my pre build script (in addition to the 2 lines already had previously):

chmod +x /Users/navil/Desktop/WW3ClientiOS/MapFileParser.sh

chmod +x /Users/navil/Desktop/WW3ClientiOS/process_symbols.sh

new one: chmod +x /Users/navil/Desktop/WW3ClientiOS/usymtool


And finally, the main issue - xcode cached content. In /Users/navil/Library/Developer/Xcode/, there was a bunch of cached content related to older builds, and when trying to run the xcode build from the command line, it was using this old junk!

I manually navigated to this folder, deleted all the files, reran the build from my server, and it all worked ok. whew.

What a painful way to discover this. In any case, I learnt my lesson. Delete ALL cached content from xcode after any Unity upgrade!

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
0

Answer by yanhui · Jul 31, 2020 at 08:45 AM

Good job, bro. I met a same problem. When I Archive my project,it said that can't find some plugin file which i have already deleted and unused.

So, I

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

188 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 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

Xcode build fails, How to ? 1 Answer

ITMS-90086 Missing 64-bit support,I got this error in Xcode 1 Answer

Why does Unity 5.4 include the contents of Plugins/Android to iOS Project? 1 Answer

I'm having trouble understanding this xcode error,I'm having trouble understanding what this xcode error is referring to 0 Answers

IOS Build works on iPod but not on iPhone?! 2 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