ramon
January 10, 2017, 2:52pm
1
Hi,
since I installed the ‘phonegap-plugin-push’ plugin I get the following error in xCode:
linker command failed with exit code 1 (use -v to see invocation)
It seems that it is a problem between two plugins. But all of them are mandatory in my APP.
There is a list of installed plugins:
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.5 "Console"
cordova-plugin-contacts 2.2.1 "Contacts"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-dialogs 1.3.1 "Notification"
cordova-plugin-facebook4 1.7.4 "Facebook Connect"
cordova-plugin-file 4.3.1 "File"
cordova-plugin-file-transfer 1.6.1 "File Transfer"
cordova-plugin-globalization 1.0.5 "Globalization"
cordova-plugin-inappbrowser 1.6.1 "InAppBrowser"
cordova-plugin-network-information 1.3.1 "Network Information"
cordova-plugin-settings-hook 0.2.4 "Cordova Settings Hooks"
cordova-plugin-splashscreen 4.0.1 "Splashscreen"
cordova-plugin-statusbar 2.2.1 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-plugin-x-socialsharing 5.1.3 "SocialSharing"
ionic-plugin-deploy 0.6.5 "IonicDeploy"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 1.9.2 "PushPlugin"
Platforms installed:
android 6.1.1
ios 4.3.1
My system information:
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 1.0.0
ios-deploy version: 1.9.0
ios-sim version: 5.0.11
OS: macOS Sierra
Node Version: v7.1.0
Xcode version: Xcode 8.2.1 Build version 8C1002
Anyone is facing this same issue?
@mhartington can you help me, please?
I already tried to remove and re-add ios platform.
Thanks in advance!
Check the push plugin repo. There’s probably more information there
ramon
January 11, 2017, 7:17am
3
Related issue in push plugin repo:
opened 08:29PM - 24 Sep 16 UTC
closed 07:54PM - 06 Sep 17 UTC
ios
on hold
### Expected Behaviour
Build success
### Actual Behaviour
Build fails
### Repr… oduce Scenario (including but not limited to)
```
Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0
ios-deploy version: 1.9.0
ios-sim version: 5.0.8
OS: macOS Sierra
Node Version: v6.6.0
Xcode version: Xcode 8.0 Build version 8A218a
```
#### Steps to Reproduce
1. `ionic build ios`
2. Open "yourAppFolder"/platforms/ios/yourAppName.xcodeproj
3. Build
#### Platform and Version (eg. Android 5.0 or iOS 9.2.1)
iOS 10.0.2
#### Cordova CLI version and cordova platform version
cordova 6.3.1
ios 4.2.1
#### Plugin version
phonegap-plugin-push 1.8.2
#### Logs taken while reproducing problem
```
ld: warning: object file (/Users/nunoarruda/repos/zee-p3-app/platforms/ios/zee-p3-app/Plugins/phonegap-plugin-push/GCM/Libraries/libProtocolBuffers.a(Descriptor.pb.o)) was built for newer iOS version (8.3) than being linked (8.0)
ld: warning: object file (/Users/nunoarruda/repos/zee-p3-app/platforms/ios/zee-p3-app/Plugins/phonegap-plugin-push/GCM/Libraries/libProtocolBuffers.a(ObjectivecDescriptor.pb.o)) was built for newer iOS version (8.3) than being linked (8.0)
ld: warning: object file (/Users/nunoarruda/repos/zee-p3-app/platforms/ios/zee-p3-app/Plugins/phonegap-plugin-push/GCM/Libraries/libProtocolBuffers.a(PBArray.o)) was built for newer iOS version (8.3) than being linked (8.0)
...
ld: 270 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
Anyway, for me the below solve it:
PushPlugin uses Cocoa Pods now, once it is installed you can not run your regular yourProjectName.xcodeproj file you must open a new file that was creating after you installed PushPlugin called yourProjectName.xcworkspace.
from here .
6 Likes