Error "link picker with error" with exit code 1 (use -v to call the call) "

When I try to build using ionic run ios -lc I see the following error in the terminal:

 ** BUILD FAILED ** The following build commands failed: Ld build/emulator/xXxXxXx.app/xXxXxXx normal i386 (1 failure) Error code 65 for command: xcodebuild with args: -xcconfig,/Users/xXxXxXx/Projects/xXxXxXx/platforms/ios/cordova/build-debug.xcconfig,-project,xXxXxXx.xcodeproj,ARCHS=i386,-target,xXxXxXx,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/xXxXxXx/Projects/xXxXxXx/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/xXxXxXx/Projects/xXxXxXx/platforms/ios/build/sharedpch Error: /Users/xXxXxXx/Projects/xXxXxXx/platforms/ios/cordova/run: Command failed with exit code 2 at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1015:16) at Process.ChildProcess._handle.onexit (child_process.js:1087:5) 

When trying to create the same application in xCode, I see a linker command failed with exit code 1 (use -v to see invocation) error

  • I uninstalled and added the ios platform
  • I updated ios-deploy
  • I updated ios-sim
  • I restarted Xcode
  • I restarted my car. Xcode updated.
  • I can successfully create other projects.
+5
source share
2 answers

The error Xcode linker command failed with exit code 1 (use -v to see invocation) led me to this answer

The second answer there suggests checking for multiple / duplicate .m files in the Xcode project Compile Resources:

This can happen if the same .m file is referenced several times in the target section "Compile Sources" in the "Phase Assembly" section. Delete the duplicate entries and you should be fine.

So, I had a check in Xcode, and there was a really duplicate call to the plugin resource.

After checking package.json, I found that the same plugin is referenced in two ways (with two paths) .

Removing one of the two plugins resolved the issue.

+7
source

I found a solution on github

the solution for me was open the .xcworkspace file insted of .xcodeproj located inside my '/platforms/ios' folder.

https://github.com/phonegap/phonegap-plugin-push/issues/1240

0
source

All Articles