diff --git a/engine/build.cpp b/engine/build.cpp index 7cca117..49f196b 100644 --- a/engine/build.cpp +++ b/engine/build.cpp @@ -29,7 +29,7 @@ DECLARE_BUILD_STAGE(engine) "miniaudio.cpp", - "kotgui.cpp", + "kottui.cpp", }; if ( GET_PROJECT_VALUE(config, "steam") == "true" ) diff --git a/engine/kotgui.cpp b/engine/kotgui.cpp deleted file mode 100644 index 1b88f5f..0000000 --- a/engine/kotgui.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include "kotgui/kotgui.h" - -class CKotUIManager: public IKotUIManager -{ -public: - virtual void BeginDrawing() = 0; - virtual void EndDrawing() = 0; - - virtual IRenderContext *GetContext() = 0; - virtual IShader *GetShader( EKotUIShader eShader ) = 0; - virtual IRenderCommandList *GetCommandList() = 0; -}; - -namespace kotgui -{ -void DrawText( - Alignment_t position, - Alignment_t offset, - float fRotation, - - Color4 color, - - uint32_t *pText, - uint32_t uSize, - IRenderFont *pFont, - float fTextSize -) -{ - -} -} diff --git a/engine/kottui.cpp b/engine/kottui.cpp new file mode 100644 index 0000000..77dbd80 --- /dev/null +++ b/engine/kottui.cpp @@ -0,0 +1,23 @@ +#include "kottui/kottui.h" + +class CKotUIBuffer: public IKotUIBuffer +{ +public: + virtual void SetColor( char c ) = 0; + virtual void SetPosition( int iY, int iX ) = 0; + virtual void Printf(const char *szFormat, ...) = 0; + virtual void PutChar( char c ) = 0; + virtual void Clear( char c ) = 0; +}; + +class CKotUIManager: public IKotUIManager +{ +public: + virtual void SetTextSize( int iY, int iX ) = 0; + virtual void SetTextFont( IRenderFont *pFont ) = 0; + + virtual void CreateBuffer( int iWidth, int iHeight, int iY, int iX ) = 0; + virtual void Draw( IRenderContext *pRenderContext ); +}; + +IKotUIManager *KotUIManager(); diff --git a/external/GameNetworkingSockets b/external/GameNetworkingSockets index f9224c1..517fff0 160000 --- a/external/GameNetworkingSockets +++ b/external/GameNetworkingSockets @@ -1 +1 @@ -Subproject commit f9224c168b403c8b9abca7fc326163ac8728b41e +Subproject commit 517fff0cf6866ba163f4f016b0ef28f365c06c05 diff --git a/external/SDL b/external/SDL index ab19d09..1d08131 160000 --- a/external/SDL +++ b/external/SDL @@ -1 +1 @@ -Subproject commit ab19d09939f7c3365508f3894ae63d9faa16c529 +Subproject commit 1d081314a89eb6bfd22bbc0224b604533ae6156b diff --git a/external/SPIRV-Tools b/external/SPIRV-Tools new file mode 160000 index 0000000..0436c4b --- /dev/null +++ b/external/SPIRV-Tools @@ -0,0 +1 @@ +Subproject commit 0436c4b0556fbfcff46610e888974965fd36be2a diff --git a/external/Vulkan-Headers b/external/Vulkan-Headers index 8864cdc..29184b9 160000 --- a/external/Vulkan-Headers +++ b/external/Vulkan-Headers @@ -1 +1 @@ -Subproject commit 8864cdc896bbc2a9b6eb36b3218fc9ef57908d77 +Subproject commit 29184b98984f6169a5e83e97557a77cff1e5b0ca diff --git a/external/Vulkan-Utility-Libraries b/external/Vulkan-Utility-Libraries index d88097b..c15a1ac 160000 --- a/external/Vulkan-Utility-Libraries +++ b/external/Vulkan-Utility-Libraries @@ -1 +1 @@ -Subproject commit d88097b51e70f357a96237c4571ded3433ccde99 +Subproject commit c15a1ac31670cb2ce61c235f070fb40ec6e42612 diff --git a/external/funnystdlib b/external/funnystdlib index 8ea2e08..8f8343e 160000 --- a/external/funnystdlib +++ b/external/funnystdlib @@ -1 +1 @@ -Subproject commit 8ea2e08b244c9c57ab22b6ff293904723eb39bc9 +Subproject commit 8f8343e2506a7ec51b8cb644e050f789614a803e diff --git a/external/slang b/external/slang index ac1b066..f267cb7 160000 --- a/external/slang +++ b/external/slang @@ -1 +1 @@ -Subproject commit ac1b066c55322df195e5d494b141fe22dc82acda +Subproject commit f267cb77a09b0f4cf083a9585bc1ddb3744c310a diff --git a/external/stb b/external/stb index 31c1ad3..e6cd956 160000 --- a/external/stb +++ b/external/stb @@ -1 +1 @@ -Subproject commit 31c1ad37456438565541f4919958214b6e762fb4 +Subproject commit e6cd9561ea6dae43d41633797745789d142b691e diff --git a/external/volk b/external/volk index 3ca312a..e91ceff 160000 --- a/external/volk +++ b/external/volk @@ -1 +1 @@ -Subproject commit 3ca312a4f38baa63d8006b6905abbeeb89c8087d +Subproject commit e91ceff7db05f92ac8b498c9631235a6a73566e2 diff --git a/external/xtool b/external/xtool index c65d45b..f12a84e 160000 --- a/external/xtool +++ b/external/xtool @@ -1 +1 @@ -Subproject commit c65d45ba606786ccdd14f9103edb4f708f34a6d1 +Subproject commit f12a84e960fa9bced1249a8d233ab8eafca28f6f diff --git a/funnyassets/textures/dev/image.png b/funnyassets/textures/dev/image.png new file mode 100644 index 0000000..182aa96 Binary files /dev/null and b/funnyassets/textures/dev/image.png differ diff --git a/funnygame.xcodeproj/project.pbxproj b/funnygame.xcodeproj/project.pbxproj new file mode 100644 index 0000000..fab1df9 --- /dev/null +++ b/funnygame.xcodeproj/project.pbxproj @@ -0,0 +1,297 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 77; + objects = { + +/* Begin PBXAggregateTarget section */ + 244BC7BC2FAA596A0029019D /* funnygame */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 244BC7BD2FAA596A0029019D /* Build configuration list for PBXAggregateTarget "funnygame" */; + buildPhases = ( + ); + dependencies = ( + 244BC7C52FAA5A320029019D /* PBXTargetDependency */, + ); + name = funnygame; + packageProductDependencies = ( + ); + productName = funnygame; + }; +/* End PBXAggregateTarget section */ + +/* Begin PBXContainerItemProxy section */ + 244BC7C42FAA5A320029019D /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 24BD88E82FAA3AD800C64B4B /* Project object */; + proxyType = 1; + remoteGlobalIDString = 244BC7C02FAA5A230029019D; + remoteInfo = funnygame_exe; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXGroup section */ + 24BD88E72FAA3AD800C64B4B = { + isa = PBXGroup; + children = ( + ); + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXLegacyTarget section */ + 244BC7C02FAA5A230029019D /* funnygame_exe */ = { + isa = PBXLegacyTarget; + buildArgumentsString = build; + buildConfigurationList = 244BC7C12FAA5A230029019D /* Build configuration list for PBXLegacyTarget "funnygame_exe" */; + buildPhases = ( + ); + buildToolPath = "/Volumes/mnt/rtt/funnystdlib/build/tools/fpc/x86_64-apple-darwin/fpc"; + buildWorkingDirectory = ""; + dependencies = ( + ); + name = funnygame_exe; + packageProductDependencies = ( + ); + passBuildSettingsInEnvironment = 1; + productName = funnygame_exe; + }; +/* End PBXLegacyTarget section */ + +/* Begin PBXProject section */ + 24BD88E82FAA3AD800C64B4B /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastUpgradeCheck = 2640; + TargetAttributes = { + 244BC7BC2FAA596A0029019D = { + CreatedOnToolsVersion = 26.4; + }; + 244BC7C02FAA5A230029019D = { + CreatedOnToolsVersion = 26.4; + }; + }; + }; + buildConfigurationList = 24BD88EB2FAA3AD800C64B4B /* Build configuration list for PBXProject "funnygame" */; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 24BD88E72FAA3AD800C64B4B; + minimizedProjectReferenceProxies = 1; + preferredProjectObjectVersion = 77; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 244BC7BC2FAA596A0029019D /* funnygame */, + 244BC7C02FAA5A230029019D /* funnygame_exe */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXTargetDependency section */ + 244BC7C52FAA5A320029019D /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 244BC7C02FAA5A230029019D /* funnygame_exe */; + targetProxy = 244BC7C42FAA5A320029019D /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 244BC7BE2FAA596A0029019D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = QU3M3RV4XD; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 244BC7BF2FAA596A0029019D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = QU3M3RV4XD; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + 244BC7C22FAA5A230029019D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEBUGGING_SYMBOLS = YES; + DEBUG_INFORMATION_FORMAT = dwarf; + DEVELOPMENT_TEAM = QU3M3RV4XD; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + OTHER_CFLAGS = ""; + OTHER_LDFLAGS = ""; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 244BC7C32FAA5A230029019D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEVELOPMENT_TEAM = QU3M3RV4XD; + OTHER_CFLAGS = ""; + OTHER_LDFLAGS = ""; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + 24BD88ED2FAA3AD800C64B4B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + DEVELOPMENT_TEAM = QU3M3RV4XD; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + }; + name = Debug; + }; + 24BD88EE2FAA3AD800C64B4B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEVELOPMENT_TEAM = QU3M3RV4XD; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 244BC7BD2FAA596A0029019D /* Build configuration list for PBXAggregateTarget "funnygame" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 244BC7BE2FAA596A0029019D /* Debug */, + 244BC7BF2FAA596A0029019D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 244BC7C12FAA5A230029019D /* Build configuration list for PBXLegacyTarget "funnygame_exe" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 244BC7C22FAA5A230029019D /* Debug */, + 244BC7C32FAA5A230029019D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 24BD88EB2FAA3AD800C64B4B /* Build configuration list for PBXProject "funnygame" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 24BD88ED2FAA3AD800C64B4B /* Debug */, + 24BD88EE2FAA3AD800C64B4B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 24BD88E82FAA3AD800C64B4B /* Project object */; +} diff --git a/funnygame.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/funnygame.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/funnygame.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/game/client/milmobaui/menu.cpp b/game/client/milmobaui/menu.cpp new file mode 100644 index 0000000..e69de29 diff --git a/game/client/milmobaui/menu.h b/game/client/milmobaui/menu.h new file mode 100644 index 0000000..e69de29 diff --git a/game/shared/game.h b/game/shared/game.h index 6fe9fe6..5c92d98 100644 --- a/game/shared/game.h +++ b/game/shared/game.h @@ -9,7 +9,7 @@ #include "networkbase.h" #include "iphysics.h" #include "ihumandevice.h" -#include "kotgui/kotgui.h" +#include "kottui/kottui.h" class CEngineVars { @@ -40,8 +40,6 @@ extern EngineConsts_t *g_pEngineConstants; extern IPhysics *g_pPhysics; extern IPhysicsWorld *g_pPhysicsWorld; -extern IKotUIManager *g_pKotUI; - #define FUNNY_SECURE_PORT 27015 #define FUNNY_QUERY_PORT 27016 diff --git a/public/kotgui/kotgui.h b/public/kotgui/kotgui.h deleted file mode 100644 index dd8d1cb..0000000 --- a/public/kotgui/kotgui.h +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef KOTGUI_H -#define KOTGUI_H - -#include "../materialsystem/imaterialsystem.h" -#include "../materialsystem/igamewindow.h" -#include "tier2/iappsystem.h" - -abstract_class IRenderFont -{ -public: - virtual IImage *GetAtlas(); - virtual bool IsLetterPresent( uint32_t letter ); - virtual float GetLetterX( uint32_t letter ); - virtual float GetLetterY( uint32_t letter ); - virtual float GetWidthX( uint32_t letter ); - virtual float GetWidthY( uint32_t letter ); -}; - -struct Alignment_t -{ - int iX; - int iY; - float fX; - float fY; -}; - -struct Color3 -{ - float R; - float G; - float B; -}; - -struct Color4 -{ - float R; - float G; - float B; -}; - - -enum EKotUIShader -{ - k_eKotGUI_Text, - k_eKotGUI_Widget, -}; - -abstract_class IKotUIManager: public IAppSystem2 -{ -public: - virtual void BeginDrawing() = 0; - virtual void EndDrawing() = 0; - - - virtual void DrawText( - Alignment_t position, - Alignment_t offset, - float fRotation, - - Color4 color, - - uint32_t *pText, - uint32_t uSize, - IRenderFont *pFont, - float fTextSize - ) = 0; -}; -IKotUIManager *KotUIManager(); - -#define KOT_UI_INTEFACE_VERSION "KotUI001" - -#endif diff --git a/public/kottui/kottui.h b/public/kottui/kottui.h new file mode 100644 index 0000000..1980b58 --- /dev/null +++ b/public/kottui/kottui.h @@ -0,0 +1,48 @@ +#ifndef KOTTUI_H +#define KOTTUI_H + +#include "../materialsystem/imaterialsystem.h" +#include "../materialsystem/igamewindow.h" +#include "tier2/iappsystem.h" + +abstract_class IRenderFont +{ +public: + virtual IImage *GetAtlas(); + virtual bool IsLetterPresent( uint32_t letter ); + virtual float GetLetterX( uint32_t letter ); + virtual float GetLetterY( uint32_t letter ); + virtual float GetWidthX( uint32_t letter ); + virtual float GetWidthY( uint32_t letter ); +}; + +abstract_class IKotUIBuffer +{ +public: + virtual void SetPosition( int iY, int iX ) = 0; + + virtual void Move( int iY, int iX ) = 0; + + virtual void SetColor( char c ) = 0; + virtual void Clear( char c ) = 0; + + virtual void PutChar( char c ) = 0; + virtual void Printf(const char *szFormat, ...) = 0; + + virtual void Draw( IRenderContext *pRenderContext ); + + virtual void SetTextSize( int iY, int iX ) = 0; + virtual void SetTextFont( IRenderFont *pFont ) = 0; +}; + +abstract_class IKotUIManager: public IAppSystem +{ +public: + virtual void CreateBuffer( int iWidth, int iHeight ) = 0; +}; + +IKotUIManager *KotUIManager(); + +#define KOT_UI_INTEFACE_VERSION "KotUI001" + +#endif diff --git a/utils/Makefile b/utils/Makefile new file mode 100644 index 0000000..62f3edc --- /dev/null +++ b/utils/Makefile @@ -0,0 +1,2 @@ +deploy_on_ios_from_xcode: + cd ../ && fpc build -os ios -arch aarch64