#include? "Pods/Target Support Files/Pods-Chanora/Pods-Chanora.release.xcconfig" #include "Generated.xcconfig" // Force the linker to retain Swift @_cdecl symbols that the chanora_bridge // Rust framework resolves at runtime via dlsym(RTLD_DEFAULT). Without these // flags, Xcode Archive's -dead_strip removes them because no Swift caller // exists, and CoreML VAD silently falls back to WebRTC on TestFlight/App Store. OTHER_LDFLAGS = $(inherited) -Xlinker -exported_symbol -Xlinker _chanora_silero_vad_create -Xlinker -exported_symbol -Xlinker _chanora_silero_vad_destroy -Xlinker -exported_symbol -Xlinker _chanora_silero_vad_reset -Xlinker -exported_symbol -Xlinker _chanora_silero_vad_process -Xlinker -exported_symbol -Xlinker _chanora_silero_vad_last_error -Xlinker -exported_symbol -Xlinker _chanora_silero_vad_free_string // `STRIP_STYLE = all` (Xcode default for archive installs) runs `strip` without // `-x`, which removes even the global @_cdecl symbols the linker exported above // via -exported_symbol. `non-global` runs `strip -x`, preserving globals so the // Rust framework's dlsym(RTLD_DEFAULT) can find them. 264-byte cost in the app. STRIP_STYLE = non-global