Incorrect path for Pods.debug.xcconfig in Xcode?

后端 未结 17 1294
一整个雨季
一整个雨季 2021-01-30 03:15

so I used Venmo/Synx on my Xcode project with CocoaPods, and it completely screwed everything up.

I was able to fix the Manifest.lock and Podfile.lock errors, but now I

相关标签:
17条回答
  • 2021-01-30 03:36

    I faced this issue when I upgraded/downgraded cocoapods between 1.6.x and 1.5.x. The following step fixed this error

    1, go to project info tab

    2, just under Deployment target, there is configurations field. change your configuration. In my case, there are 2 options

    /Users/user/GitHub/xxxxxx/Pods/Pods/Target Support Files/Pods/Pods.debug.xcconfig
    
    /Users/user/GitHub/xxxxxx/Pods/Target Support Files/Pods/Pods.debug.xcconfig
    

    3, clean and build again.

    0 讨论(0)
  • 2021-01-30 03:36

    Go to project directory right click on

    project.xcodeproj -> show package contents -> open project.pbxproj

    Find

    "Pods/Target Support Files/

    and replace with

    "Target Support Files/

    This solution will work at any cost!

    0 讨论(0)
  • 2021-01-30 03:37

    Try deleting the debug.xcconfig file and run pod install again. It solved my issue

    0 讨论(0)
  • 2021-01-30 03:43

    This is what worked for me !

    I use always Bundler to manage ruby dependencies, then in all my iOS projects i have Gemfile that look like this !

    source "https://rubygems.org"
    
    gem "cocoapods"
    gem "fastlane"
    gem "jazzy"
    
    gem 'xcodeproj', :git => 'https://github.com/CocoaPods/Xcodeproj.git'
    gem 'fastlane-plugin-teams', :git => "https://github.com/mbogh/fastlane-plugin-teams"
    
    plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
    eval_gemfile(plugins_path) if File.exist?(plugins_path)
    

    i just run the following, i advice you using alias for this :

    ## Alias to add in zshrc or bashrc
    
    # bundle install
    bdli() {
      bundle install $@;
    }
    
    piu() {
      kill $(ps aux | grep 'Xcode' | awk '{print $2}');
      pod deintegrate;
      pod repo update;
      pod install;
      pod update;
      open -a Xcode *.xcworkspace;
    }
    
    

    then simply run :

    bdli && piu
    

    It will do everything for you :)

    PS : To install Bundler go here -> Bundler

    0 讨论(0)
  • 2021-01-30 03:44

    There has been an update to cocoa pods that is causing this problem. Please refer to the cocoa pods release notes :

    Change shell script relative paths to use ${PODS_ROOT} instead of ${SRCROOT}/Pods. Whirlwind #7878

    This was done in version 1.6.0.beta.1 (2018-08-16) Release notes are here: cocoapods release notes

    0 讨论(0)
  • 2021-01-30 03:44

    I got the same situation in Xcode 10.1. This is what works for me.

    1. Open <Project>.xcworkspace
    2. Go into your <project_name> folder(by default it's blue), delete the Pods folder (by default it's yellow)
    3. In Terminal.app, run pod install again
    4. Then I'm able to CMD + R to run the simulator
    0 讨论(0)
提交回复
热议问题