• 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
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
zhuchun
Kiwasi
kayy
anisabboud
Buzzrick
KTRACK723
thunderrabbit
rocket5tim
buczek
grag0042
giorashc
Lohoris2
outofcoffee
spybart
davis252
And 11 more...

People who like this

26 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
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
Kiwasi
unglevan
kayy
StarCmd
anisabboud
Makhkk
Big-Ed
Buzzrick
algazel
TheEvilRabbit
viguys
Naphier
atifmahmood29
illustir
KTRACK723
And 74 more...

People who like this

89 Show 7 · 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

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

People who like this

0 Show 0 · 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

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

People who like this

0 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 MTLPixelFormat in the UnityMetalSupport.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 MTLPixelsFormat; enum { MTLPixelFormatBGRA8Unorm, MTLPixelFormatBGRA8Unorm_sRGB, }; Here i change this typedef NSUInteger MTLPixelsFormat; 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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

29 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

Related Questions

Unity xcode project won't compile... 1 Answer

resubmit older ios app with old unity? 0 Answers

Failed Unity game built on Xcode 2 Answers

From Unity to Xcode.... 1 Answer

releasing a demo to app store 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