diff --git a/native/ios/Comm.xcodeproj/project.pbxproj b/native/ios/Comm.xcodeproj/project.pbxproj --- a/native/ios/Comm.xcodeproj/project.pbxproj +++ b/native/ios/Comm.xcodeproj/project.pbxproj @@ -1280,11 +1280,11 @@ ); "LIBRARY_SEARCH_PATHS[sdk=iphoneos*]" = ( "$(inherited)", - "$(SRCROOT)/../native_rust_library/target/aarch64-apple-ios/release", + "$(SRCROOT)/../native_rust_library/target/aarch64-apple-ios/debug", ); "LIBRARY_SEARCH_PATHS[sdk=iphonesimulator*]" = ( "$(inherited)", - "$(SRCROOT)/../native_rust_library/target/x86_64-apple-ios/release", + "$(SRCROOT)/../native_rust_library/target/x86_64-apple-ios/debug", ); OTHER_CPLUSPLUSFLAGS = ( "-DFOLLY_MOBILE=1", diff --git a/scripts/build-rust-native-library.sh b/scripts/build-rust-native-library.sh --- a/scripts/build-rust-native-library.sh +++ b/scripts/build-rust-native-library.sh @@ -36,7 +36,12 @@ # Set C++ standard and build cxx bridge export CXXFLAGS="-std=c++14" # Use the determined TARGET for the build -env PATH="${build_path}" cargo build --release --target="$TARGET" +# Check if the build configuration is Release +if [[ "$CONFIGURATION" == "Release" ]]; then + env PATH="${build_path}" cargo build --release --target="$TARGET" +else + env PATH="${build_path}" cargo build --target="$TARGET" +fi # Unset the flag specifying C++ standard unset CXXFLAGS # Copy the CXX files to the cargo project root to make them