matrix-org / matrix-org/matrix-ios-sdk
Doesn't build on macOS anymore
Nobody has claimed this yet.
- Dominant language
- Objective-C
- Stars
- 484
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
Trying to build Seaglass, it turns out that the SDK doesn't build anymore on macOS due to the usage of AVAudioSession:
```
:1:9: note: in file included from :1:
#import "Headers/SwiftMatrixSDK-umbrella.h"
^
/Users/helge/projects/seaglass/Pods/Target Support Files/SwiftMatrixSDK/SwiftMatrixSDK-umbrella.h:110:9: note: in file included from /Users/helge/projects/seaglass/Pods/Target Support Files/SwiftMatrixSDK/SwiftMatrixSDK-umbrella.h:110:
#import "MXCallAudioSessionConfigurator.h"
^
/Users/helge/projects/seaglass/Pods/SwiftMatrixSDK/MatrixSDK/VoIP/CallStack/MXCallAudioSessionConfigurator.h:39:34: error: 'AVAudioSession' is unavailable: not available on macOS
- (void)audioSessionDidActivate:(AVAudioSession *)audioSession;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AVFoundation.framework/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:390:12: note: 'AVAudioSession' has been explicitly marked unavailable here
@interface AVAudioSession : NSObject {
^
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported AVAudioSession error and trace the corresponding MXCallAudioSessionConfigurator.h include through SwiftMatrixSDK-umbrella.h. Reproduce the macOS build using the SDK configuration described in the issue, then verify that the SDK builds without the unavailable-symbol error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, objective-c
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100