SceneKit.h doesn't compile as Objective-C++

Number:rdar://40824697 Date Originated:
Status:Closed Resolved:
Product:iOS SDK Product Version:Xcode 10 beta 1
Classification: Reproducible:

SceneKit.h doesn't compile as Objective-C++

Steps to Reproduce:

Execute in terminal (as a single line):

echo "#include <SceneKit/SceneKit.h>" | /Applications/ -isysroot /Applications/ -x objective-c++ -mios-simulator-version-min=6.0 -c -

Expected Results:

No error

Actual Results:

In file included from <stdin>:1:
In file included from /Applications/
In file included from /Applications/
In file included from /Applications/
In file included from /Applications/
/Applications/ fatal error: 'cmath' file not found
#include <cmath>
1 error generated.


Version 10.0 beta (10L176w)


Jun 19 Engineering has provided the following information regarding this issue: Thanks for reporting this issue. We have removed support for the old GNU C++ library (stdlibc++) in Xcode 10. Because you’re targeting (iOS6), the compiler selects stdlibc++ by default, which is not longer supported. We will add a new warning in Xcode 10 that clarifies that. To fix your issue you can either upgrade the deployment target to iOS7+ or pass en explicit -stdlib=libc++ argument to your build command (Xcode’s “C++ Standard Library Setting”).

By rolfbjarne at April 11, 2019, 2:07 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!