简体   繁体   中英

Resolve “Apple Mach-O Linker (ld) Error” with Ionic 3 and FCM

I build an Ionic 3 app and I try to use FCM to have push notifications.

I works in android. But when I try to deploy project on iOS I have this error : Apple Mach-O Linker (ld) Error.

I tried to remove and add iOS platform in my project but nothing better.

I open my project with .xcworkspace file, and I haven't Pod, I don't need it with Fcm. So this solution doesn't works for me ... https://github.com/phonegap/phonegap-plugin-push/issues/1518

My Ionic Info :

cli packages: (/Users/ox/Documents/Mobile/ox/node_modules)

    @ionic/cli-utils  : 1.18.0
    ionic (Ionic CLI) : 3.18.0

global packages:

    cordova (Cordova CLI) : 7.1.0 

local packages:

    @ionic/app-scripts : 2.1.0
    Cordova Platforms  : ios 4.5.3
    Ionic Framework    : ionic-angular 3.6.1

System:

    ios-deploy : 1.9.2 
    ios-sim    : 5.0.13 
    Node       : v6.11.3
    npm        : 3.10.10 
    OS         : macOS Sierra
    Xcode      : Xcode 9.1 Build version 9B55 

Any idea please ?

在此处输入图片说明

I had this problem with Ionic1, it was related to CocoaPods used by FCM, OneSignal and others.

On your platform/ios/: 在此处输入图片说明

Try to start xcode from the .xcworkspace file. This should resolve the problem. At least resolved on other Ionic versions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM