在xcode 7.1中找不到xmpp'libxml / xmlversion.h'文件

时间:2015-12-07 06:24:53

标签: ios objective-c xcode7 xmmp

我在一个项目中使用xmmp库。当我在我的项目中添加库文件夹时,我在Google获得此错误xmpp 'libxml/xmlversion.h' file not found之后获得此解决方案Goto Projects - >构建设置并将“$SDKROOT/usr/include/libxml2”添加到标题搜索路径,它可以正常工作。但现在出现了新问题。附加了新的三个错误。列表如下:

ld: warning: directory not found for option '-L/Users/Mac-Devs/Documents/Ferrakkem/DivineIosDialer/../../g729'
Undefined symbols for architecture x86_64:
  "_dns_free_resource_record", referenced from:
      -[XMPPSRVResolver processRecord:length:] in XMPPSRVResolver.o
  "_dns_parse_resource_record", referenced from:
      -[XMPPSRVResolver processRecord:length:] in XMPPSRVResolver.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

2 个答案:

答案 0 :(得分:4)

我通过在" Link Binary with Libraries"中添加libresolv.tdd解决了我的问题。

答案 1 :(得分:0)

对于我的构建设置中的 XCode8 ,我将{ "name": "ionic-hello-world", "version": "0.0.0", "author": "Ionic Framework", "homepage": "http://ionicframework.com/", "private": true, "scripts": { "clean": "ionic-app-scripts clean", "build": "ionic-app-scripts build", "ionic:build": "ionic-app-scripts build", "ionic:serve": "ionic-app-scripts serve" }, "dependencies": { "@angular/common": "4.0.2", "@angular/compiler": "4.0.2", "@angular/compiler-cli": "4.0.2", "@angular/core": "4.0.2", "@angular/forms": "4.0.2", "@angular/http": "4.0.2", "@angular/platform-browser": "4.0.2", "@angular/platform-browser-dynamic": "4.0.2", "@ionic-native/camera": "^3.6.0", "@ionic-native/camera-preview": "^3.6.0", "@ionic-native/core": "^3.6.1", "@ionic-native/diagnostic": "^3.6.1", "@ionic-native/file": "^3.6.1", "@ionic-native/splash-screen": "3.4.2", "@ionic-native/status-bar": "3.4.2", "@ionic/storage": "2.0.1", "ionic-angular": "3.1.1", "ionicons": "3.0.0", "rxjs": "5.1.1", "sw-toolbox": "3.4.0", "zone.js": "^0.8.5" }, "devDependencies": { "@ionic/app-scripts": "1.3.6", "typescript": "~2.2.1" }, "cordovaPlugins": [ "cordova-plugin-whitelist", "cordova-plugin-statusbar", "cordova-plugin-console", "cordova-plugin-device", "cordova-plugin-splashscreen", "ionic-plugin-keyboard" ], "cordovaPlatforms": [ "ios", { "platform": "ios", "version": "", "locator": "ios" } ], "description": "camera-app: An Ionic project" } 添加到我的用户标题搜索路径中。

我在添加上述搜索路径时,从同一行的下拉列表中添加了{{1}}。