element-hq / element-hq/element-ios

Unable to build element-ios | Cannot find protocol declaration for 'OS_xpc_object'

Open
#7,815 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
1.8k
Forks
544
PR merge metrics
PR metrics pending

Description

I am unable to build element-ios project on Apple Silicon (M2) . I followed all READ-ME instructions but I am still getting these errors:

```
element-ios-develop/Pods/FLEX/Classes/GlobalStateExplorers/SystemLog/ActivityStreamAPI.h:31:1 Cannot find protocol declaration for 'OS_xpc_object'; did you mean 'OS_sec_object'?

element-ios-develop/Pods/FLEX/Classes/GlobalStateExplorers/SystemLog/ActivityStreamAPI.h:31:1 Reference to 'OS_xpc_object' is ambiguous

element-ios-develop/Pods/FLEX/Classes/GlobalStateExplorers/SystemLog/ActivityStreamAPI.h:31:1 Typedef redefinition with different types ('NSObject *' vs 'NSObject *')

```

I am running XCode 15.4 on Mac M2. My friend which has an Intel is able to build element-ios.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Apple Silicon build with Xcode 15.4 and inspect Pods/FLEX/Classes/GlobalStateExplorers/SystemLog/ActivityStreamAPI.h, where the reported errors occur. Compare the dependency or build behavior with the working Intel setup; done means element-ios builds successfully on an M2 without the OS_xpc_object errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
build-system, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.