rerun-io / rerun

Visualize streams of multimodal data. Fast, easy to use, and simple to integrate. Built in Rust using egui.
https://rerun.io/
Apache License 2.0
5.65k stars 255 forks source link

mobile support for iOS / iPadOS devices #4198

Open pzoltowski opened 7 months ago

pzoltowski commented 7 months ago

Is your feature request related to a problem? Please describe.

It would be great for rerun SDK to have iOS support for remote logging (without visualizer).

Describe the solution you'd like

Initially would be good to make rerun sdk crate to work on iOS devices. Additionally even better if there would official C++ rerun SDK build for iOS architecture.

Additional context

I did give it a try to see if I can use rerun sdk crate compiled but failed to compile it. I used bevy mobile iOS support as a template to test rerun SDK.

Here instructions for bevy iOS docs: https://github.com/bevyengine/bevy/tree/latest/examples#ios

And here is the bevy ios example I reused (it compiled, deployed and worked successfuly): https://github.com/bevyengine/bevy/tree/latest/examples/mobile

I tried both ways to add rerun to dependencies:

[dependencies]
bevy = { path = "../../" }
re_sdk = "0.10.1"
[dependencies]
bevy = { path = "../../" }
rerun = "0.10.1"

but got compilation error and got stuck with moving things further:

I think it might be related to (but logs are not that clear to me): could not compilezune-jpeg(lib) due to previous error

full log:


Showing Recent Messages
Prepare packages
Prepare build
ComputeTargetDependencyGraph

note: Building targets in dependency order
note: Target dependency graph (2 targets)
    Target 'bevy_mobile_example' in project 'bevy_mobile_example'
        ➜ Explicit dependency on target 'cargo_ios' in project 'bevy_mobile_example'
    Target 'cargo_ios' in project 'bevy_mobile_example' (no dependencies)

Building targets in dependency order

Target dependency graph (2 targets)

GatherProvisioningInputs

CreateBuildDescription

ClangStatCache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk /Users/patryk/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphoneos17.0-21A326-1e1d10ddc0bdcd738a98873f48b793a5.sdkstatcache
    cd /Users/patryk/Developer/compile/bevy/examples/mobile/bevy_mobile_example.xcodeproj
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk -o /Users/patryk/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphoneos17.0-21A326-1e1d10ddc0bdcd738a98873f48b793a5.sdkstatcache

Build target cargo_ios
ExternalBuildToolExecution cargo_ios (in target 'cargo_ios' from project 'bevy_mobile_example')
    cd /Users/patryk/Developer/compile/bevy/examples/mobile/.
    export ACTION\=
    export ALLOW_TARGET_PLATFORM_SPECIALIZATION\=NO
    export ALTERNATE_GROUP\=staff
    export ALTERNATE_MODE\=u+w,go-w,a+rX
    export ALTERNATE_OWNER\=patryk
    export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES\=NO
    export ALWAYS_SEARCH_USER_PATHS\=NO
    export APPLE_INTERNAL_DEVELOPER_DIR\=/AppleInternal/Developer
    export APPLE_INTERNAL_DIR\=/AppleInternal
    export APPLE_INTERNAL_DOCUMENTATION_DIR\=/AppleInternal/Documentation
    export APPLE_INTERNAL_LIBRARY_DIR\=/AppleInternal/Library
    export APPLE_INTERNAL_TOOLS\=/AppleInternal/Developer/Tools
    export APPLICATION_EXTENSION_API_ONLY\=NO
    export APPLY_RULES_IN_COPY_FILES\=NO
    export APPLY_RULES_IN_COPY_HEADERS\=NO
    export APP_SHORTCUTS_ENABLE_FLEXIBLE_MATCHING\=YES
    export ARCHS\=arm64
    export ARCHS_STANDARD\=arm64
    export ARCHS_STANDARD_32_64_BIT\=armv7\ arm64
    export ARCHS_STANDARD_32_BIT\=armv7
    export ARCHS_STANDARD_64_BIT\=arm64
    export ARCHS_STANDARD_INCLUDING_64_BIT\=arm64
    export ARCHS_UNIVERSAL_IPHONE_OS\=armv7\ arm64
    export ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOLS\=YES
    export ASSETCATALOG_FILTER_FOR_DEVICE_MODEL\=iPhone14,4
    export ASSETCATALOG_FILTER_FOR_DEVICE_OS_VERSION\=17.1
    export ASSETCATALOG_FILTER_FOR_THINNING_DEVICE_CONFIGURATION\=iPhone14,4
    export AUTOMATICALLY_MERGE_DEPENDENCIES\=NO
    export AVAILABLE_PLATFORMS\=appletvos\ appletvsimulator\ driverkit\ iphoneos\ iphonesimulator\ macosx\ watchos\ watchsimulator
    export BITCODE_GENERATION_MODE\=marker
    export BUILD_ACTIVE_RESOURCES_ONLY\=YES
    export BUILD_COMPONENTS\=headers\ build
    export BUILD_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Products
    export BUILD_LIBRARY_FOR_DISTRIBUTION\=NO
    export BUILD_ROOT\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Products
    export BUILD_STYLE\=
    export BUILD_VARIANTS\=normal
    export BUILT_PRODUCTS_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Products/Debug-iphoneos
    export BUNDLE_CONTENTS_FOLDER_PATH_deep\=Contents/
    export BUNDLE_EXECUTABLE_FOLDER_NAME_deep\=MacOS
    export BUNDLE_EXTENSIONS_FOLDER_PATH\=Extensions
    export BUNDLE_FORMAT\=shallow
    export BUNDLE_FRAMEWORKS_FOLDER_PATH\=Frameworks
    export BUNDLE_PLUGINS_FOLDER_PATH\=PlugIns
    export BUNDLE_PRIVATE_HEADERS_FOLDER_PATH\=PrivateHeaders
    export BUNDLE_PUBLIC_HEADERS_FOLDER_PATH\=Headers
    export CACHE_ROOT\=/var/folders/7k/x4m09j1s7b345jr_42hgqwsw0000gn/C/com.apple.DeveloperTools/15.0.1-15A507/Xcode
    export CLANG_ANALYZER_NONNULL\=YES
    export CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION\=YES_AGGRESSIVE
    export CLANG_COMPILE_CACHE_PATH\=/Users/patryk/Library/Developer/Xcode/DerivedData/CompilationCache.noindex
    export CLANG_CXX_LANGUAGE_STANDARD\=gnu++14
    export CLANG_CXX_LIBRARY\=libc++
    export CLANG_ENABLE_EXPLICIT_MODULES\=NO
    export CLANG_ENABLE_MODULES\=YES
    export CLANG_ENABLE_OBJC_ARC\=YES
    export CLANG_MODULES_BUILD_SESSION_FILE\=/Users/patryk/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation
    export CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING\=YES
    export CLANG_WARN_BOOL_CONVERSION\=YES
    export CLANG_WARN_COMMA\=YES
    export CLANG_WARN_CONSTANT_CONVERSION\=YES
    export CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS\=YES
    export CLANG_WARN_DIRECT_OBJC_ISA_USAGE\=YES_ERROR
    export CLANG_WARN_DOCUMENTATION_COMMENTS\=YES
    export CLANG_WARN_EMPTY_BODY\=YES
    export CLANG_WARN_ENUM_CONVERSION\=YES
    export CLANG_WARN_INFINITE_RECURSION\=YES
    export CLANG_WARN_INT_CONVERSION\=YES
    export CLANG_WARN_NON_LITERAL_NULL_CONVERSION\=YES
    export CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF\=YES
    export CLANG_WARN_OBJC_LITERAL_CONVERSION\=YES
    export CLANG_WARN_OBJC_ROOT_CLASS\=YES_ERROR
    export CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER\=YES
    export CLANG_WARN_RANGE_LOOP_ANALYSIS\=YES
    export CLANG_WARN_STRICT_PROTOTYPES\=YES
    export CLANG_WARN_SUSPICIOUS_MOVE\=YES
    export CLANG_WARN_UNGUARDED_AVAILABILITY\=YES_AGGRESSIVE
    export CLANG_WARN_UNREACHABLE_CODE\=YES
    export CLANG_WARN__DUPLICATE_METHOD_MATCH\=YES
    export CLASS_FILE_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build/Debug-iphoneos/cargo_ios.build/JavaClasses
    export CLONE_HEADERS\=NO
    export CODE_SIGNING_ALLOWED\=NO
    export CODE_SIGN_CONTEXT_CLASS\=XCiPhoneOSCodeSignContext
    export CODE_SIGN_INJECT_BASE_ENTITLEMENTS\=YES
    export COLOR_DIAGNOSTICS\=NO
    export COMPILER_INDEX_STORE_ENABLE\=Default
    export COMPRESS_PNG_FILES\=YES
    export CONFIGURATION\=Debug
    export CONFIGURATION_BUILD_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Products/Debug-iphoneos
    export CONFIGURATION_TEMP_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build/Debug-iphoneos
    export COPYING_PRESERVES_HFS_DATA\=NO
    export COPY_HEADERS_RUN_UNIFDEF\=NO
    export COPY_PHASE_STRIP\=NO
    export CORRESPONDING_SIMULATOR_PLATFORM_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
    export CORRESPONDING_SIMULATOR_PLATFORM_NAME\=iphonesimulator
    export CORRESPONDING_SIMULATOR_SDK_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk
    export CORRESPONDING_SIMULATOR_SDK_NAME\=iphonesimulator17.0
    export CREATE_INFOPLIST_SECTION_IN_BINARY\=NO
    export DEAD_CODE_STRIPPING\=YES
    export DEBUGGING_SYMBOLS\=YES
    export DEBUG_INFORMATION_FORMAT\=dwarf
    export DEFAULT_COMPILER\=com.apple.compilers.llvm.clang.1_0
    export DEFAULT_DEXT_INSTALL_PATH\=/System/Library/DriverExtensions
    export DEFAULT_KEXT_INSTALL_PATH\=/System/Library/Extensions
    export DEFINES_MODULE\=NO
    export DEPLOYMENT_LOCATION\=NO
    export DEPLOYMENT_POSTPROCESSING\=NO
    export DEPLOYMENT_TARGET_SETTING_NAME\=IPHONEOS_DEPLOYMENT_TARGET
    export DERIVED_FILES_DIR\=
    export DERIVED_FILE_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build/Debug-iphoneos/cargo_ios.build/DerivedSources
    export DERIVED_SOURCES_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build/Debug-iphoneos/cargo_ios.build/DerivedSources
    export DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER\=NO
    export DEVELOPER_APPLICATIONS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications
    export DEVELOPER_BIN_DIR\=/Applications/Xcode.app/Contents/Developer/usr/bin
    export DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer
    export DEVELOPER_FRAMEWORKS_DIR\=/Applications/Xcode.app/Contents/Developer/Library/Frameworks
    export DEVELOPER_FRAMEWORKS_DIR_QUOTED\=/Applications/Xcode.app/Contents/Developer/Library/Frameworks
    export DEVELOPER_LIBRARY_DIR\=/Applications/Xcode.app/Contents/Developer/Library
    export DEVELOPER_SDK_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
    export DEVELOPER_TOOLS_DIR\=/Applications/Xcode.app/Contents/Developer/Tools
    export DEVELOPER_USR_DIR\=/Applications/Xcode.app/Contents/Developer/usr
    export DEVELOPMENT_LANGUAGE\=en
    export DONT_GENERATE_INFOPLIST_FILE\=NO
    export DO_HEADER_SCANNING_IN_JAM\=NO
    export DSTROOT\=/tmp/bevy_mobile_example.dst
    export DT_TOOLCHAIN_DIR\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export DWARF_DSYM_FILE_NAME\=.dSYM
    export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT\=NO
    export DWARF_DSYM_FOLDER_PATH\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Products/Debug-iphoneos
    export EAGER_LINKING\=NO
    export EFFECTIVE_PLATFORM_NAME\=-iphoneos
    export EMBEDDED_CONTENT_CONTAINS_SWIFT\=NO
    export EMBEDDED_PROFILE_NAME\=embedded.mobileprovision
    export EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE\=NO
    export ENABLE_APP_SANDBOX\=NO
    export ENABLE_BITCODE\=NO
    export ENABLE_CODE_COVERAGE\=YES
    export ENABLE_DEFAULT_HEADER_SEARCH_PATHS\=YES
    export ENABLE_DEFAULT_SEARCH_PATHS\=YES
    export ENABLE_HARDENED_RUNTIME\=NO
    export ENABLE_HEADER_DEPENDENCIES\=YES
    export ENABLE_ON_DEMAND_RESOURCES\=NO
    export ENABLE_PREVIEWS\=NO
    export ENABLE_STRICT_OBJC_MSGSEND\=YES
    export ENABLE_TESTABILITY\=YES
    export ENABLE_TESTING_SEARCH_PATHS\=NO
    export ENABLE_USER_SCRIPT_SANDBOXING\=NO
    export ENABLE_XOJIT_PREVIEWS\=NO
    export ENTITLEMENTS_DESTINATION\=Signature
    export EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS\=.DS_Store\ .svn\ .git\ .hg\ CVS
    export EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES\=\*.nib\ \*.lproj\ \*.framework\ \*.gch\ \*.xcode\*\ \*.xcassets\ \(\*\)\ .DS_Store\ CVS\ .svn\ .git\ .hg\ \*.pbproj\ \*.pbxproj
    export FILE_LIST\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build/Debug-iphoneos/cargo_ios.build/Objects/LinkFileList
    export FRAMEWORK_VERSION\=A
    export FUSE_BUILD_PHASES\=YES
    export FUSE_BUILD_SCRIPT_PHASES\=NO
    export GCC3_VERSION\=3.3
    export GCC_C_LANGUAGE_STANDARD\=gnu11
    export GCC_DYNAMIC_NO_PIC\=NO
    export GCC_NO_COMMON_BLOCKS\=YES
    export GCC_OPTIMIZATION_LEVEL\=0
    export GCC_PREPROCESSOR_DEFINITIONS\=\ DEBUG\=1
    export GCC_VERSION\=com.apple.compilers.llvm.clang.1_0
    export GCC_WARN_64_TO_32_BIT_CONVERSION\=YES
    export GCC_WARN_ABOUT_RETURN_TYPE\=YES_ERROR
    export GCC_WARN_UNDECLARED_SELECTOR\=YES
    export GCC_WARN_UNINITIALIZED_AUTOS\=YES_AGGRESSIVE
    export GCC_WARN_UNUSED_FUNCTION\=YES
    export GCC_WARN_UNUSED_VARIABLE\=YES
    export GENERATED_MODULEMAP_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/GeneratedModuleMaps-iphoneos
    export GENERATE_INFOPLIST_FILE\=NO
    export GENERATE_INTERMEDIATE_TEXT_BASED_STUBS\=YES
    export GENERATE_MASTER_OBJECT_FILE\=NO
    export GENERATE_PKGINFO_FILE\=NO
    export GENERATE_PROFILING_CODE\=NO
    export GENERATE_TEXT_BASED_STUBS\=NO
    export GID\=20
    export GROUP\=staff
    export HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT\=YES
    export HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES\=YES
    export HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS\=YES
    export HEADERMAP_INCLUDES_PROJECT_HEADERS\=YES
    export HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES\=YES
    export HEADERMAP_USES_VFS\=NO
    export HIDE_BITCODE_SYMBOLS\=YES
    export HOME\=/Users/patryk
    export HOST_ARCH\=arm64
    export HOST_PLATFORM\=macosx
    export INFOPLIST_ENABLE_CFBUNDLEICONS_MERGE\=YES
    export INFOPLIST_EXPAND_BUILD_SETTINGS\=YES
    export INFOPLIST_OUTPUT_FORMAT\=binary
    export INFOPLIST_PREPROCESS\=NO
    export INLINE_PRIVATE_FRAMEWORKS\=NO
    export INSTALLHDRS_COPY_PHASE\=NO
    export INSTALLHDRS_SCRIPT_PHASE\=NO
    export INSTALL_DIR\=/tmp/bevy_mobile_example.dst
    export INSTALL_GROUP\=staff
    export INSTALL_MODE_FLAG\=u+w,go-w,a+rX
    export INSTALL_OWNER\=patryk
    export INSTALL_ROOT\=/tmp/bevy_mobile_example.dst
    export IPHONEOS_DEPLOYMENT_TARGET\=17.0
    export JAVA_APP_STUB\=/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
    export JAVA_ARCHIVE_CLASSES\=YES
    export JAVA_ARCHIVE_TYPE\=JAR
    export JAVA_COMPILER\=/usr/bin/javac
    export JAVA_FRAMEWORK_RESOURCES_DIRS\=Resources
    export JAVA_JAR_FLAGS\=cv
    export JAVA_SOURCE_SUBDIR\=.
    export JAVA_USE_DEPENDENCIES\=YES
    export JAVA_ZIP_FLAGS\=-urg
    export KEEP_PRIVATE_EXTERNS\=NO
    export LD_DEPENDENCY_INFO_FILE\=//cargo_ios_dependency_info.dat
    export LD_EXPORT_SYMBOLS\=YES
    export LD_GENERATE_MAP_FILE\=NO
    export LD_MAP_FILE_PATH\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build/Debug-iphoneos/cargo_ios.build/cargo_ios-LinkMap--.txt
    export LD_NO_PIE\=NO
    export LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER\=YES
    export LD_RUNPATH_SEARCH_PATHS\=\ @executable_path/Frameworks
    export LEGACY_DEVELOPER_DIR\=/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
    export LIBRARY_DEXT_INSTALL_PATH\=/Library/DriverExtensions
    export LIBRARY_FLAG_NOSPACE\=YES
    export LIBRARY_KEXT_INSTALL_PATH\=/Library/Extensions
    export LINKER_DISPLAYS_MANGLED_NAMES\=NO
    export LINK_FILE_LIST_normal_arm64\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build/Debug-iphoneos/cargo_ios.build/Objects-normal/arm64/cargo_ios.LinkFileList
    export LINK_WITH_STANDARD_LIBRARIES\=YES
    export LLVM_TARGET_TRIPLE_OS_VERSION\=ios17.0
    export LLVM_TARGET_TRIPLE_VENDOR\=apple
    export LOCALIZATION_EXPORT_SUPPORTED\=YES
    export LOCALIZATION_PREFERS_STRING_CATALOGS\=NO
    export LOCALIZED_STRING_MACRO_NAMES\=NSLocalizedString\ CFCopyLocalizedString
    export LOCALIZED_STRING_SWIFTUI_SUPPORT\=YES
    export LOCAL_ADMIN_APPS_DIR\=/Applications/Utilities
    export LOCAL_APPS_DIR\=/Applications
    export LOCAL_DEVELOPER_DIR\=/Library/Developer
    export LOCAL_LIBRARY_DIR\=/Library
    export LOCROOT\=/Users/patryk/Developer/compile/bevy/examples/mobile
    export LOCSYMROOT\=/Users/patryk/Developer/compile/bevy/examples/mobile
    export MAC_OS_X_PRODUCT_BUILD_VERSION\=23B74
    export MAC_OS_X_VERSION_ACTUAL\=140100
    export MAC_OS_X_VERSION_MAJOR\=140000
    export MAC_OS_X_VERSION_MINOR\=140100
    export MAKE_MERGEABLE\=NO
    export MERGEABLE_LIBRARY\=NO
    export MERGED_BINARY_TYPE\=none
    export MERGE_LINKED_LIBRARIES\=NO
    export METAL_LIBRARY_FILE_BASE\=default
    export METAL_LIBRARY_OUTPUT_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Products/Debug-iphoneos/
    export MODULE_CACHE_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/ModuleCache.noindex
    export MTL_ENABLE_DEBUG_INFO\=YES
    export NATIVE_ARCH\=arm64
    export NATIVE_ARCH_32_BIT\=arm
    export NATIVE_ARCH_64_BIT\=arm64
    export NATIVE_ARCH_ACTUAL\=arm64
    export OBJECT_FILE_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build/Debug-iphoneos/cargo_ios.build/Objects
    export OBJROOT\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex
    export ONLY_ACTIVE_ARCH\=YES
    export OS\=MACOS
    export PATH\=/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources:/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
    export PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES\=/usr/include\ /usr/local/include\ /System/Library/Frameworks\ /System/Library/PrivateFrameworks\ /Applications/Xcode.app/Contents/Developer/Headers\ /Applications/Xcode.app/Contents/Developer/SDKs\ /Applications/Xcode.app/Contents/Developer/Platforms
    export PER_ARCH_OBJECT_FILE_DIR\=/
    export PLATFORM_DEVELOPER_APPLICATIONS_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Applications
    export PLATFORM_DEVELOPER_BIN_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
    export PLATFORM_DEVELOPER_LIBRARY_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library
    export PLATFORM_DEVELOPER_SDK_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
    export PLATFORM_DEVELOPER_TOOLS_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Tools
    export PLATFORM_DEVELOPER_USR_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr
    export PLATFORM_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
    export PLATFORM_DISPLAY_NAME\=iOS
    export PLATFORM_FAMILY_NAME\=iOS
    export PLATFORM_NAME\=iphoneos
    export PLATFORM_PREFERRED_ARCH\=arm64
    export PLATFORM_PRODUCT_BUILD_VERSION\=21A326
    export PLIST_FILE_OUTPUT_FORMAT\=binary
    export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR\=YES
    export PRECOMP_DESTINATION_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build/Debug-iphoneos/cargo_ios.build/PrefixHeaders
    export PRESERVE_DEAD_CODE_INITS_AND_TERMS\=NO
    export PRODUCT_BUNDLE_IDENTIFIER\=com.rust.cargo-ios
    export PRODUCT_MODULE_NAME\=cargo_ios
    export PRODUCT_NAME\=cargo_ios
    export PROFILING_CODE\=NO
    export PROJECT\=bevy_mobile_example
    export PROJECT_DERIVED_FILE_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build/DerivedSources
    export PROJECT_DIR\=/Users/patryk/Developer/compile/bevy/examples/mobile
    export PROJECT_FILE_PATH\=/Users/patryk/Developer/compile/bevy/examples/mobile/bevy_mobile_example.xcodeproj
    export PROJECT_NAME\=bevy_mobile_example
    export PROJECT_TEMP_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build
    export PROJECT_TEMP_ROOT\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex
    export REMOVE_CVS_FROM_RESOURCES\=YES
    export REMOVE_GIT_FROM_RESOURCES\=YES
    export REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES\=YES
    export REMOVE_HG_FROM_RESOURCES\=YES
    export REMOVE_SVN_FROM_RESOURCES\=YES
    export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES\=NO
    export SDKROOT\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk
    export SDK_STAT_CACHE_ENABLE\=YES
    export SEPARATE_STRIP\=NO
    export SEPARATE_SYMBOL_EDIT\=NO
    export SHARED_DERIVED_FILE_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Products/Debug-iphoneos/DerivedSources
    export SHARED_PRECOMPS_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/PrecompiledHeaders
    export SKIP_INSTALL\=YES
    export SOURCE_ROOT\=/Users/patryk/Developer/compile/bevy/examples/mobile
    export SRCROOT\=/Users/patryk/Developer/compile/bevy/examples/mobile
    export STRINGSDATA_DIR\=/
    export STRINGSDATA_ROOT\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build/Debug-iphoneos/cargo_ios.build
    export STRINGS_FILE_INFOPLIST_RENAME\=YES
    export STRINGS_FILE_OUTPUT_ENCODING\=binary
    export STRIP_BITCODE_FROM_COPIED_FILES\=YES
    export STRIP_INSTALLED_PRODUCT\=NO
    export STRIP_STYLE\=all
    export STRIP_SWIFT_SYMBOLS\=YES
    export SUPPORTED_PLATFORMS\=iphoneos\ iphonesimulator
    export SUPPORTS_MACCATALYST\=YES
    export SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD\=YES
    export SUPPORTS_TEXT_BASED_API\=NO
    export SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD\=YES
    export SWIFT_ACTIVE_COMPILATION_CONDITIONS\=DEBUG
    export SWIFT_EMIT_LOC_STRINGS\=NO
    export SWIFT_OPTIMIZATION_LEVEL\=-Onone
    export SWIFT_PLATFORM_TARGET_PREFIX\=ios
    export SWIFT_RESPONSE_FILE_PATH_normal_arm64\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build/Debug-iphoneos/cargo_ios.build/Objects-normal/arm64/cargo_ios.SwiftFileList
    export SWIFT_VERSION\=5.0
    export SYMROOT\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Products
    export SYSTEM_ADMIN_APPS_DIR\=/Applications/Utilities
    export SYSTEM_APPS_DIR\=/Applications
    export SYSTEM_CORE_SERVICES_DIR\=/System/Library/CoreServices
    export SYSTEM_DEMOS_DIR\=/Applications/Extras
    export SYSTEM_DEVELOPER_APPS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications
    export SYSTEM_DEVELOPER_BIN_DIR\=/Applications/Xcode.app/Contents/Developer/usr/bin
    export SYSTEM_DEVELOPER_DEMOS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built\ Examples
    export SYSTEM_DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer
    export SYSTEM_DEVELOPER_DOC_DIR\=/Applications/Xcode.app/Contents/Developer/ADC\ Reference\ Library
    export SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications/Graphics\ Tools
    export SYSTEM_DEVELOPER_JAVA_TOOLS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications/Java\ Tools
    export SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications/Performance\ Tools
    export SYSTEM_DEVELOPER_RELEASENOTES_DIR\=/Applications/Xcode.app/Contents/Developer/ADC\ Reference\ Library/releasenotes
    export SYSTEM_DEVELOPER_TOOLS\=/Applications/Xcode.app/Contents/Developer/Tools
    export SYSTEM_DEVELOPER_TOOLS_DOC_DIR\=/Applications/Xcode.app/Contents/Developer/ADC\ Reference\ Library/documentation/DeveloperTools
    export SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR\=/Applications/Xcode.app/Contents/Developer/ADC\ Reference\ Library/releasenotes/DeveloperTools
    export SYSTEM_DEVELOPER_USR_DIR\=/Applications/Xcode.app/Contents/Developer/usr
    export SYSTEM_DEVELOPER_UTILITIES_DIR\=/Applications/Xcode.app/Contents/Developer/Applications/Utilities
    export SYSTEM_DEXT_INSTALL_PATH\=/System/Library/DriverExtensions
    export SYSTEM_DOCUMENTATION_DIR\=/Library/Documentation
    export SYSTEM_KEXT_INSTALL_PATH\=/System/Library/Extensions
    export SYSTEM_LIBRARY_DIR\=/System/Library
    export TAPI_DEMANGLE\=YES
    export TAPI_ENABLE_PROJECT_HEADERS\=NO
    export TAPI_LANGUAGE\=objective-c
    export TAPI_LANGUAGE_STANDARD\=compiler-default
    export TAPI_VERIFY_MODE\=Pedantic
    export TARGETED_DEVICE_FAMILY\=1,2
    export TARGETNAME\=cargo_ios
    export TARGET_BUILD_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Products/Debug-iphoneos
    export TARGET_DEVICE_IDENTIFIER\=00008110-001878963403801E
    export TARGET_DEVICE_MODEL\=iPhone14,4
    export TARGET_DEVICE_OS_VERSION\=17.1
    export TARGET_DEVICE_PLATFORM_NAME\=iphoneos
    export TARGET_NAME\=cargo_ios
    export TARGET_TEMP_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build/Debug-iphoneos/cargo_ios.build
    export TEMP_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build/Debug-iphoneos/cargo_ios.build
    export TEMP_FILES_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build/Debug-iphoneos/cargo_ios.build
    export TEMP_FILE_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/bevy_mobile_example.build/Debug-iphoneos/cargo_ios.build
    export TEMP_ROOT\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex
    export TOOLCHAIN_DIR\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export TREAT_MISSING_BASELINES_AS_TEST_FAILURES\=NO
    export UID\=501
    export UNINSTALLED_PRODUCTS_DIR\=/Users/patryk/Library/Developer/Xcode/DerivedData/bevy_mobile_example-exquzciwrkwplxbnkldczmdbghbs/Build/Intermediates.noindex/UninstalledProducts
    export USER\=patryk
    export USER_APPS_DIR\=/Users/patryk/Applications
    export USER_LIBRARY_DIR\=/Users/patryk/Library
    export USE_HEADERMAP\=YES
    export VALIDATE_DEVELOPMENT_ASSET_PATHS\=YES_ERROR
    export VALID_ARCHS\=arm64\ arm64e\ armv7\ armv7s
    export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES\=NO
    export XCODE_APP_SUPPORT_DIR\=/Applications/Xcode.app/Contents/Developer/Library/Xcode
    export XCODE_PRODUCT_BUILD_VERSION\=15A507
    export XCODE_VERSION_ACTUAL\=1501
    export XCODE_VERSION_MAJOR\=1500
    export XCODE_VERSION_MINOR\=1500
    export arch\=undefined_arch
    export variant\=normal
    /bin/sh build_rust_deps.sh

