iOS 模拟器的 PJSIP 库编译错误

PJSIP library compile error for iOS Simulator

我正在尝试为 iOS 编译 pjsip 库,但出现错误,我正在执行以下步骤

第 1 步: 使用以下代码在项目文件夹 /pjlib/include/pj/ 中创建一个新文件 config_site.h:

#define PJ_CONFIG_IPHONE 1 
#include <pjconfig_site_sample.h>

第 2 步: 打开终端

$ cd /path/to/my/pjsip/dir

第 3 步:

export DEVPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer
ARCH="-arch x86_64" CFLAGS="-O2 -m64 -mios-simulator-version-min=5.0" LDFLAGS="-O2 -m64 -mios-simulator-version-min=5.0" ./configure-iphone

第 4 步:

make dep && make clean && make

执行此命令后,出现错误

for dir in pjlib/build pjlib-util/build pjnath/build third_party/build pjmedia/build pjsip/build pjsip-apps/build ; do \
    if /Library/Developer/CommandLineTools/usr/bin/make  -C $dir dep; then \
        true; \
    else \
        exit 1; \
    fi; \
done
/Library/Developer/CommandLineTools/usr/bin/make -f /Users/murtuza/Desktop/PJSip/iOS/pjproject-2.9/build/rules.mak APP=PJLIB app=pjlib depend
.pjlib-x86_64-apple-darwin_ios.depend:3: *** missing separator.  Stop.
make[1]: *** [depend] Error 2
make: *** [dep] Error 1

我是不是漏掉了什么。感谢帮助

参考https://trac.pjsip.org/repos/wiki/FAQ#missing-sep-err

This happens because of corrupt dependency file, probably because make dep stopped or was stopped abruptly previously. The solution is either to delete the offending file manually or to run make distclean to clean everything. Either case, you'd have to run make dep again to rebuild the dependency.

转到构建设置 -> 用户定义 -> [有效 ARCHS - arm64] -> 调试部分 -> 添加 x86_64