VoIPGRID / Vialer-pjsip-iOS

A Vialer specific PJSIP build distributed through cocoapods
GNU General Public License v3.0
72 stars 57 forks source link

file was built for unsupported file format #38

Open ltAldoRaine opened 5 years ago

ltAldoRaine commented 5 years ago

Version

{3.4.1}

Expected behaviour

{Build succeeded}

Actual behaviour

{Build failed}

Stacktrace / Error message

{ld: warning: ignoring file /Pods/Vialer-pjsip-iOS/VialerPJSIP.framework/VialerPJSIP, file was built for unsupported file format ( 0x76 0x65 0x72 0x73 0x69 0x6F 0x6E 0x20 0x68 0x74 0x74 0x70 0x73 0x3A 0x2F 0x2F ) which is not the architecture being linked (arm64): /Pods/Vialer-pjsip-iOS/VialerPJSIP.framework/VialerPJSIP}

Other info

{ Undefined symbol: _pjsua_init Undefined symbol: _pjsua_transport_config_default Undefined symbol: _pjsua_logging_config_default Undefined symbol: _pjsua_transport_create Undefined symbol: _pjsua_config_default Undefined symbol: _pjsua_start Undefined symbol: _pjsua_create Undefined symbol: _pjsua_acc_config_default Undefined symbol: _pj_str Undefined symbol: _pjsua_acc_add }

ChrisKontosEU commented 5 years ago

Try to delete the cocoa pods cache on your system:

rm -rf ${HOME}/Library/Caches/CocoaPods
rm -rf 'pwd'/Pods/
pod update
ltAldoRaine commented 5 years ago

still same

vikingosegundo commented 5 years ago

Also try to delete DerivedData

ltAldoRaine commented 5 years ago

not working ..

mstudzitsky commented 5 years ago

I have the same problem. I have already tried all the tips. Does not help. What am I doing wrong? Please help.

ignoring file /Users/michaelstudzitsky/Documents/Проекты/VialerSIPLib/Example/Pods/Vialer-pjsip-iOS/VialerPJSIP.framework/VialerPJSIP, file was built for unsupported file format ( 0x76 0x65 0x72 0x73 0x69 0x6F 0x6E 0x20 0x68 0x74 0x74 0x70 0x73 0x3A 0x2F 0x2F ) which is not the architecture being linked (arm64): /Users/michaelstudzitsky/Documents/Проекты/VialerSIPLib/Example/Pods/Vialer-pjsip-iOS/VialerPJSIP.framework/VialerPJSIP Undefined symbols for architecture arm64: "_pjsua_acc_get_config", referenced from: -[VSLAccount registerAccountWithCompletion:] in libVialerSIPLib.a(VSLAccount.o) "_pjsua_acc_del", referenced from: -[VSLAccount removeAccount] in libVialerSIPLib.a(VSLAccount.o) "_pjsua_acc_config_default", referenced from: -[VSLAccount configureWithAccountConfiguration:error:] in libVialerSIPLib.a(VSLAccount.o) ......

ChrisKontosEU commented 5 years ago

Check and try this:

  1. Click on your project in the upper left of the left pane.
  2. In the middle pane, click on the Build Phases tab.
  3. Under "Link Binary With Libraries", click on the plus button.
  4. Find the referenced framework from the list and hit Add.
florindumitru commented 4 years ago

I have the same issue as well

ChrisKontosEU commented 4 years ago

@florindumitru Have you tried all the above suggestions? What exactly is your error message?

raygun101 commented 4 years ago

I have the same issue trying to compile VialerSIPLib_Example This looks like it finds the lib, but it's not liking it.

I've cleaned and updated everything I can.

ld: warning: ignoring file /Users/user_name/Downloads/VialerSIPLib-develop/Example/Pods/Vialer-pjsip-iOS/VialerPJSIP.framework/VialerPJSIP, building for iOS-arm64 but attempting to link with file built for unknown-unsupported file format ( 0x76 0x65 0x72 0x73 0x69 0x6F 0x6E 0x20 0x68 0x74 0x74 0x70 0x73 0x3A 0x2F 0x2F ) Undefined symbols for architecture arm64: "_pjsua_acc_get_config", referenced from: -[VSLAccount registerAccountWithCompletion:] in libVialerSIPLib.a(VSLAccount.o) "_pjsua_acc_del", referenced from: -[VSLAccount removeAccount] in libVialerSIPLib.a(VSLAccount.o) ...

m4r00p commented 4 years ago

I have very same issue. Guys any update on this?

ChauVV commented 2 years ago

Same issue, any update?

utnhim commented 2 years ago

I have same issue, can i help me?

HarelCrowded commented 2 years ago

same issue

HaydarTaha commented 2 years ago

same issue

ngducn commented 1 year ago

same issue pls help