Skip to content

Commit 052cee0

Browse files
committed
fixed:ios build failure
1 parent ad7cbdc commit 052cee0

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.github/workflows/iosbuild.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,7 @@ jobs:
4949
make PLATFORM=ios
5050
cd ..
5151
cd XEngine_AIApi
52+
make PLATFORM=ios
53+
cd ..
54+
cd XEngine_Verification
5255
make PLATFORM=ios

XEngine_Module/XEngine_MSGNotify/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ else ifeq ($(PLATFORM), android)
5757
LOADBIN = -Wl,-rpath=./,--disable-new-dtags
5858
SDKPATH = $(HOME)/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
5959
CC = $(SDKPATH) -Wall -fPIC -std=c++20 -target aarch64-linux-android30
60+
else ifeq ($(PLATFORM), ios)
61+
PLATVER = -D __IOS__
62+
FILEEXT = dylib
63+
LIBFLAG = -dynamiclib
64+
LOADHDR += -I $(HOME)/XEngine_IOS_Arm64
65+
LOADSO += -L $(HOME)/XEngine_IOS_Arm64/XEngine_IOS/XEngine_BaseLib -L $(HOME)/XEngine_IOS_Arm64/XEngine_IOS/XEngine_Client
66+
SDKPATH = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk
67+
CC = g++ -Wall -fPIC -std=c++20 -arch arm64 -Wno-deprecated-declarations -isysroot ${SDKPATH} -miphoneos-version-min=16.0
6068
endif
6169

6270
all:$(OBJECTS)

XEngine_Module/XEngine_Token/Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ else
2020
FLAGS = -c
2121
DEBUG = -g -D _DEBUG
2222
else
23-
FLAGS = -c -lc_p
24-
DEBUG = -g -pg -D _DEBUG
23+
FLAGS = -c
24+
DEBUG = -g -D _DEBUG
2525
endif
2626
endif
2727

@@ -57,6 +57,14 @@ else ifeq ($(PLATFORM), android)
5757
LOADBIN = -Wl,-rpath=./,--disable-new-dtags
5858
SDKPATH = $(HOME)/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
5959
CC = $(SDKPATH) -Wall -fPIC -std=c++20 -target aarch64-linux-android30
60+
else ifeq ($(PLATFORM), ios)
61+
PLATVER = -D __IOS__
62+
FILEEXT = dylib
63+
LIBFLAG = -dynamiclib
64+
LOADHDR += -I $(HOME)/XEngine_IOS_Arm64
65+
LOADSO += -L $(HOME)/XEngine_IOS_Arm64/XEngine_IOS/XEngine_BaseLib
66+
SDKPATH = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk
67+
CC = g++ -Wall -fPIC -std=c++20 -arch arm64 -Wno-deprecated-declarations -isysroot ${SDKPATH} -miphoneos-version-min=16.0
6068
endif
6169

6270
all:$(OBJECTS)

0 commit comments

Comments
 (0)