iOS sdk build error

Hi. I’m getting the following errors when building the SDK. Any ideas how I could fix them?

** ARCHIVE FAILED **
The following build commands failed:
	CompileC /var/root/Library/Developer/Xcode/DerivedData/jitsi-meet-cueuszjjxyygokhbloqzxrjqyhhd/Build/Intermediates.noindex/ArchiveIntermediates/JitsiMeetSDK/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/React-Core.build/Objects-normal/arm64/RCTCxxBridge.o /Users/marek/Projects/jitsi3/node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
objc[5285]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x203dbd160) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x120a782b8). One of the two will be used. Which one is undefined.
objc[5285]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x203dbd1b0) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x120a78308). One of the two will be used. Which one is undefined.
error: the path does not point to a valid framework: /Users/marek/Projects/jitsi3/ios/sdk/out/ios-device.xcarchive/Products/Library/Frameworks/JitsiMeetSDK.framework
cp: cannot overwrite directory ios/sdk/out/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Resources with non-directory node_modules/react-native-webrtc/apple/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Resources
cp: cannot overwrite directory ios/sdk/out/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/Current with non-directory node_modules/react-native-webrtc/apple/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Versions/Current
cp: cannot overwrite directory ios/sdk/out/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Headers with non-directory node_modules/react-native-webrtc/apple/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Headers
cp: cannot overwrite directory ios/sdk/out/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Modules with non-directory node_modules/react-native-webrtc/apple/WebRTC.xcframework/macos-x86_64/WebRTC.framework/Modules

Build command used:

mkdir -p ios/sdk/out
xcodebuild clean
-workspace ios/jitsi-meet.xcworkspace
-scheme JitsiMeetSDK
xcodebuild archive
-workspace ios/jitsi-meet.xcworkspace
-scheme JitsiMeetSDK
-configuration Release
-sdk iphoneos
-destination=‘generic/platform=iOS’
-archivePath ios/sdk/out/ios-device
VALID_ARCHS=arm64
ENABLE_BITCODE=NO
SKIP_INSTALL=NO
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
xcodebuild -create-xcframework
-framework ios/sdk/out/ios-device.xcarchive/Products/Library/Frameworks/JitsiMeetSDK.framework
-framework ios/sdk/out/ios-simulator.xcarchive/Products/Library/Frameworks/JitsiMeetSDK.framework
-output ios/sdk/out/JitsiMeetSDK.xcframework
cp -a node_modules/react-native-webrtc/apple/WebRTC.xcframework ios/sdk/out

2 Likes