このリンクの手順に従いました: How To Build and Compile PJSIP for Xcode, Using sample code IPJSUA to test?
よくわからない手順がいくつかありましたが、それが非常に多くのエラーが発生している理由であると確信しています
次の行を configure_site.h ファイルのどこに入力すればよいかわかりませんでした。
#define PJ_CONFIG_IPHONE 1
#include <pj/config_site_sample.h>
だから私はそれらをすべての上に置きました。
また、configure-iphone ファイルのどこに次の行を入力すればよいかもわかりませんでした。
DEVPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer
IPHONESDK=iPhoneSimulator6.1.sdk
だから私はそれらをif文の下と外側の一番上に置きました。
ipjsua xcode プロジェクトをビルドしようとすると、次のエラーが発生します。
Undefined symbols for architecture i386:
"_app_config", referenced from:
_keepAliveFunction in pjsua_app.o
_on_playfile_done in pjsua_app.o
_app_init in pjsua_app.o
_default_config in pjsua_app.o
_parse_args in pjsua_app.o
_on_call_state in pjsua_app.o
_on_incoming_call in pjsua_app.o
...
"_app_config_init_video", referenced from:
_app_init in pjsua_app.o
"_arrange_window", referenced from:
_on_call_video_state in pjsua_app.o
"_cli_console_app_main", referenced from:
_app_main in pjsua_app.o
"_console_app_main", referenced from:
_app_main in pjsua_app.o
"_current_call", referenced from:
_on_call_state in pjsua_app.o
_on_incoming_call in pjsua_app.o
"_destroy_cli", referenced from:
_app_destroy in pjsua_app.o
"_find_next_call", referenced from:
_on_call_state in pjsua_app.o
"_log_call_dump", referenced from:
_on_call_state in pjsua_app.o
"_my_atoi", referenced from:
_parse_args in pjsua_app.o
"_setup_cli", referenced from:
_app_init in pjsua_app.o
"_stdout_refresh", referenced from:
_parse_args in pjsua_app.o
_app_main in pjsua_app.o
_stdout_refresh_proc in pjsua_app.o
"_stdout_refresh_quit", referenced from:
_app_main in pjsua_app.o
_stdout_refresh_proc in pjsua_app.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
そして、自分のデバイスにビルドしようとすると、129 以上のエラーが発生します。
過去 3 日間、このライブラリのインストールに苦労しています。本当は自分の SIP スタックを構築したいのですが、それは非常に難しい作業だと聞きました。
この問題を修正する方法についての助けがあれば、私は永遠に感謝します!