ld: warning: building for iOS Simulator, but linking in dylib built for iOS, 'WebRTC.framework'
ld: warning: Could not find or use auto-linked framework 'WebRTC'
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_RTCAudioSessionConfiguration", referenced from:
objc-class-ref in WebRTCClient.o
"_OBJC_CLASS_$_RTCEAGLVideoView", referenced from:
objc-class-ref in WebRTCClient.o
"_OBJC_CLASS_$_RTCAudioTrack", referenced from:
objc-class-ref in WebRTCClient.o
"_OBJC_CLASS_$_RTCMediaStream", referenced from:
objc-class-ref in WebRTCClient.o
"_OBJC_CLASS_$_RTCCameraVideoCapturer", referenced from:
objc-class-ref in WebRTCClient.o
"_kRTCMediaConstraintsOfferToReceiveAudio", referenced from:
closure #1 () -> [Swift.String : Swift.String] in HippoCallClient.WebRTCClient.(mediaConstrains in _5E9150C121774D3BA8E9EA0C41D6AAFA).getter : [Swift.String : Swift.String] in WebRTCClient.o
"_kRTCMediaConstraintsValueTrue", referenced from:
closure #1 () -> [Swift.String : Swift.String] in HippoCallClient.WebRTCClient.(mediaConstrains in _5E9150C121774D3BA8E9EA0C41D6AAFA).getter : [Swift.String : Swift.String] in WebRTCClient.o
"_kRTCMediaConstraintsOfferToReceiveVideo", referenced from:
closure #1 () -> [Swift.String : Swift.String] in HippoCallClient.WebRTCClient.(mediaConstrains in _5E9150C121774D3BA8E9EA0C41D6AAFA).getter : [Swift.String : Swift.String] in WebRTCClient.o
"_RTCSetMinDebugLogLevel", referenced from:
function signature specialization <Arg[0] = Owned To Guaranteed, Arg[1] = Owned To Guaranteed> of generic specialization <HippoCallClient.CallClient> of function signature specialization <Arg[0] = Existential To Protocol Constrained Generic> of HippoCallClient.WebRTCClient.init(delegate: HippoCallClient.WebRTCClientDelegate, credentials: HippoCallClient.CallClientCredential, isVoiceOnlyCall: Swift.Bool) -> HippoCallClient.WebRTCClient in CallClient.o
"_OBJC_CLASS_$_RTCSessionDescription", referenced from:
objc-class-ref in RTCSessionDescription+JSON.o
"_OBJC_CLASS_$_RTCIceCandidate", referenced from:
objc-class-ref in RTCIceCandidate+JSON.o
"_OBJC_CLASS_$_RTCIceServer", referenced from:
objc-class-ref in CallClient.o
objc-class-ref in WebRTCClient.o
"_OBJC_CLASS_$_RTCConfiguration", referenced from:
objc-class-ref in CallClient.o
"_OBJC_CLASS_$_RTCMediaConstraints", referenced from:
objc-class-ref in CallClient.o
objc-class-ref in WebRTCClient.o
"_OBJC_CLASS_$_RTCVideoTrack", referenced from:
objc-class-ref in WebRTCClient.o
"_OBJC_CLASS_$_RTCPeerConnectionFactory", referenced from:
objc-class-ref in CallClient.o
"_OBJC_CLASS_$_RTCDispatcher", referenced from:
objc-class-ref in CallClient.o
objc-class-ref in WebRTCClient.o
"_OBJC_CLASS_$_RTCAudioSession", referenced from:
objc-class-ref in CallClient.o
objc-class-ref in WebRTCClient.o
"_OBJC_CLASS_$_RTCMTLVideoView", referenced from:
objc-class-ref in WebRTCClient.o
"_OBJC_CLASS_$_RTCDefaultVideoDecoderFactory", referenced from:
objc-class-ref in CallClient.o
"_OBJC_CLASS_$_RTCDefaultVideoEncoderFactory", referenced from:
objc-class-ref in CallClient.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
CompileSwift normal x86_64
CompileSwift normal arm64
Ld /Users/Golden/Library/Developer/Xcode/DerivedData/App-eisplzxmgxcjfubwfkltfptuyeof/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/HippoCallClient.build/Objects-normal/arm64/Binary/HippoCallClient normal arm64.
I tried everything I found on stack overflow. But its been 2 months, I am unable to fix this. WebRTC is already compiled for arm64, x86_64 architectures.
But I am repeatedly getting this: The spec did not pass validation, due to 1 error.
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/a5819cf9-3761-4e1f-bf1c-6feb0f58e366n%40googlegroups.com.
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_RTCAudioSession", referenced from:
I am seeing this error for all the WebRTC classes I am using, not just for RTCAudioSession. Anyone has any idea what can be wrong? I tried multiple GN config but no luck. Here is my latest config;