VoIPGRID / VialerSIPLib

An Objective-c wrapper for PJSIP
GNU General Public License v3.0
133 stars 69 forks source link

Undefined Symbols during building project #238

Open ashwani280496 opened 3 years ago

ashwani280496 commented 3 years ago

Showing Recent Messages Undefined symbol: _pjsua_acc_get_config

Undefined symbol: _pjsua_acc_del

Undefined symbol: _pjsua_acc_config_default

Undefined symbol: _pjsua_acc_get_info

Undefined symbol: _pjsua_conf_remove_port

Undefined symbol: _pjmedia_tonegen_create2

Undefined symbol: _pjmedia_tonegen_play

Undefined symbol: _pjsua_ip_change_param_default

Undefined symbol: _pjsua_handle_ip_change

Undefined symbol: _pjsua_enum_transports

Undefined symbol: _pjsua_vid_enum_codecs

Undefined symbol: _pjsua_vid_codec_set_priority

Undefined symbol: _pjsua_vid_codec_set_param

Undefined symbol: _pjmedia_endpt_get_codec_mgr

Undefined symbol: _pjsua_acc_is_valid

Undefined symbol: _pjmedia_codec_opus_get_config

Undefined symbol: _pjmedia_codec_mgr_find_codecs_by_id

Undefined symbol: _pjsua_enum_codecs

Undefined symbol: _pjsua_codec_set_priority

Undefined symbol: _pjsua_acc_add

Undefined symbol: _pjsua_destroy

Undefined symbol: _pjsua_call_get_info

Undefined symbol: _pjsua_create

Undefined symbol: _pjsua_transport_get_info

Undefined symbol: _pjsua_logging_config_default

Undefined symbol: _pjsua_config_default

Undefined symbol: _pjsua_vid_codec_get_param

Undefined symbol: _pjsua_transport_create

Undefined symbol: _pjmedia_port_destroy

Undefined symbol: _pjsua_set_no_snd_dev

Undefined symbol: _pjsua_media_config_default

Undefined symbol: _pjsua_start

Undefined symbol: _pjsua_call_get_stream_info

Undefined symbol: _pjsua_acc_set_registration

Undefined symbol: _pjmedia_codec_opus_set_default_param

Undefined symbol: _pjsua_call_send_request

Undefined symbol: _pjsua_init

Undefined symbol: _pjsua_call_answer

Undefined symbol: _pjsua_conf_disconnect

Undefined symbol: _pjsua_call_reinvite2

Undefined symbol: _pjsua_call_dial_dtmf

Undefined symbol: _pj_str

Undefined symbol: _pjsua_call_hangup

Undefined symbol: _pjmedia_codec_mgr_get_default_param

Undefined symbol: _pjsua_call_get_stream_stat

Undefined symbol: _pjsua_transport_config_default

Undefined symbol: _pjsua_conf_connect

Undefined symbol: _pj_pool_release

Undefined symbol: _pjsua_pool_create

Undefined symbol: _pj_strerror

Undefined symbol: _pjsua_call_answer2

Undefined symbol: _pjsua_call_update2

Undefined symbol: _pjsua_conf_add_port

Undefined symbol: _pj_thread_register

Undefined symbol: _pjsua_call_xfer_replaces

Undefined symbol: _pj_thread_is_registered

Undefined symbol: _pjsua_call_set_hold

Undefined symbol: _pjsua_get_pjmedia_endpt

Undefined symbol: _pjsua_call_xfer

Undefined symbol: _pjsua_call_make_call

Undefined symbol: _pjsua_set_snd_dev

Undefined symbol: _pjsua_msg_data_init

Undefined symbol: _pjsua_call_setting_default

What I have done- reinstalled pods clean pod cache have git lfs installed

issue is occurring in both simulators and real devices(6s).

what should more I supposed to do to make it build. HELP

mudassirzulfiqar commented 3 years ago

In my case, it was git lfs which I missed this , in your case I think you need to delete the cache of your pods and re do this whole process.

ashwani280496 commented 3 years ago

@mudassirzulfiqar didn't work ...could you plz help me out to make it build . mail - ashwani.cse4@gmail.com

Thanks

mudassirzulfiqar commented 3 years ago

@ashwani280496 I have sent you the build Im using.

ashwani280496 commented 3 years ago

Thanks @mudassirzulfiqar it worked. but

VialerSIPLib.sharedInstance().setIncomingCall{ [weak self] (call) in
            DispatchQueue.main.async {
                self?.displayIncomingCall(call: call)
            }
        }

this is never called

vinhnx commented 3 years ago

if you still having build linker errors, try these steps:

  1. install git-lfs: brew install git-lfs
  2. install git lfs on global git: git lfs install
  3. remove /Users/$USER/Library/Caches/CocoaPods manually.
  4. remove Pods folder and Podfile.lock from your repo to clear Pods cache.
  5. run pod install again
  6. xed . to open workspace
  7. command+B to build again

good luck!