cordova-plugin-googleplus icon indicating copy to clipboard operation
cordova-plugin-googleplus copied to clipboard

The target overrides the `LD_RUNPATH_SEARCH_PATHS` build setting

Open marioshtika opened this issue 5 years ago • 30 comments

I am having a problem when building on iOS.

This message is shown when I install the cordova-plugin-googleplus

[!] The `[Debug]` target overrides the `LD_RUNPATH_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-______/Pods-______.debug.xcconfig'. This can lead to problems with the CocoaPods installation

[!] The `[Release]` target overrides the `LD_RUNPATH_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-______/Pods-______.release.xcconfig'. This can lead to problems with the CocoaPods installation

The developer build is successful, but when I create a production build for release it fails ionic cordova build ios --prod --release

I am using ionic v3.

marioshtika avatar Oct 14 '19 10:10 marioshtika

From some internet search, I find out that this is happening because I am using more than one plugin that is being installed through Cocoapods.

marioshtika avatar Oct 14 '19 10:10 marioshtika

@marioshtika any update on this, I think I'm hitting the same problem now

vicatcu avatar Nov 16 '19 17:11 vicatcu

@vicatcu make sure you have:

  • installed Cocoapods sudo gem install cocoapods and
  • updated dependencies pod repo update

marioshtika avatar Nov 18 '19 07:11 marioshtika

@vicatcu also, I was having problem with Youtube and Google+ simultaneously. So I am guessing this happens when you use two plugins with the same/common SDK such as Google. I don't know just guessing. At the moment I didn't find a solution, so I removed the Youtube plugin.

marioshtika avatar Nov 18 '19 07:11 marioshtika

I had the same problem using FireBase and GoogleSignIn pods, which both reference GoogleUtilities (the second one explicitly in the platforms/ios/podfile). I was finally able to get it to compile by removing the "pd 'GoogleUtilities' line and rerunning "pod install" from platforms/ios. Unfortunately, it then crashes on startup on many iOS devices (had to remove the plugin to fix it).

grumpygary avatar Nov 24 '19 17:11 grumpygary

I'm having this problem with ionic v4

wcjord avatar Jan 31 '20 11:01 wcjord

I have same issue, I have firebase-x plugin as well. If I remove either one, it builds and works fine so must be these two are conflicting?

sahyun1 avatar Feb 04 '20 23:02 sahyun1

I manually set up pod file versions and it goes well. Make sure you have the right firebase pods version and it should do the build.

kelpie278 avatar Feb 05 '20 08:02 kelpie278

@kelpie278 can you share what the versions are?

sahyun1 avatar Feb 09 '20 22:02 sahyun1

any update?

ctfrancia avatar Feb 21 '20 14:02 ctfrancia

I am having the same issue, Any update?

mohit-testframework avatar Feb 27 '20 11:02 mohit-testframework

Same problem / ionic 3 ( probably because of facebook and onesignal plugins ) ... can someone from dev team teak a look at this?

bboldi avatar Mar 20 '20 08:03 bboldi

Anyone found a solution for this yet?

Webjin avatar Apr 10 '20 08:04 Webjin

Im having this issue too with Ionic 5, Angular 8. Attempt to use ionic cordova prepare ios will result the process to stop after displaying "Preparing Firebase on iOS"

JunyaoC avatar Apr 17 '20 01:04 JunyaoC

i am struggling on ionic 5 with firebase-authentication plugin

moblizeit avatar May 15 '20 19:05 moblizeit

I'm having same issue. target overrides the LD_RUNPATH_SEARCH_PATHS build setting defined in `Pods/Target Support Files/xxxxxxx.xcconfig'. This can lead to problems with the CocoaPods installation. Anyone resolved this?

iUdom7777 avatar Jun 19 '20 03:06 iUdom7777

I have the same issue after try installing cordova-plugin-facebook4.

ifdouglas avatar Aug 17 '20 22:08 ifdouglas

I had this problem yesterday with FirebaseX & GooglePlus. Solved today.

Normally they would work together for months. Yesterday i needed to remove/add ios platform. Then i got this error. I tried lots of things. For example i downgraded Cordova-Ios, Cordova-Lib & Cordova to 9 from 10. But there was no solution.

Today i did these:

  1. Restarted Computer
  2. Removed FirebaseX & GooglePlus plugins.
  3. Removed/Added Ios Platform
  4. Added $(inherited) to Runpath Search Paths (XCode/Build Settings/Linking)
  5. Installed FirebaseX but NOT GooglePlus (also i removed all Codes that use GooglePlus)
  6. After successful build i added GooglePlus and codes back.

As result i had a successful build. I don't know which one was the solution. Maybe cordova downgrade needed a restart or XCode needed $(inherited) etc. After all this is my success story in 24 hours.

Good luck to all until a solid solution is found.

Crypt0Graphic avatar Oct 14 '20 17:10 Crypt0Graphic

Well. I upgraded Cordova to 10 back with other cordova stuff (lib, ios, android) and had this warning and it's error at build again:

LD_RUNPATH_SEARCH_PATHS.substr is not a function

After hours i found the problem. It's is cordova-ios 6.x.x

When i add ios platform with codrova-ios 5.1.1 there is no build error:

ionic cordova platform add [email protected]

Crypt0Graphic avatar Oct 21 '20 02:10 Crypt0Graphic

I have the same issue after try installing cordova-plugin-facebook4.

I have the same issue. Any solution? :(

Thank you very much

atapias avatar Nov 03 '20 18:11 atapias

I have the same issue. Any solution?

marcopes avatar Jan 28 '21 16:01 marcopes

2021 and still no successful try! Issue produced with with Ionic 5 Angular 11, cordova-ios 5.1.1, cordova 9

tomavic avatar Apr 04 '21 20:04 tomavic

For me, to prevent this warning appear, I do this before "4. Installation" step: Added $(inherited) to Runpath Search Paths (XCode/Build Settings/Linking)

After doing this, the installation goes without any error, however, my PJ still failed due to the missing of Target Support Files/Pods-[App Name]/Pods-[App Name].debug.xcconfig. I then realize that my app's name has a special character å. I then change it to 'a' and redo from beginning and it works now.

P/s: My PJ uses ionic 5, angular 8

developerlibre avatar May 21 '21 08:05 developerlibre

I have the same problem, 1 month and nothing solution, i'm frustrated 😩.

thepianist2 avatar May 31 '21 18:05 thepianist2

For me, to prevent this warning appear, I do this before "4. Installation" step: Added $(inherited) to Runpath Search Paths (XCode/Build Settings/Linking)

After doing this, the installation goes without any error, however, my PJ still failed due to the missing of Target Support Files/Pods-[App Name]/Pods-[App Name].debug.xcconfig. I then realize that my app's name has a special character å. I then change it to 'a' and redo from beginning and it works now.

P/s: My PJ uses ionic 5, angular 8

I had the exactly the same problem, with the same causes (special character in project's name also) Now it's resolved. thanks a lot!

gentooza avatar Jul 30 '21 08:07 gentooza

My app's title has a space in it. Now I'm suspect of that space, causing this.


Ionic CLI : 6.18.0 (/usr/local/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/angular 5.9.1 @angular-devkit/build-angular : 12.2.10 @angular-devkit/schematics : 12.2.10 @angular/cli : 12.2.10 @ionic/angular-toolkit : 4.0.0 Cordova CLI : 10.0.0 ([email protected]) Cordova Platforms : android 10.1.1, browser 6.0.0, ios 6.2.0

SteveKennedy avatar Dec 07 '21 23:12 SteveKennedy

I created this issue more than two years ago, and today I finally found a solution for this 😄

In my case, I am using another plugin that has, as a dependency, the GoogleUtilities library version 6.7, but the this plugin uses version 7.2.2 as the default version for the GoogleUtilities library. So the pod install command would fail and it would never install this plugin.

To find out what is the cause that your installation is failing, go to the folder where your xCode project platform/ios/YOUR_PROJECT_NAME and install pod with the verbose parameter

pod install --verbose

This will show you what is the issue that is causing pod install to fail. If your issue is caused by the wrong version of your library, you can then change it with the correct version and it should be fixed.

I have created a pull request for this (https://github.com/EddyVerbruggen/cordova-plugin-googleplus/pull/748) so that we can change the library version during the installation process.

Example

cordova plugin add https://github.com/EddyVerbruggen/cordova-plugin-googleplus --save --variable REVERSED_CLIENT_ID=myreversedclientid  --variable GoogleUtilities="~> 6.7.0"

If you have the same problem as me, let me know and I will try to help as much as I can 👍

marioshtika avatar Jan 19 '22 18:01 marioshtika

Same issue I have these pods: SwiftGen, SwiftLint [!] The MyProj [Debug] target overrides the LD_RUNPATH_SEARCH_PATHS build setting defined in `Pods/Target Support Files/Pods-MyProj/Pods-MyProj.debug.xcconfig'. This can lead to problems with the CocoaPods installation

[!] The MyProj [Release] target overrides the LD_RUNPATH_SEARCH_PATHS build setting defined in `Pods/Target Support Files/Pods-MyProj/Pods-MyProj.debug.xcconfig'. This can lead to problems with the CocoaPods installation

EddieSwift avatar Feb 23 '23 18:02 EddieSwift

It's been so long, I have updated my environment to latest of all. @EddieSwift I don't know if you still using an old version of Ionic

tomavic avatar Feb 23 '23 18:02 tomavic

It's been so long, I have updated my environment to latest of all. @EddieSwift I don't know if you still using an old version of Ionic

I try to start CI on Bamboo

EddieSwift avatar Feb 23 '23 22:02 EddieSwift