最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

iOS SDK Integration: Issue with JitsiMeet and Its Dependencies in Pods - Stack Overflow

programmeradmin1浏览0评论

I’m developing an SDK, and I created it as an XCFramework. Initially, I had both the SDK and DemoApp in the same Workspace, and I could instantly see my changes in the DemoApp while working on the SDK without building .xcframework of my SDK. This approach was very efficient.

Today, I needed to add an external framework to the SDK, namely JitsiMeet. Since it requires being added via Pod, I ran the pod init command on the SDK and added the following lines to the Podfile, then ran pod install:

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'MySDK' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

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

end

After creating a new workspace for the SDK, I wasn’t sure how to create another workspace inside the newly created one, so I added DemoApp to the new workspace of SDK.

The problem is as follows: JitsiMeet adds certain dependencies automatically:

And these are dependencies of Jitsi Meet

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

These dependencies are visible in the pods, but when I try to run DemoApp, I get the following error:

dyld[34627]: Library not loaded: @rpath/GiphyUISDK.framework/GiphyUISDK
  Referenced from: <EF76E202-DE0D-3F40-ABB3-29F7780A9C63>
....
'/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/GiphyUISDK.framework/GiphyUISDK' (no such file)

I am able to build the SDK using cmd + B, but when I try to run the app with cmd + R, it fails. I see two potential issues, and I’m unsure what the exact cause is:

  1. JitsiMeet and its dependencies may not have been installed correctly.
  2. My DemoApp might not be able to correctly show the pods in the Workspace.

How can I fix this issue? Any help or suggestions would be greatly appreciated.

发布评论

评论列表(0)

  1. 暂无评论