Skip to content

Cannot find livekit issue #17

Description

@AlasalvarOzcan

AgentforceSDK fails at runtime because LiveKit.framework is missing from embedded frameworks

Description

When integrating AgentforceSDK via CocoaPods, the application builds successfully, but crashes at runtime with a dyld error:

dyld: Library not loaded: @rpath/LiveKit.framework/LiveKit

Referenced from:
.../NetworkProd.app/Frameworks/AgentforceSDK.framework/AgentforceSDK

Reason:
tried:
.../NetworkProd.app/Frameworks/LiveKit.framework/LiveKit
(no such file)

Environment

  • Xcode: [version]
  • iOS Deployment Target: [version]
  • CocoaPods: [version]
  • AgentforceSDK: 15.33.5
  • AgentforceService: 6.1.3
  • AgentforceVoice: 2.1.7
  • LiveKitClient: 2.15.1
  • LiveKitUniFFI: 0.0.6
  • LiveKitWebRTC: 144.7559.10

Steps to reproduce

  1. Add AgentforceSDK using CocoaPods:
pod 'AgentforceSDK', '15.33.5'
  1. Run:
pod install
  1. Build and run the application on iOS Simulator.

Expected behavior

LiveKit.framework should be included in the generated app bundle:

NetworkProd.app/
 └── Frameworks/
     ├── AgentforceSDK.framework
     ├── LiveKit.framework
     ├── LiveKitUniFFI.framework
     └── LiveKitWebRTC.framework

The app should launch successfully.

Actual behavior

AgentforceSDK.framework contains a runtime dependency:

@rpath/LiveKit.framework/LiveKit

confirmed with:

otool -L Pods/AgentforceSDK/AgentforceSDK.xcframework/ios-arm64_x86_64-simulator/AgentforceSDK.framework/AgentforceSDK

Output:

@rpath/LiveKit.framework/LiveKit
@rpath/LiveKitUniFFI.framework/LiveKitUniFFI
@rpath/LiveKitWebRTC.framework/LiveKitWebRTC

However, after CocoaPods installation:

find Pods -name "LiveKit.framework"

returns no result.

The Pods directory only contains:

Pods/LiveKitWebRTC/LiveKitWebRTC.xcframework
Pods/LiveKitUniFFI/RustLiveKitUniFFI.xcframework

but no:

Pods/LiveKitClient/LiveKit.framework

Investigation

Podfile.lock correctly resolves:

LiveKitClient (2.15.1)
  - LiveKitUniFFI (= 0.0.6)
  - LiveKitWebRTC (= 144.7559.10)

However, the LiveKit.framework binary required by AgentforceSDK is not delivered or embedded into the final application.

This suggests one of the following:

  1. The AgentforceSDK podspec declares a dependency on LiveKitClient, but the required LiveKit.framework is not exposed through the podspec.
  2. The LiveKitClient podspec/package does not correctly declare its vendored framework.
  3. CocoaPods integration is missing an embed phase entry for LiveKit.framework.

Additional information

AgentforceSDK.framework binary architectures:

arm64
x86_64

Both architectures contain the same dependency:

@rpath/LiveKit.framework/LiveKit

Request

Could you please verify the AgentforceSDK CocoaPods specification and dependency packaging?

Specifically:

  • Is LiveKit.framework expected to be provided by LiveKitClient?
  • Should AgentforceSDK's podspec explicitly include LiveKit.framework as a vendored framework dependency?
  • Is there a recommended CocoaPods configuration to ensure LiveKit.framework is copied into the application bundle?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions