Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

The target overrides the LD_RUNPATH_SEARCH_PATHS build setting #653

Open
marioshtika opened this issue Oct 14, 2019 · 30 comments
Open

The target overrides the LD_RUNPATH_SEARCH_PATHS build setting #653

marioshtika opened this issue Oct 14, 2019 · 30 comments

Comments

@marioshtika
Copy link

marioshtika commented Oct 14, 2019

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
Copy link
Author

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.

@vicatcu
Copy link

vicatcu commented Nov 16, 2019

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

@marioshtika
Copy link
Author

@vicatcu make sure you have:

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

@marioshtika
Copy link
Author

@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.

@grumpygary
Copy link

grumpygary commented Nov 24, 2019

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).

@wcjord
Copy link

wcjord commented Jan 31, 2020

I'm having this problem with ionic v4

@sahyun1
Copy link

sahyun1 commented Feb 4, 2020

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?

@kelpie278
Copy link

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.

@sahyun1
Copy link

sahyun1 commented Feb 9, 2020

@kelpie278 can you share what the versions are?

@ctfrancia
Copy link

any update?

@mohit-testframework
Copy link

I am having the same issue, Any update?

@bboldi
Copy link

bboldi commented Mar 20, 2020

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

@Webjin
Copy link

Webjin commented Apr 10, 2020

Anyone found a solution for this yet?

@JunyaoC
Copy link

JunyaoC commented Apr 17, 2020

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"

@moblizeit
Copy link

i am struggling on ionic 5 with firebase-authentication plugin

@iUdom7777
Copy link

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?

@ifdouglas
Copy link

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

@Crypt0Graphic
Copy link

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
Copy link

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 ios@5.1.1

@atapias
Copy link

atapias commented Nov 3, 2020

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

I have the same issue. Any solution? :(

Thank you very much

@marcopes
Copy link

I have the same issue. Any solution?

@tomavic
Copy link

tomavic commented Apr 4, 2021

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

@developerlibre
Copy link

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

@thepianist2
Copy link

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

@gentooza
Copy link

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!

@SteveKennedy
Copy link

SteveKennedy commented Dec 7, 2021

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 (cordova-lib@10.1.0)
Cordova Platforms : android 10.1.1, browser 6.0.0, ios 6.2.0

@marioshtika
Copy link
Author

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 (#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 👍

@EddieSwift
Copy link

EddieSwift commented Feb 23, 2023

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

@tomavic
Copy link

tomavic commented Feb 23, 2023

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

@EddieSwift
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests