gpt4 book ai didi

ios - Wizcorp/phonegap-facebook-插件 : building ios failed

转载 作者:可可西里 更新时间:2023-11-01 03:45:24 27 4
gpt4 key购买 nike

当我尝试运行 ionic build ios或者尝试为由 ionic 创建的 xcode 项目构建存档我得到这个错误

**FacebookConnectPlugin.m**:27:44: error: no visible @interface for 'CDVPlugin' declares the selector 'initWithWebView:' self = (FacebookConnectPlugin *)[super initWithWebView:theWebView]; ~~~~~ ^~~~~~~~~~~~~~~ /Applications/MAMP/htdocs/hybrid-mobile-app/platforms/ios/qudratApp/Plugins/phonegap-facebook-plugin/FacebookConnectPlugin.m:238:28: warning: comparison of constant 2 with boolean expression is always false [-Wtautological-constant-out-of-range-compare] if (!command.arguments == 2) { ~~~~~~~~~~~~~~~~~~ ^ ~ 1 warning and 1 error generated.

** BUILD FAILED **

The following build commands failed: CompileC build/qudratApp.build/Debug-iphonesimulatorqudratApp.build/Objects-normal/i386/FacebookConnectPlugin.o qudratApp/Plugins/phonegap-facebook-plugin/FacebookConnectPlugin.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Applications/MAMP/htdocs/hybrid-mobile-app/platforms/ios/cordova/build-debug.xcconfig,-project,qudratApp.xcodeproj,ARCHS=i386,-target,qudratApp,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Applications/MAMP/htdocs/hybrid-mobile-app/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Applications/MAMP/htdocs/hybrid-mobile-app/platforms/ios/build/sharedpch

最佳答案

我通过本地克隆副本安装了 phonegap 插件 facebook,并在安装后将 FacebookSDK.framework 重新添加到 Xcode,但这对我来说都不起作用。我解决的方法是安装 https://github.com/jeduan/cordova-plugin-facebook4 .

  1. 删除 phonegap 插件:

    ionic 插件 rm phonegap-facebook-plugin

  2. 克隆下一个插件:

    git clone https://github.com/jeduan/cordova-plugin-facebook4.git

  3. 手动添加插件:

    cordova -d plugin add PATH/cordova-plugin-facebook4 --variable APP_ID="*****"--variable APP_NAME="*****"

这就是我的工作方式。

关于ios - Wizcorp/phonegap-facebook-插件 : building ios failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35243331/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com