当我在离子应用程序上运行``离子Cordova仿真ios''时,体系结构x86_64的未定义符号

时间:2018-10-25 22:02:03

标签: ionic-framework ionic3

我在1.10.1版上使用cordova-plugin-facebook4。当我运行“离子科尔多瓦仿真ios”时,出现此错误:

Undefined symbols for architecture x86_64:


"___isOSVersionAtLeast", referenced from:
      -[FBSDKApplicationDelegate application:openURL:sourceApplication:annotation:] in FBSDKCoreKit(FBSDKApplicationDelegate.o)
      -[FBSDKApplicationDelegate applicationDidBecomeActive:] in FBSDKCoreKit(FBSDKApplicationDelegate.o)
      -[FBSDKApplicationDelegate openURLWithSafariViewController:sender:fromViewController:handler:] in FBSDKCoreKit(FBSDKApplicationDelegate.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

当我删除cordoba-plugin-facebook4时,命令“离子科尔多瓦模拟iOS”起作用。我使用Xcode 8是因为我的Mac OS是10.11.6,并且我的机器太旧了,无法升级Mac OS。我将把执行环境放在下面:

Ionic:

   ionic (Ionic CLI)  : 4.2.1
   Ionic Framework    : ionic-angular 3.2.1
   @ionic/app-scripts : 1.3.7

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : ios 4.4.0
   Cordova Plugins       : no whitelisted plugins (13 plugins total)

System:

   ios-deploy : 1.9.4
   NodeJS     : v6.14.4
   npm        : 3.10.10
   OS         : OS X El Capitan
   Xcode      : Xcode 8.0 Build version 8A218a

iOS SDKs:
    iOS 10.0                        -sdk iphoneos10.0

iOS Simulator SDKs:
    Simulator - iOS 10.0            -sdk iphonesimulator10.0

macOS SDKs:
    macOS 10.12                     -sdk macosx10.12

tvOS SDKs:
    tvOS 10.0                       -sdk appletvos10.0

tvOS Simulator SDKs:
    Simulator - tvOS 10.0           -sdk appletvsimulator10.0

watchOS SDKs:
    watchOS 3.0                     -sdk watchos3.0

watchOS Simulator SDKs:
    Simulator - watchOS 3.0         -sdk watchsimulator3.0

感谢任何帮助人员!

0 个答案:

没有答案