1
\$\begingroup\$

I was able to run my Unity 2017.1.0b10 iOS project successfully on my iPhone 6S+ (Using Xcode 9). I changed the Target SDK to Simulator SDK to try it out on other device simulators then I got the following errors in the UnityMetalSupport.h file.

enter image description here

Below are screenshots of my player settings:

enter image description here

enter image description here

\$\endgroup\$
  • \$\begingroup\$ I would really appreciate some help here \$\endgroup\$ – Containment Sep 26 '17 at 14:49
  • \$\begingroup\$ I also have same problem in Xcode 9 but i m using unity 5.6 and working on VR game. \$\endgroup\$ – manju Oct 18 '17 at 10:15
1
\$\begingroup\$

I got the same error. It looks like simply deleting/commenting out those offending lines works.

//typedef NSUInteger MTLPixelFormat;
//enum
//{
//    MTLPixelFormatBGRA8Unorm,
//    MTLPixelFormatBGRA8Unorm_sRGB,
//};
| improve this answer | |
\$\endgroup\$
0
\$\begingroup\$

Check your build device, change any simulator to "Generic iOS Device". The ENUM produced these errors are already defined in iOS simulators.

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.