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

Error on build. Undefined symbol: _AVAudioSession

Open
#426 5 comments 4 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

  • [ X ] I've checked the example to reproduce the issue.

  • Reproduced on:

  • Android

  • [ X ] iOS

Description

Error on Build:
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 12.5

Versions

- Callkeep: 4.0.1
- React Native: 0.61.2
- iOS: 12
- Android:
- Phone model: iPhone 6

Logs

Undefined symbols for architecture armv7:
"_AVAudioSessionInterruptionTypeKey", referenced from:
-[RNCallKeep provider:didActivateAudioSession:] in RNCallKeep.o
"_AVAudioSessionInterruptionOptionKey", referenced from:
-[RNCallKeep provider:didActivateAudioSession:] in RNCallKeep.o
"_AVAudioSessionInterruptionNotification", referenced from:
-[RNCallKeep provider:didActivateAudioSession:] in RNCallKeep.o
"_AVAudioSessionCategoryPlayAndRecord", referenced from:
-[RNCallKeep configureAudioSession] in RNCallKeep.o
"_AVAudioSessionModeVoiceChat", referenced from:
-[RNCallKeep configureAudioSession] in RNCallKeep.o
"OBJC_CLASS$_AVAudioSession", referenced from:
objc-class-ref in RNCallKeep.o
ld: symbol(s) not found for architecture armv7
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 iOS build in Xcode 12.5 and inspect the linker settings and framework dependencies for the RNCallKeep object referenced in the logs. The work is done when the armv7 build resolves all listed AVAudioSession symbols without linker errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.