+ PATH=/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources:/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/patryk/.cargo/bin
+ RELFLAG=
+ [[ Debug != \D\e\b\u\g ]]
+ set -euvx

if [[ -n "${DEVELOPER_SDK_DIR:-}" ]]; then
  # Assume we're in Xcode, which means we're probably cross-compiling.
  # In this case, we need to add an extra library search path for build scripts and proc-macros,
  # which run on the host instead of the target.
  # (macOS Big Sur does not have linkable libraries in /usr/lib/.)
  export LIBRARY_PATH="${DEVELOPER_SDK_DIR}/MacOSX.sdk/usr/lib:${LIBRARY_PATH:-}"
fi
+ [[ -n /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs ]]
+ export LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib:
+ LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib:

# add homebrew bin path, as it's the most commonly used package manager on macOS
# this is needed for cmake on apple arm processors as it's not available by default
export PATH="$PATH:/opt/homebrew/bin"
+ export PATH=/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources:/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/patryk/.cargo/bin:/opt/homebrew/bin
+ PATH=/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources:/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/patryk/.cargo/bin:/opt/homebrew/bin

IS_SIMULATOR=0
+ IS_SIMULATOR=0
if [ "${LLVM_TARGET_TRIPLE_SUFFIX-}" = "-simulator" ]; then
  IS_SIMULATOR=1
