react-native-callkeep icon indicating copy to clipboard operation
react-native-callkeep copied to clipboard

Error on build. Undefined symbol: _AVAudioSession

Open ielonclesio opened this issue 4 years ago • 5 comments

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)

ielonclesio avatar May 24 '21 17:05 ielonclesio

any update here? my build failing with same error.

txtasad avatar Jun 22 '21 05:06 txtasad

May be related to this? https://stackoverflow.com/questions/54515175

1st answer: Make sure JavaScriptCore.framework is added to Link Binary With Libraries

Or just remove the arm build if you dont need to support arm: Select your project name in the project navigator Select your target that is having this issue Find "Valid Architectures" under "Build Setting" > "Architectures" Remove "arm64 & arm7" from "Valid Architectures" from the relevant scheme

namnm avatar Jun 24 '21 09:06 namnm

Hey, any update for this. Facing same issue while running on xCode 13. @ielonclesio

christopher-18 avatar Nov 25 '21 07:11 christopher-18

Hello, we are also experiencing this issue. Adding JavaScriptCore.framework to Link Binary With Libraries does not resolve it.

Xcode 13.1 on Apple Silicon M1

kekami avatar Dec 16 '21 09:12 kekami

Hello, we are also experiencing this issue. Adding JavaScriptCore.framework to Link Binary With Libraries does not resolve it.

Xcode 13.1 on Apple Silicon M1

I'M also facing this on Xcode 13.1 on Apple Silicon M1 , how you resolved that?

dhayaljaswantgit avatar Jan 05 '22 15:01 dhayaljaswantgit