Skip to content

Commit

Permalink
chore(ios): set cpp version to c++17
Browse files Browse the repository at this point in the history
  • Loading branch information
ozonelmy authored and zoomchan-cxj committed Dec 5, 2022
1 parent 98d00c1 commit 19d4ec9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/ios-demo/HippyDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = "";
Expand Down Expand Up @@ -363,6 +364,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = "";
Expand Down
5 changes: 4 additions & 1 deletion hippy.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ Pod::Spec.new do |s|
cores.exclude_files = ['core/include/core/napi/v8','core/src/napi/v8','core/js','core/third_party/base/src/platform/adr', 'core/include/core/inspector', 'core/src/inspector']
#this setting causes 'There are header files outside of the header_mappings_dir'
# cores.header_mappings_dir = 'core/include/'
cores.xcconfig = {'HEADER_SEARCH_PATHS' => '${PODS_ROOT}/hippy/core/third_party/base/include/ ${PODS_ROOT}/hippy/core/include/'}
cores.xcconfig = {
'HEADER_SEARCH_PATHS' => '${PODS_ROOT}/hippy/core/third_party/base/include/ ${PODS_ROOT}/hippy/core/include/',
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17'
}
puts 'hippy subspec \'core\' read end'
end
end
2 changes: 2 additions & 0 deletions ios/sdk/HippyLibrary.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1933,6 +1933,7 @@
F4C92876291C96010078351C /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
CODE_SIGN_STYLE = Automatic;
HEADER_SEARCH_PATHS = (
"$(SRCROOT)/../../core/include",
Expand All @@ -1948,6 +1949,7 @@
F4C92877291C96010078351C /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
CODE_SIGN_STYLE = Automatic;
GCC_PREPROCESSOR_DEFINITIONS = "NDEBUG=1";
HEADER_SEARCH_PATHS = (
Expand Down

0 comments on commit 19d4ec9

Please sign in to comment.