react-native-webrtc / react-native-webrtc/react-native-callkeep

Undefined symbol: _AVAudioSession when trying to build

Open
#513 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.1k
Forks
511
Avg merge
9h 12m
Merged PRs (30d)
2

Description

Bug report

  • I've checked the example to reproduce the issue.

  • Reproduced on:

  • Android

  • iOS

Description

When trying to build for iOS with Xcode 13.2.1 it fails with unless we manually add AVFAudio.framework

Undefined symbol: _AVAudioSessionInterruptionTypeKey
Undefined symbol: _AVAudioSessionInterruptionOptionKey
Undefined symbol: _AVAudioSessionInterruptionNotification
Undefined symbol: _AVAudioSessionCategoryPlayAndRecord
Undefined symbol: _AVAudioSessionModeVoiceChat
Undefined symbol: OBJC_CLASS$_AVAudioSession

Steps to Reproduce

Build in XCode 13.2.1

Versions

- Callkeep: 4.3.1
- React Native: 0.66.3
- iOS: 13.6
- Phone model: iPhone 6s

Logs

Undefined symbols for architecture arm64:
"_AVAudioSessionInterruptionNotification", referenced from:
-[RNCallKeep provider:didActivateAudioSession:] in RNCallKeep.o
"_AVAudioSessionPortBuiltInSpeaker", referenced from:
+[RNCallKeep formatAudioInputs:] in RNCallKeep.o
+[RNCallKeep getAudioInputType:] in RNCallKeep.o
"_AVAudioSessionCategoryPlayAndRecord", referenced from:
+[RNCallKeep getAudioInputs] in RNCallKeep.o
-[RNCallKeep configureAudioSession] in RNCallKeep.o
"_AVAudioSessionModeDefault", referenced from:
-[RNCallKeep configureAudioSession] in RNCallKeep.o
"_AVAudioSessionInterruptionOptionKey", referenced from:
-[RNCallKeep provider:didActivateAudioSession:] in RNCallKeep.o
"_AVAudioSessionPortBuiltInMic", referenced from:
+[RNCallKeep getAudioInputType:] in RNCallKeep.o
"_AVAudioSessionPortHeadsetMic", referenced from:
+[RNCallKeep getAudioInputType:] in RNCallKeep.o
"_AVAudioSessionPortBluetoothHFP", referenced from:
+[RNCallKeep getAudioInputType:] in RNCallKeep.o
"_AVAudioSessionPortBluetoothA2DP", referenced from:
+[RNCallKeep getAudioInputType:] in RNCallKeep.o
"OBJC_CLASS$_AVAudioSession", referenced from:
objc-class-ref in RNCallKeep.o
"_AVAudioSessionPortHeadphones", referenced from:
+[RNCallKeep getAudioInputType:] in RNCallKeep.o
"_AVAudioSessionInterruptionTypeKey", referenced from:
-[RNCallKeep provider:didActivateAudioSession:] in RNCallKeep.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the example build in Xcode 13.2.1 and inspect the iOS dependency and linking configuration for the AVFAudio.framework symbols referenced by RNCallKeep.o. Done means the example builds successfully for iOS without manually adding AVFAudio.framework.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, react-native
Domain
audio-video-rtc, mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.