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
25
Question by ceminal · Jan 22, 2013 at 05:26 AM · buildxcodesimulator

Xcode Simulator doesn't work with Unity build

I've made a build of my Unity app. (Lion, Unity 4.0, Xcode 4.5.2)

I brought it into Xcode to see what it would look like on Simulator.

It gives me no option other than "iOS Device". I do not have the option of viewing it on Simulator. When I hit "Run", I'm given a popup: "Xcode cannot run using the selected device. No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination." (Yes, I'd like to select the simulator, unfortunately, it doesn't give me the option).

I then started just a generic app project in Xcode, and it gives me the options of: "iOS Device, iPad 6.0 Simulator or iPhone 6.0 Simulator". I can view a generic Xcode app on Simulator just fine. Simulator works.

But why can't I view the Unity build with Simulator? Am I missing a step in Unity or Xcode?

I have screen caps: First ones is the Unity build. 2nd is the xcode app that works fine.

alt text

alt text

unity_app_xcode_01.gif (30.2 kB)
unity_app_xcode_02.gif (49.0 kB)
Comment
Add comment · Show 3
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 POLYGAMe · Jan 22, 2013 at 08:39 AM 0
Share

Damn, I knew the answer to that and you beat me to it. Lol.

avatar image zhuchun · Jul 25, 2013 at 02:22 AM 0
Share

helpful, thank you

avatar image vaelen · Feb 05, 2014 at 09:08 PM 0
Share

Thanks this was a life saver.

3 Replies

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

Answer by ceminal · Jan 22, 2013 at 08:13 AM

Ok, I figured it out for myself.

In Unity, you must click on Build Settings > Player Settings And in Inspector, choose settings for iOS > Other Settings > SDK Version and make sure "Simulator SDK" is selected.

Now in Xcode, it can be viewed in the iPhone Simulator.

Comment
Add comment · Show 6 · 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 JPBroniac · Jan 04, 2015 at 11:09 PM 0
Share

Thx! Wasted too much time on this before reading your post.

avatar image illustir · Aug 04, 2015 at 04:19 PM 1
Share

Wow, that is obscure!

avatar image KTRACK723 · Aug 07, 2015 at 02:49 PM 0
Share

Thanks, bro. I was going almost crazy about it and reinstalling Xcode Like 5 Times until I found this.

avatar image AdamStox · Jan 13, 2017 at 05:25 PM 0
Share

You're a life saver!

avatar image siggijg · Jan 03, 2018 at 02:03 PM 0
Share

This is still the only answer to this on the web. Thanks!

Show more comments
avatar image
0

Answer by rgarrett7 · Aug 11, 2017 at 11:20 AM

Holy cow! I spent a day messing with Xcode. I never would have figured this out. Works great now. Many thanks!

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 MartinGebske · Oct 04, 2017 at 12:24 PM

Strangely I'm getting errors in UnityMetalSupport.h although I don't use Metal after all. This file comes in Unity>Classes> and is part of the Cardboard SDK. Which is weird because I don't have any Cardboad SDKs in my project. I'm using Unity 5.3 any hints?

Thanks in advance Martin

Comment
Add comment · Show 2 · 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 Golbros · Oct 04, 2017 at 11:51 PM 1
Share

Just delete the enum $$anonymous$$TLPixelFormat in the Unity$$anonymous$$etalSupport.h file and it works.

avatar image Raheel217 · Nov 16, 2017 at 11:39 AM 1
Share

It show error on this line. typedef NSUInteger $$anonymous$$TLPixelsFormat; enum { $$anonymous$$TLPixelFormatBGRA8Unorm, $$anonymous$$TLPixelFormatBGRA8Unorm_sRGB, }; Here i change this typedef NSUInteger $$anonymous$$TLPixelsFormat; enum { mTLPixelFormatBGRA8Unorm, mTLPixelFormatBGRA8Unorm_sRGB, }; and my build run on emulator.

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

28 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

Related Questions

A node in a childnode? 1 Answer

Error creating ios simulator build for facebook review 1 Answer

Xcode error dyld: symbol not found: _glbeginquery 0 Answers

Application quit shows error in iOS 1 Answer

Distribute terrain in zones 3 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