大家好!
所以......我刚刚使用cordova创建了一个应用程序来编译一个xcode项目。确定。
当facebookSDK.framework不在项目中时,该应用程序正常工作。页面不加载只是因为用户必须登录到Facebook。无论如何......但是当我插入facebookSDK.framework(从developers.facebook.com下载)时,我遇到了Build Fail并出现以下错误:
ld: 475 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried to compile via terminal using -verbose and I saw that some files were not found in the cordova path:
myproject/Classes/MainViewController.h:28:9: fatal error: 'Cordova/CDVViewController.h' file not found
myproject/Classes/AppDelegate.h:30:9: fatal error: 'Cordova/CDVViewController.h' file not found
myproject/Classes/MainViewController.h:28:9: fatal error: 'Cordova/CDVViewController.h' file not found
myproject/Classes/AppDelegate.h:30:9: fatal error: 'Cordova/CDVViewController.h' file not found
myproject/Plugins/com.phonegap.plugins.facebookconnect/FacebookConnectPlugin.h:12:9: fatal error: 'Cordova/CDV.h' file not found
我尝试了很多教程,我在stackoverflow和google中找到了但没什么。
我希望有人可以帮助我。
谢谢!