fi
+ '[' '' = -simulator ']'

for arch in $ARCHS; do
  case "$arch" in
    x86_64)
      if [ $IS_SIMULATOR -eq 0 ]; then
        echo "Building for x86_64, but not a simulator build. What's going on?" >&2
        exit 2
      fi

      # Intel iOS simulator
      export CFLAGS_x86_64_apple_ios="-target x86_64-apple-ios"
      cargo rustc --crate-type staticlib --lib $RELFLAG --target x86_64-apple-ios
      ;;

    arm64)
      if [ $IS_SIMULATOR -eq 0 ]; then
        # Hardware iOS targets
        cargo rustc --crate-type staticlib --lib $RELFLAG --target aarch64-apple-ios
      else
        # M1 iOS simulator
        cargo rustc --crate-type staticlib --lib $RELFLAG --target aarch64-apple-ios-sim
      fi
  esac
done
+ for arch in '$ARCHS'
+ case "$arch" in
+ '[' 0 -eq 0 ']'
+ cargo rustc --crate-type staticlib --lib --target aarch64-apple-ios
   Compiling bevy_ecs v0.12.0 (/Users/patryk/Developer/compile/bevy/crates/bevy_ecs)
   Compiling blocking v1.4.1
   Compiling crossbeam-epoch v0.9.15
   Compiling crossbeam-queue v0.3.8
   Compiling zune-jpeg v0.3.17
   Compiling web-sys v0.3.65
   Compiling tokio v1.33.0
   Compiling re_sdk v0.10.1
   Compiling rand v0.8.5
   Compiling crossbeam-deque v0.8.3
   Compiling async-fs v1.6.0
   Compiling crossbeam v0.8.2
   Compiling re_smart_channel v0.10.1
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources:/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/patryk/.cargo/bin:/opt/homebrew/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-Wl,-exported_symbols_list,/var/folders/7k/x4m09j1s7b345jr_42hgqwsw0000gn/T/rustcqkKxbP/list" "-arch" "arm64" "/var/folders/7k/x4m09j1s7b345jr_42hgqwsw0000gn/T/rustcqkKxbP/symbols.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.0.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.1.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.2.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.3.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.4.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.5.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.6.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.7.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.8.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.1hvmoqhwkykjvs1o.rcgu.o" "-L" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps" "-L" "/Users/patryk/Developer/compile/bevy/target/debug/deps" "-L" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/libzune_core-24eaac403c485436.rlib" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/libbitflags-e8f9c2068c5dc5c4.rlib" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/libserde-805ee4b336cd36a1.rlib" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/liblog-a905bf8b46daffe7.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libstd-f47b28413b5fb343.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libpanic_unwind-92f54e09283360da.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libobject-2d4a4e00585b2f8c.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libmemchr-5139020eb6e09a51.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libaddr2line-8a8c95c7e51dcc3f.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libgimli-7af7d7d01ff45b9c.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/librustc_demangle-e3f6fcaea7c7062c.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libstd_detect-6b6e20416b532745.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libhashbrown-0db703997fd689c6.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/librustc_std_workspace_alloc-fa9eb76446815268.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libminiz_oxide-a0ef3e165bceb0e5.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libadler-2ac82282eccbf4a7.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libunwind-1479b925690b16b4.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libcfg_if-edd2cb5eef0cee2b.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/liblibc-9032bf7ddc46a1ff.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/liballoc-6c3a0b47d75be763.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/librustc_std_workspace_core-6a53c822fc7be7d7.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libcore-59d11dea77f97bb3.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libcompiler_builtins-884bd10a2b5285a8.rlib" "-lSystem" "-lobjc" "-framework" "Security" "-framework" "Foundation" "-lc" "-lm" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk" "-Wl,-syslibroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk" "-L" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib" "-o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/libzune_jpeg-1f0145a5cc5c340b.dylib" "-Wl,-dead_strip" "-dynamiclib" "-Wl,-dylib" "-nodefaultlibs"
  = note: ld: warning: no platform load command found in '/private/var/folders/7k/x4m09j1s7b345jr_42hgqwsw0000gn/T/rustcqkKxbP/symbols.o', assuming: iOS
          ld: building for 'iOS', but linking in dylib (/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libobjc.A.tbd) built for 'macOS macCatalyst zippered(macOS/Catalyst)'
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: could not compile `zune-jpeg` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...

