-0.4 C
New York
Saturday, February 22, 2025

iOS SDK Integration: Challenge with JitsiMeet and Its Dependencies in Pods


I’m growing an SDK, and I created it as an XCFramework. Initially, I had each the SDK and DemoApp in the identical Workspace, and I may immediately see my adjustments within the DemoApp whereas engaged on the SDK with out constructing .xcframework of my SDK. This strategy was very environment friendly.

At present, I wanted so as to add an exterior framework to the SDK, specifically JitsiMeet. Because it requires being added by way of Pod, I ran the pod init command on the SDK and added the next strains to the Podfile, then ran pod set up:

# Uncomment the subsequent line to outline a world platform to your undertaking
# platform :ios, '9.0'

goal 'MySDK' do
  # Remark the subsequent line if you happen to do not need to use dynamic frameworks
  use_frameworks!

  # Pods for MySDK
pod 'JitsiMeetSDK', '10.1.2'

finish

After creating a brand new workspace for the SDK, I wasn’t positive methods to create one other workspace contained in the newly created one, so I added DemoApp to the brand new workspace of SDK.

The issue is as follows:
JitsiMeet provides sure dependencies robotically:

And these are dependencies of Jitsi Meet

s.dependency 'Giphy', '2.2.4'
s.dependency 'JitsiWebRTC', '~> 124.0'

These dependencies are seen within the pods, however when I attempt to run DemoApp, I get the next error:

dyld[34627]: Library not loaded: @rpath/GiphyUISDK.framework/GiphyUISDK
  Referenced from: 
....
'/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Sources/RuntimeRoot/System/Library/Frameworks/GiphyUISDK.framework/GiphyUISDK' (no such file)

I’m able to construct the SDK utilizing cmd + B, however when I attempt to run the app with cmd + R, it fails.
I see two potential points, and I’m uncertain what the precise trigger is:

  1. JitsiMeet and its dependencies might not have been put in accurately.
  2. My DemoApp won’t have the ability to accurately present the pods within the Workspace.

How can I repair this difficulty? Any assist or strategies can be significantly appreciated.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles