Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When the Livekit SDK is included as a dependency in another framework, the framework fails to build. #337

Open
indaos opened this issue Feb 8, 2024 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@indaos
Copy link

indaos commented Feb 8, 2024

Describe the bug
While attempting to build an XCframework with LiveKit SDK as a dependency, I encountered the following errors.

/Users/daos/Library/Developer/Xcode/DerivedData/UnbluMobileSDK-bhhgojhqukhuwwegpvpuskbnsguw/Build/Intermediates.noindex/LiveKit.build/Release-iphoneos/LiveKit.build/Objects-normal/arm64/LiveKit.swiftinterface:5:8: error: no such module 'CHeaders'
import CHeaders
       ^
/Users/daos/Library/Developer/Xcode/DerivedData/UnbluMobileSDK-bhhgojhqukhuwwegpvpuskbnsguw/Build/Intermediates.noindex/LiveKit.build/Release-iphoneos/LiveKit.build/Objects-normal/arm64/LiveKit.swiftinterface:1:1: error: failed to verify module interface of 'LiveKit' due to the errors above; the textual interface may be broken by project issues or a compiler bug

SDK Version
2.0.1

iOS/macOS Version
XCode 15.1

@indaos indaos added the bug Something isn't working label Feb 8, 2024
@hiroshihorie
Copy link
Member

I can't reproduce this using Xcode 15.2. Did it work for you with v1 ?
I checked the diff but there was no changes for CHeaders from v1 -> v2.

@indaos
Copy link
Author

indaos commented Feb 9, 2024

I built my own XCFramework (not an app), which has a dependency on Livekit via SPM. Did you do the same? Because such errors are quite common in this specific case.

@indaos
Copy link
Author

indaos commented Feb 9, 2024

I just tried version 2.0.2 with 15.2, and the error still exists. Usually, it has nothing to do with "CHeaders" (or similar) itself but rather with the presence of "import CHeaders" in the "swiftinterface" file.

@hiroshihorie
Copy link
Member

I'll retry this, thanks for the report.

@indaos
Copy link
Author

indaos commented Feb 20, 2024

There are no problems with Xcode 14.2 and version 2, but with version 15, issues arise, not just with CHeaders. When I added @_implementationOnly to import CHeaders just for checking purposes, other errors related to different issues appeared.

@hiroshihorie
Copy link
Member

Can you create a minimal reproducible project and attach it here ?

@indaos
Copy link
Author

indaos commented Feb 21, 2024

LiveKitTest.zip
Hi! use local_build.sh in the project directory

@hiroshihorie
Copy link
Member

@indaos Can you try building using this branch ? #356

@indaos
Copy link
Author

indaos commented Mar 11, 2024

things have changed, but I got the following errors:
image

@hiroshihorie
Copy link
Member

I can build frameworks depending on LiveKit, can you try again with v2.0.6 ?

@indaos
Copy link
Author

indaos commented Apr 26, 2024

Have you seen the related issue I posted recently #364 (comment)
I still have the same thing. please explain in more detail how you did this, maybe I missed something...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants