diff --git a/ios/CustomTarget_LibreOffice_app.mk b/ios/CustomTarget_LibreOffice_app.mk index 7ec50345bc8f..719ff0905bb7 100644 --- a/ios/CustomTarget_LibreOffice_app.mk +++ b/ios/CustomTarget_LibreOffice_app.mk @@ -12,7 +12,10 @@ $(eval $(call gb_CustomTarget_CustomTarget,ios/LibreOffice_app)) # looking for the "iarmv7" or "i386" in the -arch option that is part # of $(CC) -ifneq ($(filter i386,$(CC)),) +ifneq ($(filter arm64,$(CC)),) +xcode_sdk=iphoneos +xcode_arch=arm64 +else ifneq ($(filter i386,$(CC)),) xcode_sdk=iphonesimulator xcode_arch=i386 else