jitsi-meet: Can't build JitsiMeet with XCode 12.0 beta 3
Description:
After installing XCode 12.0 (beta 3) and trying to compile a project that includes the cocoapod JitsiMeet SDK, I can not build.
Steps to reproduce:
- Install XCode 12.0 beta 3 from iTunes Developer Center.
- Open a project with a dependency of JitsiMeet SDK as a cocoapod and ‘import JitsiMeet’
- Build in iOS Simulator 14.0 & iOS Simulator 12.4
Expected behavior:
Build OK.
Actual behavior:
Following errors appear in XCode:
'PiPViewCoordinator' is not a member type of 'JitsiMeet'
'PiPViewCoordinatorDelegate' is not a member type of 'JitsiMeet'
'AnimationCompletion' is not a member type of 'JitsiMeet'
'JMCallKitListener' is not a member type of 'JitsiMeet'
In file: x86_64-apple-ios-simulator.swiftinterface
Client information:
- Jitsi Meet version: 2.9.3
- Operating System: macOS Catalina 10.15.5
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (5 by maintainers)
Hello @saghul hope you are fine. I also have same problem. I’m using Xcode 12.2 and JitsiSDK 2.10.2
But I faced same error.
This error is due to an Apple bug, you can find more information in this discussion on the Apple Developer Forum. Normally with Module Stability, currently used for the iOS Jitsi binary framework, we should be able to use a binary framework built with Xcode 11 and Swift 5.1 with Xcode 12 and Swift 5.3 without any issue, this is the goal of the feature.
Regarding the Apple issue the current solution (explained in the Apple forum) is to remove
JitsiMeetmodule prefix in all.swiftinterfacefiles located here.For example I’ve been able to build the JitsiMeetSDK 2.8.1 (built with Swift 5.2.2) with Xcode 12 (using Swift 5.3) by removing the module prefix
JitsiMeeteverywhere in the.swiftinterfacefiles.Below you can find a concrete example of the content of
x86_64-apple-ios-simulator.swiftinterfacefile of JitsiMeetSDK 2.8.1 I manually modified:A post process with a script after the framework generation can be a solution while waiting for Apple to fix the issue. I don’t know if there is another way to solve that. Otherwise I can open a dedicated issue for this annoying bug if you prefer.
Ok! Finally I have the project compiling and running fine!
I have also added ‘WebRTC.framework’ folder from the Jitsi Meet project to my project dir.