2014-04-12 1 views
0

: 64 비트 아키텍처에서 응용 프로그램을 실행할 때 아이폰하지 64로 작업 할 때 (I 가정 32 비트)Phonegap Facebook 플러그인이 64 비트 아키텍처에서 작동하지 않는 이유는 무엇입니까? 내가 폰갭에서 공식 FBConnect 플러그인을 다스 려하고

을 잘 작동 https://github.com/phonegap-build/FacebookConnect

모든 그러나,이 플러그인이 문제를 일으키는 것 같습니다. 여기에 내가 가진 무엇 :. 내가 엑스 코드를 업데이트했다 beofre

물론
ld: warning: directory not found for option '-L/Users/YohannM/Documents/phonegap-facebook-plugin-master/src/ios/frameworks' 
ld: warning: ignoring file /Users/YohannM/Library/Developer/Xcode/DerivedData/MeetMyFriends-bpzkrmogtgawjxbckzcgadbbsksi/Build/Products/Debug-iphonesimulator/libCordova.a, file was built for archive which is not the architecture being linked (x86_64): /Users/YohannM/Library/Developer/Xcode/DerivedData/MeetMyFriends-bpzkrmogtgawjxbckzcgadbbsksi/Build/Products/Debug-iphonesimulator/libCordova.a 
Undefined symbols for architecture x86_64: 
    "_CDVLocalNotification", referenced from: 
     -[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o 
    "_CDVPluginHandleOpenURLNotification", referenced from: 
     -[AppDelegate application:handleOpenURL:] in AppDelegate.o 
    "_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from: 
     _OBJC_CLASS_$_MainCommandDelegate in MainViewController.o 
    "_OBJC_CLASS_$_CDVCommandQueue", referenced from: 
     _OBJC_CLASS_$_MainCommandQueue in MainViewController.o 
    "_OBJC_CLASS_$_CDVPlugin", referenced from: 
     _OBJC_CLASS_$_FacebookConnectPlugin in FacebookConnectPlugin.o 
     _OBJC_CLASS_$_CDVDevice in CDVDevice.o 
     _OBJC_CLASS_$_CDVLocation in CDVLocation.o 
    "_OBJC_CLASS_$_CDVPluginResult", referenced from: 
     objc-class-ref in FacebookConnectPlugin.o 
     objc-class-ref in CDVDevice.o 
     objc-class-ref in CDVLocation.o 
    "_OBJC_CLASS_$_CDVViewController", referenced from: 
     _OBJC_CLASS_$_MainViewController in MainViewController.o 
     objc-class-ref in CDVDevice.o 
    "_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from: 
     _OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o 
    "_OBJC_METACLASS_$_CDVCommandQueue", referenced from: 
     _OBJC_METACLASS_$_MainCommandQueue in MainViewController.o 
    "_OBJC_METACLASS_$_CDVPlugin", referenced from: 
     _OBJC_METACLASS_$_FacebookConnectPlugin in FacebookConnectPlugin.o 
     _OBJC_METACLASS_$_CDVDevice in CDVDevice.o 
     _OBJC_METACLASS_$_CDVLocation in CDVLocation.o 
    "_OBJC_METACLASS_$_CDVViewController", referenced from: 
     _OBJC_METACLASS_$_MainViewController in MainViewController.o 
ld: symbol(s) not found for architecture x86_64 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

, 내가 단계별로 지침의 단계를 따라하고 (내 생각) 이전에 잘 작동되었다 ( 는 사람이 좀 도와 줄래? 내가

감사

답변

0

? 내 아이폰 64 비트 작업을 한 것으로해야 실제로 다른 스레드에서 해결책을 발견 한 것을 하나의 아주 완벽한 저기 하나,하지만 최선을 일한 사람이있다 나를 위해이 스레드에 없었다. 그것은 꽤 stighforward했다 :

방금이 문제를 해결하는 새 버전 3.4.1을 발표했습니다. 24 에서

/usr/local/lib/node_modules/cordova/platforms.js 

행 :

version: '3.4.0' 

에 :

version: '3.4.1' 

다음 제거

그러므로 나는 TAG 3.4.1를 가리 키도록 하나의 파일을 업데이트 프로젝트의 iOS 폴더에서 다음을 실행하십시오.

cordova platform add ios 

이렇게하면 모든 패치가 포함 된 3.4.1을 기반으로 새 템플릿이 다운로드됩니다.

감사합니다 @Fabrizio Giordano 그 점을 지적하십시오.