diff --git a/.github/workflows/native-compile-linux.yml b/.github/workflows/native-compile-linux.yml index 3970f7aa78b..96831762f9b 100644 --- a/.github/workflows/native-compile-linux.yml +++ b/.github/workflows/native-compile-linux.yml @@ -17,7 +17,7 @@ jobs: name: "Linux-Ubuntu" if: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - name: Download external libraries diff --git a/.github/workflows/native-linter-android.yml b/.github/workflows/native-linter-android.yml index 89f8b66a4f2..a6f99140844 100644 --- a/.github/workflows/native-linter-android.yml +++ b/.github/workflows/native-linter-android.yml @@ -20,7 +20,7 @@ jobs: # Set the type of machine to run on if: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: # Checks out a copy of your repository on the ubuntu-latest machine diff --git a/native/cocos/base/BinaryArchive.h b/native/cocos/base/BinaryArchive.h index 9f79cabfc43..a426589a259 100644 --- a/native/cocos/base/BinaryArchive.h +++ b/native/cocos/base/BinaryArchive.h @@ -24,6 +24,7 @@ #pragma once +#include #include namespace cc { diff --git a/native/cocos/core/utils/IDGenerator.h b/native/cocos/core/utils/IDGenerator.h index 7af146bba2e..9e7057f223a 100644 --- a/native/cocos/core/utils/IDGenerator.h +++ b/native/cocos/core/utils/IDGenerator.h @@ -24,6 +24,7 @@ #pragma once +#include #include "base/std/container/string.h" namespace cc { diff --git a/templates/cmake/apple.cmake b/templates/cmake/apple.cmake index aeae4c3727a..0936b57200b 100644 --- a/templates/cmake/apple.cmake +++ b/templates/cmake/apple.cmake @@ -102,6 +102,8 @@ macro(cc_ios_after_target _target_name) set(CMAKE_XCODE_ATTRIBUTE_VALID_ARCHS[sdk=iphoneos*] "arm64") set(CMAKE_XCODE_ATTRIBUTE_VALID_ARCHS[sdk=iphonesimulator*] "x86_64") + set(CMAKE_XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2") + target_link_libraries(${CC_EXECUTABLE_NAME} ${ENGINE_NAME}) target_include_directories(${CC_EXECUTABLE_NAME} PRIVATE