matrix-org / matrix-org/matrix-ios-sdk

Doesn't build on macOS anymore

Open
#841 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.