+ PATH=/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources:/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/patryk/.cargo/bin

+ RELFLAG=

+ [[ Debug != \D\e\b\u\g ]]

+ set -euvx

if [[ -n "${DEVELOPER_SDK_DIR:-}" ]]; then

  # Assume we're in Xcode, which means we're probably cross-compiling.

  # In this case, we need to add an extra library search path for build scripts and proc-macros,

  # which run on the host instead of the target.

  # (macOS Big Sur does not have linkable libraries in /usr/lib/.)

  export LIBRARY_PATH="${DEVELOPER_SDK_DIR}/MacOSX.sdk/usr/lib:${LIBRARY_PATH:-}"

fi

+ [[ -n /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs ]]

+ export LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib:

+ LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib:

# add homebrew bin path, as it's the most commonly used package manager on macOS

# this is needed for cmake on apple arm processors as it's not available by default

export PATH="$PATH:/opt/homebrew/bin"

+ export PATH=/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources:/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/patryk/.cargo/bin:/opt/homebrew/bin

+ PATH=/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources:/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/patryk/.cargo/bin:/opt/homebrew/bin

IS_SIMULATOR=0

+ IS_SIMULATOR=0

if [ "${LLVM_TARGET_TRIPLE_SUFFIX-}" = "-simulator" ]; then

  IS_SIMULATOR=1

fi

+ '[' '' = -simulator ']'

for arch in $ARCHS; do

  case "$arch" in

    x86_64)

      if [ $IS_SIMULATOR -eq 0 ]; then

        echo "Building for x86_64, but not a simulator build. What's going on?" >&2

        exit 2

      fi

      # Intel iOS simulator

      export CFLAGS_x86_64_apple_ios="-target x86_64-apple-ios"

      cargo rustc --crate-type staticlib --lib $RELFLAG --target x86_64-apple-ios

      ;;

    arm64)

      if [ $IS_SIMULATOR -eq 0 ]; then

        # Hardware iOS targets

        cargo rustc --crate-type staticlib --lib $RELFLAG --target aarch64-apple-ios

      else

        # M1 iOS simulator

        cargo rustc --crate-type staticlib --lib $RELFLAG --target aarch64-apple-ios-sim

      fi

  esac

done

+ for arch in '$ARCHS'

+ case "$arch" in

+ '[' 0 -eq 0 ']'

+ cargo rustc --crate-type staticlib --lib --target aarch64-apple-ios

   Compiling bevy_ecs v0.12.0 (/Users/patryk/Developer/compile/bevy/crates/bevy_ecs)

   Compiling blocking v1.4.1

   Compiling crossbeam-epoch v0.9.15

   Compiling crossbeam-queue v0.3.8

   Compiling zune-jpeg v0.3.17

   Compiling web-sys v0.3.65

   Compiling tokio v1.33.0

   Compiling re_sdk v0.10.1

   Compiling rand v0.8.5

   Compiling crossbeam-deque v0.8.3

   Compiling async-fs v1.6.0

   Compiling crossbeam v0.8.2

   Compiling re_smart_channel v0.10.1

  |

  = note: LC_ALL="C" PATH="/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources:/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/patryk/.cargo/bin:/opt/homebrew/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-Wl,-exported_symbols_list,/var/folders/7k/x4m09j1s7b345jr_42hgqwsw0000gn/T/rustcqkKxbP/list" "-arch" "arm64" "/var/folders/7k/x4m09j1s7b345jr_42hgqwsw0000gn/T/rustcqkKxbP/symbols.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.0.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.1.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.2.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.3.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.4.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.5.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.6.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.7.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.zune_jpeg.b54675c3537c5d48-cgu.8.rcgu.o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/zune_jpeg-1f0145a5cc5c340b.1hvmoqhwkykjvs1o.rcgu.o" "-L" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps" "-L" "/Users/patryk/Developer/compile/bevy/target/debug/deps" "-L" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/libzune_core-24eaac403c485436.rlib" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/libbitflags-e8f9c2068c5dc5c4.rlib" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/libserde-805ee4b336cd36a1.rlib" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/liblog-a905bf8b46daffe7.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libstd-f47b28413b5fb343.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libpanic_unwind-92f54e09283360da.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libobject-2d4a4e00585b2f8c.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libmemchr-5139020eb6e09a51.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libaddr2line-8a8c95c7e51dcc3f.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libgimli-7af7d7d01ff45b9c.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/librustc_demangle-e3f6fcaea7c7062c.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libstd_detect-6b6e20416b532745.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libhashbrown-0db703997fd689c6.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/librustc_std_workspace_alloc-fa9eb76446815268.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libminiz_oxide-a0ef3e165bceb0e5.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libadler-2ac82282eccbf4a7.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libunwind-1479b925690b16b4.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libcfg_if-edd2cb5eef0cee2b.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/liblibc-9032bf7ddc46a1ff.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/liballoc-6c3a0b47d75be763.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/librustc_std_workspace_core-6a53c822fc7be7d7.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libcore-59d11dea77f97bb3.rlib" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib/libcompiler_builtins-884bd10a2b5285a8.rlib" "-lSystem" "-lobjc" "-framework" "Security" "-framework" "Foundation" "-lc" "-lm" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk" "-Wl,-syslibroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk" "-L" "/Users/patryk/.rustup/toolchains/1.72.1-aarch64-apple-darwin/lib/rustlib/aarch64-apple-ios/lib" "-o" "/Users/patryk/Developer/compile/bevy/target/aarch64-apple-ios/debug/deps/libzune_jpeg-1f0145a5cc5c340b.dylib" "-Wl,-dead_strip" "-dynamiclib" "-Wl,-dylib" "-nodefaultlibs"

linking with `cc` failed: exit status: 1

          ld: building for 'iOS', but linking in dylib (/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libobjc.A.tbd) built for 'macOS macCatalyst zippered(macOS/Catalyst)'

no platform load command found in '/private/var/folders/7k/x4m09j1s7b345jr_42hgqwsw0000gn/T/rustcqkKxbP/symbols.o', assuming: iOS

/Users/patryk/Developer/compile/bevy/examples/mobile/          clang:1:1: linker command failed with exit code 1 (use -v to see invocation)

could not compile `zune-jpeg` (lib) due to previous error

build failed, waiting for other jobs to finish...

Activity Log Complete    05/11/2023, 23:20    4.1 seconds
nikolausWest commented 7 months ago

Hey @pzoltowski, huge thanks for opening an issue! First class support for running on iOS isn't a short term goal for us right now but definitely something we want to have over the slightly longer term.

If you do get it to work, we'd definitely be interested in hearing about it though! I know another team has successfully logged data from the C++ SDK on an iOS device to an external viewer so it probably makes sense to try that route instead of using the Rust SDK.