fzyzcjy / flutter_rust_bridge

Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.
https://fzyzcjy.github.io/flutter_rust_bridge/
MIT License
4.29k stars 301 forks source link

Can't run the created empty project on macos #2348

Closed bubnov closed 1 month ago

bubnov commented 1 month ago

Describe the bug

I try to create the demo app using the command from the docs:

cargo install flutter_rust_bridge_codegen \
    && flutter_rust_bridge_codegen create my_app \
    && cd my_app

When I try to run the app with command flutter run -d macos I get the error (check the full log bellow):

...
SEVERE: error[E0463]: can't find crate for `core`
SEVERE:   |
SEVERE:   = help: consider downloading the target with `rustup target add aarch64-apple-darwin`
...

The funny thing is that I have this target installed:

user@user my_app % rustup target list --installed
aarch64-apple-darwin
aarch64-apple-ios
aarch64-apple-ios-sim
aarch64-linux-android
armv7-linux-androideabi
i686-linux-android
wasm32-unknown-unknown
wasm32-wasi
x86_64-linux-android

Rust toolchain:

user@user my_app % rustup toolchain list
stable-aarch64-apple-darwin (default)
stable-x86_64-apple-darwin

rustup version:

user@user my_app % rustup --version
rustup 1.27.1 (54dd3d00f 2024-04-24)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.81.0 (eeb90cda1 2024-09-04)`

Steps to reproduce

Just follow the command from the doc:

cargo install flutter_rust_bridge_codegen && flutter_rust_bridge_codegen create my_app && cd my_app && flutter run

Logs

user@user my_app % flutter run -d macos           
Launching lib/main.dart on macOS in debug mode...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00008103-000D589C3EEA001E, name:My Mac }
{ platform:macOS, arch:x86_64, id:00008103-000D589C3EEA001E, name:My Mac }
SWIFT_OPTIMIZATION_LEVEL=-Onone
SED=/usr/bin/sed
SDK_PRODUCT_BUILD_VERSION=24A336
REMOVE_CVS_FROM_RESOURCES=YES
LOCAL_APPS_DIR=/Applications
JAVA_ZIP_FLAGS=-urg
HEADERMAP_INCLUDES_PROJECT_HEADERS=YES
EXECUTABLES_FOLDER_PATH=rust_lib_my_app.framework/Versions/A/Resources/en.lproj
ENABLE_STRICT_OBJC_MSGSEND=YES
COPY_PHASE_STRIP=NO
CLANG_WARN_STRICT_PROTOTYPES=YES
MANPATH=/Applications/Xcode_16.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/share/man:/Applications/Xcode_16.0.app/Contents/Developer/Platforms/MacOSX.platform/usr/share/man:/Applications/Xcode_16.0.app/Contents/Developer/usr/share/man:/Applications/Xcode_16.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man:
UNLOCALIZED_RESOURCES_FOLDER_PATH=rust_lib_my_app.framework/Versions/A/Resources
SYSTEM_DEVELOPER_UTILITIES_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Applications/Utilities
SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR=/Applications/Xcode_16.0.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools
PRODUCT_NAME=rust_lib_my_app
ENABLE_ON_DEMAND_RESOURCES=NO
APPLY_RULES_IN_COPY_HEADERS=NO
ALTERNATIVE_DISTRIBUTION_WEB=NO
rvm_use_flag=
USE_DYNAMIC_NO_PIC=YES
TEMP_FILES_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build
SWIFT_PLATFORM_TARGET_PREFIX=macos
SHALLOW_BUNDLE_TRIPLE=macos
LIBRARY_FLAG_NOSPACE=YES
LD_WARN_UNUSED_DYLIBS=NO
LD_GENERATE_MAP_FILE=NO
DEVELOPER_DIR=/Applications/Xcode_16.0.app/Contents/Developer
TERM_PROGRAM=vscode
rvm_bin_path=/Users/user/.rvm/bin
REZ_COLLECTOR_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/ResourceManagerResources
PER_ARCH_OBJECT_FILE_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/Objects-normal/undefined_arch
MAC_OS_X_PRODUCT_BUILD_VERSION=24A348
LOCALIZATION_EXPORT_SUPPORTED=YES
DEVELOPER_SDK_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
CLANG_WARN_EMPTY_BODY=YES
VERSIONS_FOLDER_PATH=rust_lib_my_app.framework/Versions
TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault
SCRIPT_INPUT_FILE_0=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products/Debug/rust_lib_my_app/cargokit_phony
MERGEABLE_LIBRARY=NO
LD_DEPENDENCY_INFO_FILE=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/Objects-normal/undefined_arch/rust_lib_my_app_dependency_info.dat
GCC_WARN_UNUSED_FUNCTION=YES
GCC_C_LANGUAGE_STANDARD=gnu11
APPLE_INTERNAL_TOOLS=/AppleInternal/Developer/Tools
rvm_quiet_flag=
GEM_HOME=/Users/user/.rvm/gems/ruby-2.7.2
SYSTEM_EXTENSIONS_FOLDER_PATH_SHALLOW_BUNDLE_NO=rust_lib_my_app.framework/Versions/A/Library/SystemExtensions
STRINGSDATA_ROOT=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build
PRIVATE_HEADERS_FOLDER_PATH=rust_lib_my_app.framework/Versions/A/PrivateHeaders
NATIVE_ARCH_64_BIT=arm64
LIBRARY_FLAG_PREFIX=-l
DEVELOPER_FRAMEWORKS_DIR_QUOTED=/Applications/Xcode_16.0.app/Contents/Developer/Library/Frameworks
rvm_gemstone_url=
TERM=xterm-256color
SHELL=/bin/zsh
TEST_LIBRARY_SEARCH_PATHS= /Applications/Xcode_16.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib
TAPI_VERIFY_MODE=Pedantic
GCC_WARN_ABOUT_RETURN_TYPE=YES_ERROR
ENABLE_BITCODE=NO
CURRENT_VERSION=Current
CONFIGURATION=Debug
VERSION_INFO_BUILDER=user
UNLOCALIZED_RESOURCES_FOLDER_PATH_SHALLOW_BUNDLE_NO=rust_lib_my_app.framework/Versions/A/Resources
PROJECT=Pods
PLUGINS_FOLDER_PATH=rust_lib_my_app.framework/Versions/A/PlugIns
OBJROOT=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex
MTL_FAST_MATH=YES
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO
IRBRC=/Users/user/.rvm/rubies/ruby-2.7.2/.irbrc
HOMEBREW_REPOSITORY=/opt/homebrew
TMPDIR=/var/folders/q5/frl187dx5x3bwrrp5bhby7fc0000gn/T/
rvm_docs_type=
SYSTEM_DOCUMENTATION_DIR=/Library/Documentation
SYSTEM_DEVELOPER_TOOLS=/Applications/Xcode_16.0.app/Contents/Developer/Tools
SYSTEM_DEVELOPER_DIR=/Applications/Xcode_16.0.app/Contents/Developer
PRODUCT_TYPE=com.apple.product-type.framework
MACH_O_TYPE=mh_dylib
DT_TOOLCHAIN_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
DEVELOPMENT_LANGUAGE=en
TEST_FRAMEWORK_SEARCH_PATHS= /Applications/Xcode_16.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks
PLATFORM_DEVELOPER_USR_DIR=/Applications/Xcode_16.0.app/Contents/Developer/usr
INSTALL_DIR=/tmp/Pods.dst/Library/Frameworks
CLASS_FILE_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/JavaClasses
CLANG_WARN_ENUM_CONVERSION=YES
APP_SHORTCUTS_ENABLE_FLEXIBLE_MATCHING=YES
TERM_PROGRAM_VERSION=1.94.0
TARGET_BUILD_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products/Debug/rust_lib_my_app
SWIFT_INSTALL_MODULE_FOR_DEPLOYMENT=YES
PODS_CONFIGURATION_BUILD_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products/Debug
METAL_LIBRARY_FILE_BASE=default
IMPLICIT_DEPENDENCY_DOMAIN=default
CLANG_WARN_OBJC_LITERAL_CONVERSION=YES
CLANG_WARN_DOCUMENTATION_COMMENTS=YES
variant=normal
WRAPPER_EXTENSION=framework
TAPI_USE_SRCROOT=YES
SYSTEM_DEXT_INSTALL_PATH=/System/Library/DriverExtensions
SYSTEM_DEVELOPER_DOC_DIR=/Applications/Xcode_16.0.app/Contents/Developer/ADC Reference Library
SUPPRESS_WARNINGS=NO
PLIST_FILE_OUTPUT_FORMAT=same-as-input
PBDEVELOPMENTPLIST_PATH=rust_lib_my_app.framework/Versions/A/pbdevelopment.plist
LINK_FILE_LIST_normal_arm64=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/Objects-normal/arm64/rust_lib_my_app.LinkFileList
JAVA_APP_STUB=/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
GENERATE_TEXT_BASED_STUBS=NO
CONFIGURATION_TEMP_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug
CLEAN_PRECOMPS=YES
ORIGINAL_XDG_CURRENT_DESKTOP=undefined
ZDOTDIR=/Users/user
MallocNanoZone=0
SHARED_SUPPORT_FOLDER_PATH=rust_lib_my_app.framework/Versions/A/Resources
SDKROOT=/Applications/Xcode_16.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk
NATIVE_ARCH_32_BIT=arm
MAC_OS_X_VERSION_MINOR=150000
LOCALIZATION_PREFERS_STRING_CATALOGS=NO
GCC_WARN_UNDECLARED_SELECTOR=YES
ENABLE_CODE_COVERAGE=YES
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE=NO
AVAILABLE_PLATFORMS=appletvos appletvsimulator driverkit iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator
ARCHS_STANDARD_32_64_BIT=arm64 x86_64 i386
APPLE_INTERNAL_DIR=/AppleInternal
MY_RUBY_HOME=/Users/user/.rvm/rubies/ruby-2.7.2
rvm_hook=
USER_LIBRARY_DIR=/Users/user/Library
SYSTEM_DEVELOPER_RELEASENOTES_DIR=/Applications/Xcode_16.0.app/Contents/Developer/ADC Reference Library/releasenotes
REMOVE_HG_FROM_RESOURCES=YES
PROJECT_GUID=8699adb1dd336b26511df848a716bd42
PLATFORM_NAME=macosx
LIBRARY_SEARCH_PATHS=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products/Debug/rust_lib_my_app 
LD_SHARED_CACHE_ELIGIBLE=Automatic
INFOPLIST_PREPROCESS=NO
INFOPLIST_ENABLE_CFBUNDLEICONS_MERGE=YES
DSTROOT=/tmp/Pods.dst
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION=YES_AGGRESSIVE
BUILD_VARIANTS=normal
TEMP_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build
SDK_VERSION_ACTUAL=150000
SDK_NAME=macosx15.0
PODS_XCFRAMEWORKS_BUILD_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products/Debug/XCFrameworkIntermediates
OS=MACOS
LOCALIZED_RESOURCES_FOLDER_PATH=rust_lib_my_app.framework/Versions/A/Resources/en.lproj
LD_MAP_FILE_PATH=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/rust_lib_my_app-LinkMap-normal-undefined_arch.txt
GCC_INLINES_ARE_PRIVATE_EXTERN=YES
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF=YES
XCODE_PRODUCT_BUILD_VERSION=16A242d
WRAPPER_SUFFIX=.framework
WORKSPACE_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/macos
TAPI_LANGUAGE_STANDARD=compiler-default
DERIVED_FILES_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/DerivedSources
DEFINES_MODULE=YES
CONFIGURATION_BUILD_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products/Debug/rust_lib_my_app
CLANG_WARN_UNREACHABLE_CODE=YES
APPLE_INTERNAL_DEVELOPER_DIR=/AppleInternal/Developer
LLBUILD_LANE_ID=6
VERSIONS_FOLDER_PATH_SHALLOW_BUNDLE_YES=rust_lib_my_app.framework
VALIDATE_DEVELOPMENT_ASSET_PATHS=YES_ERROR
PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES=/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode_16.0.app/Contents/Developer/Headers /Applications/Xcode_16.0.app/Contents/Developer/SDKs /Applications/Xcode_16.0.app/Contents/Developer/Platforms
OBJECT_FILE_DIR_normal=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/Objects-normal
MODULES_FOLDER_PATH=rust_lib_my_app.framework/Versions/A/Modules
KASAN_CFLAGS_CLASSIC=-DKASAN=1 -DKASAN_CLASSIC=1 -fsanitize=address -mllvm -asan-globals-live-support -mllvm -asan-force-dynamic-shadow
GCC_PFE_FILE_C_DIALECTS=c objective-c c++ objective-c++
DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Applications
DEPLOYMENT_TARGET_SUGGESTED_VALUES=10.13 10.14 10.15 11.0 11.1 11.2 11.3 11.4 11.5 12.0 12.2 12.3 12.4 13.0 13.1 13.2 13.3 13.4 13.5 14.0 14.1 14.2 14.3 14.4 14.5 14.6 15.0
CODE_SIGN_IDENTITY_NO=Apple Development
ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOLS=YES
VERSION_INFO_STRING="@(#)PROGRAM:rust_lib_my_app  PROJECT:Pods-1"
USER=user
GROUP=staff
ENTITLEMENTS_DESTINATION=Signature
DOCUMENTATION_FOLDER_PATH=rust_lib_my_app.framework/Versions/A/Resources/en.lproj/Documentation
rvm_gemstone_package_file=
OTHER_LDFLAGS= -force_load /Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products/Debug/rust_lib_my_app/librust_lib_my_app.a
OSAC=/usr/bin/osacompile
JAVA_JAR_FLAGS=cv
INSTALLHDRS_SCRIPT_PHASE=NO
EXECUTABLE_PATH=rust_lib_my_app.framework/Versions/A/rust_lib_my_app
DYLIB_COMPATIBILITY_VERSION=1
CURRENT_ARCH=undefined_arch
COMPILER_INDEX_STORE_ENABLE=NO
CLANG_MODULES_BUILD_SESSION_FILE=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/ModuleCache.noindex/Session.modulevalidation
COMMAND_MODE=unix2003
_BOOL_YES=YES
TARGET_NAME=rust_lib_my_app
SDK_VERSION_MAJOR=150000
DEPLOYMENT_POSTPROCESSING=NO
CLANG_ANALYZER_NONNULL=YES
LLBUILD_BUILD_ID=2900738832
UsePerConfigurationBuildLocations=YES
YACC=yacc
WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES=NO
TREAT_MISSING_BASELINES_AS_TEST_FAILURES=NO
STRIP_STYLE=debugging
EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES=*.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj
CURRENT_PROJECT_VERSION=1
CLONE_HEADERS=NO
CLANG_WARN_SUSPICIOUS_MOVE=YES
BUNDLE_PRIVATE_HEADERS_FOLDER_PATH=Contents/PrivateHeaders
rvm_path=/Users/user/.rvm
FLUTTER_ROOT=/Users/user/fvm/versions/stable
LIBRARY_DEXT_INSTALL_PATH=/Library/DriverExtensions
GCC3_VERSION=3.3
EXECUTABLE_FOLDER_PATH_SHALLOW_BUNDLE_NO=rust_lib_my_app.framework/Versions/A
DEVELOPER_USR_DIR=/Applications/Xcode_16.0.app/Contents/Developer/usr
CLANG_ENABLE_OBJC_ARC=YES
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.EXrmkBNuq9/Listeners
_WRAPPER_RESOURCES_DIR=/Resources
VERSIONPLIST_PATH=rust_lib_my_app.framework/Versions/A/Resources/version.plist
VALIDATE_PRODUCT=NO
TARGETNAME=rust_lib_my_app
SYSTEM_APPS_DIR=/Applications
STRINGSDATA_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/Objects-normal/undefined_arch
PLATFORM_PREFERRED_ARCH=x86_64
OBJECT_FILE_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/Objects
CODE_SIGNING_REQUIRES_TEAM=YES
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
XCODE_VERSION_ACTUAL=1600
XCODE_APP_SUPPORT_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Library/Xcode
SWIFT_RESPONSE_FILE_PATH_normal_arm64=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/Objects-normal/arm64/rust_lib_my_app.SwiftFileList
SWIFT_ACTIVE_COMPILATION_CONDITIONS=DEBUG 
STRIP_BITCODE_FROM_COPIED_FILES=NO
RESCHEDULE_INDEPENDENT_HEADERS_PHASES=YES
PODS_ROOT=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/macos/Pods
PACKAGE_TYPE=com.apple.package-type.wrapper.framework
MODULE_CACHE_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/ModuleCache.noindex
ICONV=/usr/bin/iconv
HEADER_SEARCH_PATHS=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products/Debug/rust_lib_my_app/include 
ENABLE_PREVIEWS=NO
DEFAULT_DEXT_INSTALL_PATH=/System/Library/DriverExtensions
BUILT_PRODUCTS_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products/Debug/rust_lib_my_app
rvm_proxy=
USER_APPS_DIR=/Users/user/Applications
SCRIPT_OUTPUT_FILE_COUNT=1
PKGINFO_PATH=rust_lib_my_app.framework/PkgInfo
LOCAL_ADMIN_APPS_DIR=/Applications/Utilities
IS_UNOPTIMIZED_BUILD=YES
HOST_PLATFORM=macosx
GCC_WARN_64_TO_32_BIT_CONVERSION=YES
GCC_VERSION=com.apple.compilers.llvm.clang.1_0
GCC_OPTIMIZATION_LEVEL=0
ENABLE_HARDENED_RUNTIME=NO
DERIVED_SOURCES_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/DerivedSources
DERIVED_FILE_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/DerivedSources
rvm_ruby_file=
SET_FILE_MODE_OWNER_GROUP=NO
SDK_VERSION=15.0
SDK_NAMES=macosx15.0
REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES=YES
LLVM_TARGET_TRIPLE_VENDOR=apple
EXECUTABLE_FOLDER_PATH_SHALLOW_BUNDLE_YES=rust_lib_my_app.framework/Versions/A
ENABLE_HEADER_DEPENDENCIES=YES
ENABLE_DEFAULT_HEADER_SEARCH_PATHS=YES
ENABLE_APP_SANDBOX=NO
DWARF_DSYM_FOLDER_PATH=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products/Debug/rust_lib_my_app
DONT_GENERATE_INFOPLIST_FILE=NO
DEAD_CODE_STRIPPING=NO
ARCHS_STANDARD=arm64 x86_64
SYSTEM_DEMOS_DIR=/Applications/Extras
SHARED_DERIVED_FILE_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products/Debug/rust_lib_my_app/DerivedSources
PRODUCT_BUNDLE_IDENTIFIER=org.cocoapods.rust-lib-my-app
PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR=YES
LLVM_TARGET_TRIPLE_OS_VERSION_NO=macos10.14
GCC_VERSION_IDENTIFIER=com_apple_compilers_llvm_clang_1_0
COPYING_PRESERVES_HFS_DATA=NO
CLANG_WARN_COMMA=YES
BUNDLE_CONTENTS_FOLDER_PATH=Contents/
ARCHS_STANDARD_INCLUDING_64_BIT=arm64 x86_64
_WRAPPER_PARENT_PATH=/..
UNLOCALIZED_RESOURCES_FOLDER_PATH_SHALLOW_BUNDLE_YES=rust_lib_my_app.framework/Versions/A
REZ_SEARCH_PATHS=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products/Debug/rust_lib_my_app 
GCC_TREAT_WARNINGS_AS_ERRORS=NO
DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT=NO
CLANG_WARN_OBJC_ROOT_CLASS=YES_ERROR
BUILD_COMPONENTS=headers build
rvm_prefix=/Users/user
rvm_silent_flag=
UNINSTALLED_PRODUCTS_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/UninstalledProducts
PRODUCT_BUNDLE_PACKAGE_TYPE=FMWK
JAVA_USE_DEPENDENCIES=YES
ALTERNATE_MODE=u+w,go-w,a+rX
rvm_ruby_make=
TREAT_MISSING_SCRIPT_PHASE_OUTPUTS_AS_ERRORS=NO
TAPI_LANGUAGE=objective-c
SWIFT_EMIT_LOC_STRINGS=NO
SHALLOW_BUNDLE_macos=NO
SDK_DIR_macosx15_0=/Applications/Xcode_16.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk
REMOVE_STATIC_EXECUTABLES_FROM_EMBEDDED_BUNDLES=YES
PATH=/Applications/Xcode_16.0.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/PlugIns/XCBSpecifications.ideplugin/Contents/Resources:/Applications/Xcode_16.0.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/PlugIns/XCBSpecifications.ideplugin:/Users/user/.rvm/gems/ruby-2.7.2/bin:/Users/user/.rvm/gems/ruby-2.7.2@global/bin:/Users/user/.rvm/rubies/ruby-2.7.2/bin:/Users/user/.local/bin:/opt/homebrew/opt/libpq/bin:/Users/user/fvm/versions/stable/bin/:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Little Snitch.app/Contents/Components:/Users/user/.cargo/bin:/Users/user/.orbstack/bin:/Users/user/Applications/homebrew/bin:/Users/user/.rvm/bin:/Users/user/Documents/Projects/Playgrounds/RustStandalone/hello/target/debug:/Users/user/.pub-cache/bin:/Users/user/fvm/versions/stable/bin
INSTALL_GROUP=staff
DIFF=/usr/bin/diff
CLANG_ENABLE_MODULES=YES
VERSIONS_FOLDER_PATH_SHALLOW_BUNDLE_NO=rust_lib_my_app.framework/Versions
ONLY_ACTIVE_ARCH=YES
INSTALL_MODE_FLAG=u+w,go-w,a+rX
INFOPLIST_OUTPUT_FORMAT=same-as-input
DEVELOPER_TOOLS_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Tools
COPY_HEADERS_RUN_UNIFDEF=NO
CODE_SIGNING_ALLOWED=NO
ACTION=build
LaunchInstanceID=8ABEBFB0-35A9-4332-A292-782165F8E372
TAPI_ENABLE_PROJECT_HEADERS=NO
STRINGS_FILE_OUTPUT_ENCODING=UTF-16
SHARED_PRECOMPS_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/PrecompiledHeaders
PROJECT_NAME=Pods
MODULEMAP_FILE=Target Support Files/rust_lib_my_app/rust_lib_my_app.modulemap
LOCSYMROOT=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/macos/Pods
HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES=YES
FUSE_BUILD_SCRIPT_PHASES=NO
FULL_PRODUCT_NAME=rust_lib_my_app.framework
CLANG_CACHE_FINE_GRAINED_OUTPUTS=YES
BITCODE_GENERATION_MODE=marker
__CFBundleIdentifier=com.microsoft.VSCode
USER_ZDOTDIR=/Users/user
_WRAPPER_RESOURCES_DIR_SHALLOW_BUNDLE_NO=/Resources
STRIP_SWIFT_SYMBOLS=YES
SEPARATE_STRIP=NO
SDK_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk
SCRIPT_INPUT_FILE_LIST_COUNT=0
PER_VARIANT_OBJECT_FILE_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/Objects-normal
INSTALLHDRS_COPY_PHASE=NO
GID=20
DEPLOYMENT_TARGET_SETTING_NAME=MACOSX_DEPLOYMENT_TARGET
COMPRESS_PNG_FILES=NO
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED=YES
BUNDLE_PUBLIC_HEADERS_FOLDER_PATH=Contents/Headers
BUILD_ACTIVE_RESOURCES_ONLY=NO
PWD=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/macos/Pods
STRIP_INSTALLED_PRODUCT=NO
SHALLOW_BUNDLE_ios_macabi=NO
SCRIPT_OUTPUT_FILE_0=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products/Debug/rust_lib_my_app/librust_lib_my_app.a
PROCESSED_INFOPLIST_PATH=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/Objects-normal/undefined_arch/Processed-Info.plist
PLATFORM_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Platforms/MacOSX.platform
JAVAC_DEFAULT_FLAGS=-J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8
INSTALL_OWNER=user
HOST_ARCH=arm64
FILE_LIST=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/Objects/LinkFileList
EAGER_LINKING=NO
CONTENTS_FOLDER_PATH=rust_lib_my_app.framework/Versions/A
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER=NO
BUILD_LIBRARY_FOR_DISTRIBUTION=NO
JAVA_HOME=/Users/user/Library/Java/JavaVirtualMachines/openjdk-17/Contents/Home
SDK_DIR_macosx=/Applications/Xcode_16.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk
REMOVE_GIT_FROM_RESOURCES=YES
PROJECT_FILE_PATH=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/macos/Pods/Pods.xcodeproj
PRODUCT_MODULE_NAME=rust_lib_my_app
JAVA_FRAMEWORK_RESOURCES_DIRS=Resources
GCC_DYNAMIC_NO_PIC=NO
FRAMEWORK_SEARCH_PATHS=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products/Debug/rust_lib_my_app "/Users/user/fvm/versions/stable/bin/cache/artifacts/engine/darwin-x64/FlutterMacOS.xcframework/macos-arm64_x86_64" 
EXECUTABLE_NAME=rust_lib_my_app
CCHROOT=/var/folders/q5/frl187dx5x3bwrrp5bhby7fc0000gn/C/com.apple.DeveloperTools/16.0-16A242d/Xcode
BUNDLE_PLUGINS_FOLDER_PATH=Contents/PlugIns
BUNDLE_EXTENSIONS_FOLDER_PATH=Contents/Extensions
APPLICATION_EXTENSION_API_ONLY=NO
STRINGS_FILE_INFOPLIST_RENAME=YES
SHALLOW_BUNDLE_PLATFORM=NO
NO_COMMON=YES
LD_RUNPATH_SEARCH_PATHS= @executable_path/../Frameworks @loader_path/Frameworks
KASAN_CFLAGS_TBI=-DKASAN=1 -DKASAN_TBI=1 -fsanitize=kernel-hwaddress -mllvm -hwasan-recover=0 -mllvm -hwasan-instrument-atomics=0 -mllvm -hwasan-instrument-stack=1 -mllvm -hwasan-generate-tags-with-calls=1 -mllvm -hwasan-instrument-with-calls=1 -mllvm -hwasan-use-short-granules=0 -mllvm -hwasan-memory-access-callback-prefix=__asan_
ENABLE_USER_SCRIPT_SANDBOXING=NO
CREATE_INFOPLIST_SECTION_IN_BINARY=NO
ALLOW_TARGET_PLATFORM_SPECIALIZATION=NO
LANG=en_US.UTF-8
rvm_sdk=
_IS_EMPTY_=YES
VERSION_INFO_FILE=rust_lib_my_app_vers.c
UNSTRIPPED_PRODUCT=NO
SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Applications/Graphics Tools
PLATFORM_DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Applications
LM_AUX_CONST_METADATA_LIST_PATH_normal_arm64=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/Objects-normal/arm64/rust_lib_my_app.SwiftConstValuesFileList
JAVA_SOURCE_SUBDIR=.
JAVA_COMPILER=/usr/bin/javac
HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS=YES
ENABLE_XOJIT_PREVIEWS=YES
DEFAULT_KEXT_INSTALL_PATH=/System/Library/Extensions
BUNDLE_EXECUTABLE_FOLDER_PATH=Contents/MacOS
SEPARATE_SYMBOL_EDIT=NO
IS_MACCATALYST=NO
FUSE_BUILD_PHASES=YES
DEPLOYMENT_LOCATION=NO
DEFAULT_COMPILER=com.apple.compilers.llvm.clang.1_0
CODE_SIGNING_REQUIRED=NO
CLANG_CXX_LIBRARY=libc++
AD_HOC_CODE_SIGNING_ALLOWED=YES
SRCROOT=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/macos/Pods
SDK_STAT_CACHE_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos
REZ_OBJECTS_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/ResourceManagerResources/Objects
LOCAL_DEVELOPER_DIR=/Library/Developer
INFOPLIST_PATH=rust_lib_my_app.framework/Versions/A/Resources/Info.plist
DEVELOPER_FRAMEWORKS_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Library/Frameworks
BUNDLE_FORMAT=deep
ALLOW_BUILD_REQUEST_OVERRIDES=NO
VSCODE_GIT_ASKPASS_EXTRA_ARGS=
XPC_FLAGS=0x0
TEMP_FILE_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build
SYSTEM_DEVELOPER_JAVA_TOOLS_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Applications/Java Tools
PUBLIC_HEADERS_FOLDER_PATH=rust_lib_my_app.framework/Versions/A/Headers
PROJECT_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/macos/Pods
PASCAL_STRINGS=YES
METAL_LIBRARY_OUTPUT_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products/Debug/rust_lib_my_app/rust_lib_my_app.framework/Versions/A/Resources
KASAN_DEFAULT_CFLAGS=-DKASAN=1 -DKASAN_CLASSIC=1 -fsanitize=address -mllvm -asan-globals-live-support -mllvm -asan-force-dynamic-shadow
JAVA_FOLDER_PATH=rust_lib_my_app.framework/Versions/A/Resources/Java
DEBUG_INFORMATION_VERSION=compiler-default
CONTENTS_FOLDER_PATH_SHALLOW_BUNDLE_NO=rust_lib_my_app.framework/Versions/A
COMPOSITE_SDK_DIRS=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/CompositeSDKs
CLANG_ENABLE_OBJC_WEAK=NO
CHOWN=/usr/sbin/chown
PROJECT_TEMP_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build
MAC_OS_X_VERSION_MAJOR=150000
LINK_OBJC_RUNTIME=YES
GCC_NO_COMMON_BLOCKS=YES
EMBEDDED_CONTENT_CONTAINS_SWIFT=NO
SYSTEM_EXTENSIONS_FOLDER_PATH_SHALLOW_BUNDLE_YES=rust_lib_my_app.framework/Versions/A/SystemExtensions
SYMROOT=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products
SKIP_INSTALL=YES
SCRIPT_INPUT_FILE_COUNT=1
LOCALIZED_STRING_MACRO_NAMES=NSLocalizedString CFCopyLocalizedString
IS_UIKITFORMAC=NO
CP=/bin/cp
_BOOL_=NO
PLATFORM_DEVELOPER_TOOLS_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Tools
JAVA_ARCHIVE_CLASSES=YES
COMPILATION_CACHE_CAS_PATH=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/CompilationCache.noindex
XPC_SERVICE_NAME=0
SYSTEM_DEVELOPER_APPS_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Applications
PROJECT_TEMP_ROOT=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex
PODS_TARGET_SRCROOT=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/macos/Pods/../Flutter/ephemeral/.symlinks/plugins/rust_lib_my_app/macos
MAC_OS_X_VERSION_ACTUAL=150001
LOCALIZED_STRING_SWIFTUI_SUPPORT=YES
LEX=lex
EAGER_COMPILATION_ALLOW_SCRIPTS=NO
DWARF_DSYM_FILE_NAME=rust_lib_my_app.framework.dSYM
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS=YES
APPLE_INTERNAL_DOCUMENTATION_DIR=/AppleInternal/Documentation
rvm_version=1.29.12 (latest)
VSCODE_INJECTION=1
TAPI_DEMANGLE=YES
PLATFORM_DISPLAY_NAME=macOS
MTL_ENABLE_DEBUG_INFO=INCLUDE_SOURCE
LLVM_TARGET_TRIPLE_OS_VERSION_YES=macos15.0
INSTALL_ROOT=/tmp/Pods.dst
FRAMEWORK_FLAG_PREFIX=-framework
CLANG_WARN_INFINITE_RECURSION=YES
CLANG_WARN_BOOL_CONVERSION=YES
rvm_script_name=
rvm_pretty_print_flag=
SHLVL=4
RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS=YES
HOME=/Users/user
HIDE_BITCODE_SYMBOLS=YES
BUNDLE_EXECUTABLE_FOLDER_NAME_deep=MacOS
rvm_ruby_mode=
VSCODE_GIT_ASKPASS_MAIN=/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js
SET_DIR_MODE_OWNER_GROUP=YES
PROFILING_CODE=NO
PLATFORM_DEVELOPER_LIBRARY_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Library
GENERATE_PROFILING_CODE=NO
EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS=.DS_Store .svn .git .hg CVS
ENABLE_TESTING_SEARCH_PATHS=NO
AUTOMATICALLY_MERGE_DEPENDENCIES=NO
APPLY_RULES_IN_COPY_FILES=NO
SYSTEM_LIBRARY_DIR=/System/Library
SYSTEM_EXTENSIONS_FOLDER_PATH=rust_lib_my_app.framework/Versions/A/Library/SystemExtensions
SDK_VERSION_MINOR=150000
REMOVE_SVN_FROM_RESOURCES=YES
LD_DYLIB_INSTALL_NAME=@rpath/rust_lib_my_app.framework/Versions/A/rust_lib_my_app
CLANG_WARN_INT_CONVERSION=YES
BUNDLE_FRAMEWORKS_FOLDER_PATH=Contents/Frameworks
BUNDLE_CONTENTS_FOLDER_PATH_deep=Contents/
HOMEBREW_PREFIX=/opt/homebrew
XCODE_VERSION_MINOR=1600
VERBOSE_PBXCP=NO
VALID_ARCHS=arm64 arm64e i386 x86_64
SYSTEM_KEXT_INSTALL_PATH=/System/Library/Extensions
SWIFT_VERSION=5.0
FRAMEWORKS_FOLDER_PATH=rust_lib_my_app.framework/Versions/A/Frameworks
DEVELOPER_BIN_DIR=/Applications/Xcode_16.0.app/Contents/Developer/usr/bin
CLANG_ENABLE_EXPLICIT_MODULES=YES
_WRAPPER_PARENT_PATH_SHALLOW_BUNDLE_NO=/..
SYSTEM_DEVELOPER_DEMOS_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Applications/Utilities/Built Examples
LD_NO_PIE=NO
INSTALL_PATH=/Library/Frameworks
GENERATE_INTERMEDIATE_TEXT_BASED_STUBS=YES
COMBINE_HIDPI_IMAGES=YES
CACHE_ROOT=/var/folders/q5/frl187dx5x3bwrrp5bhby7fc0000gn/C/com.apple.DeveloperTools/16.0-16A242d/Xcode
SYSTEM_DEVELOPER_BIN_DIR=/Applications/Xcode_16.0.app/Contents/Developer/usr/bin
PROJECT_DERIVED_FILE_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/DerivedSources
LEGACY_DEVELOPER_DIR=/Applications/Xcode_16.0.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
JAVA_ARCHIVE_TYPE=JAR
GCC_PREPROCESSOR_DEFINITIONS=POD_CONFIGURATION_DEBUG=1 DEBUG=1  COCOAPODS=1
DEBUGGING_SYMBOLS=YES
ALWAYS_USE_SEPARATE_HEADERMAPS=NO
LOGNAME=user
SHALLOW_BUNDLE=NO
PRECOMP_DESTINATION_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/PrefixHeaders
PKGINFO_FILE_PATH=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/PkgInfo
MACOSX_DEPLOYMENT_TARGET=10.14
CODESIGNING_FOLDER_PATH=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products/Debug/rust_lib_my_app/rust_lib_my_app.framework/Versions/A
CLANG_WARN__DUPLICATE_METHOD_MATCH=YES
CLANG_WARN_DIRECT_OBJC_ISA_USAGE=YES_ERROR
LLBUILD_TASK_ID=c31000060001
rvm_alias_expanded=
XCODE_VERSION_MAJOR=1600
SDK_STAT_CACHE_ENABLE=YES
PLATFORM_DEVELOPER_BIN_DIR=/Applications/Xcode_16.0.app/Contents/Developer/usr/bin
LLVM_TARGET_TRIPLE_OS_VERSION=macos10.14
JIKES_DEFAULT_FLAGS=+E +OLDCSO
HEADERMAP_USES_VFS=YES
GENERATED_MODULEMAP_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/GeneratedModuleMaps
GCC_WARN_UNUSED_VARIABLE=YES
COLOR_DIAGNOSTICS=NO
BUILD_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products
APPLE_INTERNAL_LIBRARY_DIR=/AppleInternal/Library
GEM_PATH=/Users/user/.rvm/gems/ruby-2.7.2:/Users/user/.rvm/gems/ruby-2.7.2@global
VSCODE_GIT_IPC_HANDLE=/var/folders/q5/frl187dx5x3bwrrp5bhby7fc0000gn/T/vscode-git-cc04301c37.sock
_WRAPPER_CONTENTS_DIR=/Contents
_MACOSX_DEPLOYMENT_TARGET_IS_EMPTY=NO
USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES=YES
TOOLCHAIN_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
LOCAL_LIBRARY_DIR=/Library
LINK_WITH_STANDARD_LIBRARIES=YES
LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER=YES
INFOPLIST_FILE=Target Support Files/rust_lib_my_app/rust_lib_my_app-Info.plist
GENERATE_INFOPLIST_FILE=NO
DYNAMIC_LIBRARY_EXTENSION=dylib
CURRENT_VARIANT=normal
CLANG_WARN_NON_LITERAL_NULL_CONVERSION=YES
ALWAYS_SEARCH_USER_PATHS=NO
USE_HEADER_SYMLINKS=NO
UID=501
LOCROOT=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/macos/Pods
ENABLE_TESTABILITY=YES
CLANG_WARN_RANGE_LOOP_ANALYSIS=YES
CLANG_CXX_LANGUAGE_STANDARD=gnu++14
ALTERNATE_GROUP=staff
SYSTEM_DEVELOPER_USR_DIR=/Applications/Xcode_16.0.app/Contents/Developer/usr
SYSTEM_DEVELOPER_TOOLS_DOC_DIR=/Applications/Xcode_16.0.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools
SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Applications/Performance Tools
SUPPORTED_PLATFORMS=macosx
SCRIPT_OUTPUT_FILE_LIST_COUNT=0
SCRIPTS_FOLDER_PATH=rust_lib_my_app.framework/Versions/A/Resources/Scripts
SCAN_ALL_SOURCE_FILES_FOR_INCLUDES=NO
RECOMMENDED_MACOSX_DEPLOYMENT_TARGET=11.0
PLATFORM_DEVELOPER_SDK_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
MAKE_MERGEABLE=NO
KEEP_PRIVATE_EXTERNS=NO
rvm_nightly_flag=
arch=undefined_arch
XPCSERVICES_FOLDER_PATH=rust_lib_my_app.framework/Versions/A/XPCServices
VERSIONING_SYSTEM=apple-generic
MERGE_LINKED_LIBRARIES=NO
IOS_UNZIPPERED_TWIN_PREFIX_PATH=/System/iOSSupport
INFOSTRINGS_PATH=rust_lib_my_app.framework/Versions/A/Resources/en.lproj/InfoPlist.strings
GCC_PREFIX_HEADER=Target Support Files/rust_lib_my_app/rust_lib_my_app-prefix.pch
CODE_SIGN_INJECT_BASE_ENTITLEMENTS=YES
GIT_ASKPASS=/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh
VSCODE_GIT_ASKPASS_NODE=/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)
HOMEBREW_CELLAR=/opt/homebrew/Cellar
rvm_ruby_make_install=
INFOPATH=/opt/homebrew/share/info:/opt/homebrew/share/info:
PODS_BUILD_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products
PLATFORM_PRODUCT_BUILD_VERSION=24A336
NATIVE_ARCH_ACTUAL=arm64
INLINE_PRIVATE_FRAMEWORKS=NO
GENERATE_MASTER_OBJECT_FILE=NO
GCC_WARN_UNINITIALIZED_AUTOS=YES_AGGRESSIVE
EXTENSIONS_FOLDER_PATH=rust_lib_my_app.framework/Versions/A/Extensions
DYLIB_CURRENT_VERSION=1
rvm_niceness=
SYSTEM_CORE_SERVICES_DIR=/System/Library/CoreServices
SHARED_FRAMEWORKS_FOLDER_PATH=rust_lib_my_app.framework/Versions/A/SharedFrameworks
INFOPLIST_EXPAND_BUILD_SETTINGS=YES
EMBEDDED_PROFILE_NAME=embedded.provisionprofile
DEVELOPER_LIBRARY_DIR=/Applications/Xcode_16.0.app/Contents/Developer/Library
CODE_SIGN_IDENTITY_YES=-
BUILD_STYLE=
ARCHS_STANDARD_64_BIT=arm64 x86_64
ALTERNATE_OWNER=user
rvm_ruby_bits=
_WRAPPER_CONTENTS_DIR_SHALLOW_BUNDLE_NO=/Contents
_DEVELOPMENT_TEAM_IS_EMPTY=YES
PODS_DEVELOPMENT_LANGUAGE=en
MERGED_BINARY_TYPE=none
LINKER_DISPLAYS_MANGLED_NAMES=NO
LD_EXPORT_SYMBOLS=YES
HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES=YES
GENERATE_PKGINFO_FILE=NO
CONTENTS_FOLDER_PATH_SHALLOW_BUNDLE_YES=rust_lib_my_app.framework
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING=YES
CHMOD=/bin/chmod
ARCHS_STANDARD_32_BIT=i386
ARCHS=arm64
rvm_bin_flag=
TARGET_TEMP_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build
STRIP_PNG_TEXT=NO
SDK_STAT_CACHE_PATH=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/SDKStatCaches.noindex/macosx15.0-24A336-94b8292bf472a071df2b2066649ae6c8.sdkstatcache
NATIVE_ARCH=arm64
ENTITLEMENTS_REQUIRED=NO
DYLIB_INSTALL_NAME_BASE=@rpath
DEBUG_INFORMATION_FORMAT=dwarf
COMPILATION_CACHE_KEEP_CAS_DIRECTORY=YES
CLANG_WARN_CONSTANT_CONVERSION=YES
RUBY_VERSION=ruby-2.7.2
rvm_only_path_flag=
SECURITYSESSIONID=186c4
WRAPPER_NAME=rust_lib_my_app.framework
TEMP_ROOT=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex
LD_WARN_DUPLICATE_LIBRARIES=NO
HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_TARGETS_NOT_BEING_BUILT=YES
HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT=YES
FRAMEWORK_VERSION=A
SYSTEM_ADMIN_APPS_DIR=/Applications/Utilities
SOURCE_ROOT=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/macos/Pods
PLATFORM_FAMILY_NAME=macOS
LIBRARY_KEXT_INSTALL_PATH=/Library/Extensions
FIXED_FILES_DIR=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build/FixedFiles
CLANG_WARN_UNGUARDED_AVAILABILITY=YES_AGGRESSIVE
COLORTERM=truecolor
_BOOL_NO=NO
USE_HEADERMAP=YES
SUPPORTS_TEXT_BASED_API=NO
PRODUCT_SETTINGS_PATH=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/macos/Pods/Target Support Files/rust_lib_my_app/rust_lib_my_app-Info.plist
EXECUTABLE_FOLDER_PATH=rust_lib_my_app.framework/Versions/A
ENABLE_DEFAULT_SEARCH_PATHS=YES
BUILD_ROOT=/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Products
_=/usr/bin/env
INFO: Precompiled binaries are disabled
INFO: Building rust_lib_my_app for aarch64-apple-darwin
SEVERE: ================================================================================
SEVERE: Cargokit BuildTool failed with error:
SEVERE: --------------------------------------------------------------------------------
SEVERE: External Command: rustup "run" "stable" "cargo" "build" "--manifest-path" "/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/rust/Cargo.toml" "-p" "rust_lib_my_app" "--target" "aarch64-apple-darwin" "--target-dir" "/Users/user/Documents/Projects/Playgrounds/Flutter/frb/my_app/build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_my_app.build"
SEVERE: Returned Exit Code: 101
SEVERE: --------------------------------------------------------------------------------
SEVERE: STDOUT:
SEVERE: --------------------------------------------------------------------------------
SEVERE: STDERR:
SEVERE: Compiling memchr v2.6.4
SEVERE:    Compiling libc v0.2.150
SEVERE:    Compiling futures-core v0.3.29
SEVERE:    Compiling pin-project-lite v0.2.13
SEVERE:    Compiling futures-sink v0.3.29
SEVERE:    Compiling cfg-if v1.0.0
SEVERE:    Compiling futures-task v0.3.29
SEVERE:    Compiling block-buffer v0.10.4
SEVERE: error[E0463]: can't find crate for `core`
SEVERE:   |
SEVERE:   = help: consider downloading the target with `rustup target add aarch64-apple-darwin`
SEVERE: 
SEVERE: For more information about this error, try `rustc --explain E0463`.
SEVERE: error: could not compile `libc` (lib) due to 1 previous error
SEVERE: warning: build failed, waiting for other jobs to finish...
SEVERE: error[E0463]: can't find crate for `std`
SEVERE:   |
SEVERE:   = help: consider downloading the target with `rustup target add aarch64-apple-darwin`
SEVERE: 
SEVERE: error: could not compile `futures-core` (lib) due to 1 previous error
SEVERE: error: could not compile `pin-project-lite` (lib) due to 1 previous error
SEVERE: error: could not compile `memchr` (lib) due to 1 previous error
SEVERE: error: could not compile `futures-sink` (lib) due to 1 previous error
SEVERE: error: could not compile `futures-task` (lib) due to 1 previous error
SEVERE: error: could not compile `cfg-if` (lib) due to 1 previous error
SEVERE: --------------------------------------------------------------------------------
SEVERE: #0      runCommand (package:build_tool/src/util.dart:121:5)
SEVERE: #1      RustBuilder.build (package:build_tool/src/builder.dart:142:5)
SEVERE: <asynchronous suspension>
SEVERE: #2      ArtifactProvider.getArtifacts (package:build_tool/src/artifacts_provider.dart:71:25)
SEVERE: <asynchronous suspension>
SEVERE: #3      BuildPod.build (package:build_tool/src/build_pod.dart:34:23)
SEVERE: <asynchronous suspension>
SEVERE: #4      BuildPodCommand.runBuildCommand (package:build_tool/src/build_tool.dart:51:5)
SEVERE: <asynchronous suspension>
SEVERE: #5      BuildCommand.run (package:build_tool/src/build_tool.dart:37:5)
SEVERE: <asynchronous suspension>
SEVERE: #6      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
SEVERE: <asynchronous suspension>
SEVERE: #7      runMain (package:build_tool/src/build_tool.dart:251:5)
SEVERE: <asynchronous suspension>
SEVERE: --------------------------------------------------------------------------------
SEVERE: BuildTool arguments: [build-pod, ../../rust, rust_lib_my_app]
SEVERE: ================================================================================
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')
** BUILD FAILED **

Building macOS application...                                           
Error: Build process failed

Expected behavior

No response

Generated binding code

No response

OS

macos

Version of flutter_rust_bridge_codegen

2.5.0

Flutter info

user@user my_app % flutter doctor -v
[✓] Flutter (Channel stable, 3.24.3, on macOS 15.0.1 24A348 darwin-arm64, locale en-CY)
    • Flutter version 3.24.3 on channel stable at /Users/user/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2663184aa7 (4 weeks ago), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/user/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Users/user/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
    • Xcode at /Applications/Xcode_16.0.app/Contents/Developer
    • Build 16A242d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Users/user/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)

[✓] VS Code (version 1.94.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.98.0

[✓] Connected device (6 available)
    • **** XS Max (mobile)              • 00008020-0002790C******** • ios            • iOS 18.0.1 22A3370
    • iPhone (mobile)                   • 00008130-00010488******** • ios            • iOS 17.6.1 21G93
    • *****************’s iPad (mobile) • 00008103-001C5851******** • ios            • iOS 18.0 22A3354
    • macOS (desktop)                   • macos                     • darwin-arm64   • macOS 15.0.1 24A348 darwin-arm64
    • Mac Designed for iPad (desktop)   • mac-designed-for-ipad     • darwin         • macOS 15.0.1 24A348 darwin-arm64
    • Chrome (web)                      • chrome                    • web-javascript • Google Chrome 119.0.6045.199

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Version of clang++

No response

Additional context

No response

welcome[bot] commented 1 month ago

Hi! Thanks for opening your first issue here! :smile:

fzyzcjy commented 1 month ago

This sounds like something related to cargokit, the library that flutter_rust_bridge uses for compiling Rust in Flutter environment.

also, could you please show more logs flutter run -d macos --verbose?

bubnov commented 1 month ago

Sure! Here is the logs file: log.txt

fzyzcjy commented 1 month ago

Hmm, then I guess I / flutter_rust_bridge cannot do much here, since this does sound like a cargokit-related question. I guess it would be great to check there.

bubnov commented 1 month ago

I just checked cargokit, and it turns out that this is an experimental tool with rather poor documentation (if it’s even appropriate to call the article "documentation" at all). But it’s better than nothing, I guess. As a result, the FRB is also experimental, which is unfortunate as I'm not sure it is production ready (taking into account that I can't even run the empty project on macos). I think It might be wise for me to stick to low-level tools like cbindgen and ffigen and write the necessary code myself. Thanks!

fzyzcjy commented 1 month ago

IMHO, cargokit is widely used, and looks usually stable. Not only is flutter_rust_bridge used by many places, but also cargokit-without-flutter_rust_bridge is used in e.g. https://pub.dev/packages/super_clipboard. Thus, I personally do not think cargokit is experimental. In addition, since cargokit is just a compile tool, even if it is unstable, it does not cause hard-to-debug runtime problems when flutter_rust_bridge uses it.

bubnov commented 1 month ago

I tried to run the example of super_clipboard on macos and got the same issue.

The final step that solved the issue was to uninstall/install the rust toolchain from the scratch:

  1. rustup self uninstall
  2. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  3. flutter clean && flutter pub get && flutter run -d macos

I have no idea why this helped tbh.

I think it would be helpful to mention this somewhere in the F.A.Q. or troubleshooting section in the docs.

The problem solved. Thanks!

fzyzcjy commented 1 month ago

Happy to see it works and you are welcome!

I think it would be helpful to mention this somewhere in the F.A.Q. or troubleshooting section in the docs.

Totally agree, and feel free to PR! I guess a place may be https://cjycode.com/flutter_rust_bridge/manual/troubleshooting (i.e. https://github.com/fzyzcjy/flutter_rust_bridge/blob/master/website/docs/manual/troubleshooting.md)

bubnov commented 1 month ago

Sure, here is the PR: https://github.com/fzyzcjy/flutter_rust_bridge/pull/2350

github-actions[bot] commented 3 weeks ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue.