3

我从( Liblinphone iOS 版本 2.4.0)的git和 SDK下载了 linphone-iphone 项目。比将liblinphone-sdk文件夹复制到项目文件夹(linphone-iphone-master)。

我正在尝试运行Linphone (iphone),但出现此错误。我应该怎么办?

/Users/cansahinbakir/Downloads/linphone-iphone-master/Classes/LinphoneCoreSettingsStore.m:533:51:函数“linphone_proxy_config_find_auth_info”的隐式声明在 C99 中无效

构建设置 -> 搜索路径

搜索路径

来自 xcode 的错误

截图 1

错误日志

CompileC /Users/cansahinbakir/Library/Developer/Xcode/DerivedData/linphone-dqzmasmedjxmwsauolyepbakaskm/Build/Intermediates/linphone.build/Debug-iphonesimulator/linphone.build/Objects-normal/x86_64/LinphoneCoreSettingsStore.o Classes/LinphoneCoreSettingsStore.m normal x86_64目标-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/cansahinbakir/Downloads/linphone-iphone-master export LANG=en_US.US-ASCII export PATH="/Applications/Xcode.app/Contents/ Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/ sbin”/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault。xctoolchain/usr/bin/clang -x Objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -gmodules - Wno-trigraphs -fpascal-strings -O0 -fno-common -Werror -Werror-implicit-function-declaration -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-重复使用弱 -Wduplicate-method-match -Wno-missing-braces -W括号 -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value - Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to- 32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector-Wno-deprecated-implementations -DDEBUG -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=6.0 -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/cansahinbakir/Library/Developer/Xcode/DerivedData /linphone-dqzmasmedjxmwsauolyepbakaskm/Build/Intermediates/linphone.build/Debug-iphonesimulator/linphone.build/linphone-generated-files.hmap -I/Users/cansahinbakir/Library/Developer/Xcode/DerivedData/linphone-dqzmasmedjxmwsauolyepbakaskm/Build/Intermediates /linphone.build/Debug-iphonesimulator/linphone.build/linphone-own-target-headers。hmap -I/Users/cansahinbakir/Library/Developer/Xcode/DerivedData/linphone-dqzmasmedjxmwsauolyepbakaskm/Build/Intermediates/linphone.build/Debug-iphonesimulator/linphone.build/linphone-all-target-headers.hmap -iquote /Users/ cansahinbakir/库/开发人员/Xcode/DerivedData/linphone-dqzmasmedjxmwsauolyepbakaskm/Build/Intermediates/linphone.build/Debug-iphonesimulator/linphone.build/linphone-project-headers。hmap -I/Users/cansahinbakir/Library/Developer/Xcode/DerivedData/linphone-dqzmasmedjxmwsauolyepbakaskm/Build/Products/Debug-iphonesimulator/include -I/Users/cansahinbakir/Downloads/linphone-iphone-master/liblinphone-sdk/apple- darwin/include -I/Users/cansahinbakir/Downloads/linphone-iphone-master/Classes/Utils/NinePatch -I/Users/cansahinbakir/Downloads/linphone-iphone-master/Classes/Utils/XMLRPC -I/Users/cansahinbakir/ Library/Developer/Xcode/DerivedData/linphone-dqzmasmedjxmwsauolyepbakaskm/Build/Intermediates/linphone.build/Debug-iphonesimulator/linphone.build/DerivedSources/x86_64 -I/Users/cansahinbakir/Library/Developer/Xcode/DerivedData/linphone-dqzmasmedjxmwsauolyepbakaskm/构建/中间体/linphone.build/Debug-iphonesimulator/linphone。build/DerivedSources -Werror=objc-method-access -Werror=incomplete-implementation -DLINPHONE_CAPABILITY_INAPP_PURCHASE=0 -F/Users/cansahinbakir/Library/Developer/Xcode/DerivedData/linphone-dqzmasmedjxmwsauolyepbakaskm/Build/Products/Debug-iphonesimulator -DORTP_LOG_DOMAIN= \"ios\" -include /Users/cansahinbakir/Library/Developer/Xcode/DerivedData/linphone-dqzmasmedjxmwsauolyepbakaskm/Build/Intermediates/PrecompiledHeaders/linphone_Prefix-ahtsqvxgrzqakggrtidvlsmngdln/linphone_Prefix.pch -MMD -MT 依赖项-MF /Users/cansahinbakir/Library /Developer/Xcode/DerivedData/linphone-dqzmasmedjxmwsauolyepbakaskm/Build/Intermediates/linphone.build/Debug-iphonesimulator/linphone.build/Objects-normal/x86_64/LinphoneCoreSettingsStore。d --serialize-diagnostics /Users/cansahinbakir/Library/Developer/Xcode/DerivedData/linphone-dqzmasmedjxmwsauolyepbakaskm/Build/Intermediates/linphone.build/Debug-iphonesimulator/linphone.build/Objects-normal/x86_64/LinphoneCoreSettingsStore.dia -c /Users/cansahinbakir/Downloads/linphone-iphone-master/Classes/LinphoneCoreSettingsStore.m -o /Users/cansahinbakir/Library/Developer/Xcode/DerivedData/linphone-dqzmasmedjxmwsauolyepbakaskm/Build/Intermediates/linphone.build/Debug-iphonesimulator/linphone .build/Objects-normal/x86_64/LinphoneCoreSettingsStore.om -o /Users/cansahinbakir/Library/Developer/Xcode/DerivedData/linphone-dqzmasmedjxmwsauolyepbakaskm/Build/Intermediates/linphone.build/Debug-iphonesimulator/linphone.build/Objects-normal/x86_64/LinphoneCoreSettingsStore.om -o /Users/cansahinbakir/Library/Developer/Xcode/DerivedData/linphone-dqzmasmedjxmwsauolyepbakaskm/Build/Intermediates/linphone.build/Debug-iphonesimulator/linphone.build/Objects-normal/x86_64/LinphoneCoreSettingsStore.o

/Users/cansahinbakir/Downloads/linphone-iphone-master/Classes/LinphoneCoreSettingsStore.m:533:51:错误:函数'linphone_proxy_config_find_auth_info'的隐式声明在C99中无效[-Werror,-Wimplicit-function-declaration] LinphoneAuthInfo *proxyAi = (LinphoneAuthInfo *)linphone_proxy_config_find_auth_info(proxyCfg); ^ /Users/cansahinbakir/Downloads/linphone-iphone-master/Classes/LinphoneCoreSettingsStore.m:533:51:注意:您的意思是“linphone_proxy_config_get_error_info”吗?在 /Users/cansahinbakir/Downloads/linphone-iphone-master/Classes/LinphoneCoreSettingsStore.m:1 包含的文件中: 在 /Users/cansahinbakir/Downloads/linphone-iphone-master/linphone_Prefix.pch:10 包含的文件中:^ /Users/cansahinbakir/Downloads/linphone-iphone-master/Classes/LinphoneCoreSettingsStore.m:533:31:错误:从较小的整数类型“int”转换为“LinphoneAuthInfo *”(又名“struct _LinphoneAuthInfo *”)[-Werror ,-Wint-to-pointer-cast] LinphoneAuthInfo *proxyAi = (LinphoneAuthInfo *)linphone_proxy_config_find_auth_info(proxyCfg); ^ /Users/cansahinbakir/Downloads/linphone-iphone-master/Classes/LinphoneCoreSettingsStore.m:839:26:错误:不兼容的整数到指针转换初始化'const LinphoneAuthInfo *'(又名'const struct _LinphoneAuthInfo *'),表达式为输入'int' [-Werror, -Wint-conversion] const LinphoneAuthInfo *ai = linphone_proxy_config_find_auth_info(config); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 产生3个错误。

XCode 版本 7.2.1 (7C1002)

注意:我是 Xcode 和 IOS 的新手。

感谢帮助。

4

0 回答 0