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\$
2
  • \$\begingroup\$ I would really appreciate some help here \$\endgroup\$ Sep 26, 2017 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, 2017 at 10:15

2 Answers 2

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,
//};
\$\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.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .