Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

file was built for unsupported file format #38

Open
ltAldoRaine opened this issue Sep 4, 2019 · 15 comments
Open

file was built for unsupported file format #38

ltAldoRaine opened this issue Sep 4, 2019 · 15 comments

Comments

@ltAldoRaine
Copy link

ltAldoRaine commented Sep 4, 2019

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
Copy link

Try to delete the cocoa pods cache on your system:

rm -rf ${HOME}/Library/Caches/CocoaPods
rm -rf 'pwd'/Pods/
pod update

@ltAldoRaine
Copy link
Author

still same

@vikingosegundo
Copy link

Also try to delete DerivedData

@ltAldoRaine
Copy link
Author

not working ..

@mstudzitsky
Copy link

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
Copy link

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
Copy link

I have the same issue as well

@ChrisKontosEU
Copy link

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

@raygun101
Copy link

raygun101 commented Apr 8, 2020

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
Copy link

m4r00p commented Apr 16, 2020

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

@ChauVV
Copy link

ChauVV commented Oct 29, 2021

Same issue, any update?

@utnhim
Copy link

utnhim commented Mar 30, 2022

I have same issue, can i help me?

@HarelCrowded
Copy link

same issue

1 similar comment
@HaydarTaha
Copy link

same issue

@ngducn
Copy link

ngducn commented Aug 23, 2023

same issue
pls help

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests