Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #690 from openweave/bug/iOS-build
Browse files Browse the repository at this point in the history
Build changes for XCode 13
  • Loading branch information
robszewczyk authored Mar 25, 2022
2 parents f4b1529 + 0dc31ca commit d7619d9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile-iOS
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ AbsTopResultDir = $(PWD)/$(TopRe
TargetTupleStem = apple-darwin
TargetTuple = $(TargetTupleStem)-ios

ARCHS = arm64 armv7 armv7s i386 x86_64
DEVICE_ARCHS = arm64 armv7 armv7s
SIMULATOR_ARCHS = i386 x86_64
ARCHS = $(DEVICE_ARCHS) $(SIMULATOR_ARCHS)

TopTargetLibDir = $(TopResultDir)/$(if $(1),$(1)-,)$(TargetTuple)/lib

Expand All @@ -138,11 +140,14 @@ FrameworkPlist = $(Framework)/$(Framewo
FrameworkModuleMap = $(Framework)/$(FrameworkModulesDirName)/$(FrameworkModuleMapName)

FRAMEWORK_ARCHFLAGS = $(addprefix -arch ,$(ARCHS))
DEVICE_XARCHS = $(foreach arch, $(DEVICE_ARCHS),-Xarch_$(arch) -isysroot$(IOS_DEVICE_SDK))
SIMULATOR_XARCHS = $(foreach arch, $(SIMULATOR_ARCHS),-Xarch_$(arch) -isysroot$(IOS_SIMULATOR_SDK))
FRAMEWORK_FLAGS = \
$(FRAMEWORK_ARCHFLAGS) \
$(IOS_MIN_VERSION_FLAG) \
$(FRAMEWORK_ARCHFLAGS) \
-isysroot $(IOS_DEVICE_SDK) \
$(DEVICE_XARCHS) \
$(SIMULATOR_XARCHS) \
-I$(IOS_DEVICE_SDK)/$(CoreFoundationHeaders) \
-fpic \
-lc++ \
Expand Down

0 comments on commit d7619d9

Please sign in to comment.