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
7
Question by eliastds91 · Dec 21, 2016 at 07:31 AM · iosbuild-errorxcodeipadstrange

iOS build error: use of undeclared identifier 'Unity' and 'UI'

Hi,

When building for iOS, I go to xcode and try to run it on the iPad but it throws the following errors:

alt text

The strange thing is that it works fine with the simulator SDK and it even tried to work the first time I tried running it on the iPad but didn't have the password for the iCloud account associated with it.

I tried everything, deleted the iOS build, reverted the whole unity project, changing settings back and nothing worked.

I even tried removing and adding imports in the pch file like I've read in another post but it seems it is not the same issue.

unity-ios.jpg (436.5 kB)
Comment
Add comment · Show 1
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 CyberManiak · Feb 06, 2017 at 11:46 AM 0
Share

Same exact thing happens to me. There's an issue open about this. I've added my vote to it.

I would downgrade back to 5.4, but it seems that it can't be done. 5.5 is the first version that uses new serialization and downgrading is impossible. Have someone submitted a bug report? I can't submit out project, and this issue doesn't seem to affect new projects.

7 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by PopovVadim · Feb 01, 2017 at 07:20 AM

I experience the same issue. Here are the steps which led me to it (maybe that would produce some ideas):

  • I had a project made with Unity 5.4.1;

  • Then I decided to try a new version 5.5.1;

  • In Unity Editor everything works great, Android builds are ok;

  • If I set mono2x in iOS Player settings with any kind of stripping, it gives me these errors in xcode.

Disabling stripping or using IL2CPP solves it, but that is not an option for me due to the build size

The issue occurs on 5.5. versions. 5.4. is okay.

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 thiagolr · Apr 21, 2017 at 12:22 AM 0
Share

I disabled the stripping and it worked!

avatar image
1

Answer by BojoXZ · Jan 24, 2017 at 08:07 PM

Has anyone figured this out?

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 macropp · Dec 21, 2016 at 10:36 AM

I am having the same problem, but only on this line:

 RegisterClass<Unity::Component>();

@eliastds91 Did you fix this one?

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 eliastds91 · Dec 21, 2016 at 08:14 PM 0
Share

No, not yet, I was about to try to compile a blank project to see what happens but even if it works it wouldn't help me with the one I need it to work.

Please let me know if you find anything about it.

avatar image
0

Answer by murteas · Dec 27, 2016 at 10:18 PM

Same error but with the cloud build. Would love to know what to do to get this fixed.

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 macropp · Dec 28, 2016 at 08:04 AM 0
Share

You just need to disable stripping in Unity and it'll fix the errors. But it's a "not so good" solution.

avatar image BojoXZ macropp · Jan 24, 2017 at 08:11 PM 0
Share

@macropp why is it a "not so good" solution?

avatar image PopovVadim BojoXZ · Feb 01, 2017 at 06:08 AM 0
Share

Because stripping optimizes ios builds in terms of space.

avatar image
0

Answer by eliastds91 · Feb 03, 2017 at 06:27 PM

@macropp I couldn´t resolve it and the project priority is low. When I take over the project again, I will publish the progress I have made.

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
  • 1
  • 2
  • ›

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

111 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

Related Questions

Unity iOS - Wont compile in Xcode 2 Answers

Xcode stuck / hangs when compiling source files for Unity project 5 Answers

Can't build with simulator SDK selected! 2 Answers

Xcode 7.0 build error 1 Answer

"Module 'GoogleMobileAds' not found." 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