Incorrect path for Pods.debug.xcconfig in Xcode?

后端 未结 17 1293
一整个雨季
一整个雨季 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:30

    A few things worth trying:

    • As Keith mentioned above, you definitely want to exclude Pods from synx.
    • You almost certainly do not want to override the PODS_ROOT build setting.
    • I've seen similar errors to yours in a project with multiple targets. Make sure that your Podfile includes a link_with setting that specifies all your app targets.
    • If you have at least one test target, consider using your Podfile to explicitly import all your app pods to both your application and test targets.
    • I've not too much experience using a custom xcconfig with CocoaPods, but you might first try removing your xcconfig and allowing CocoaPods to generate its own first.
    0 讨论(0)
  • 2021-01-30 03:31

    For me, changing Build system to Legacy in File -> workspace settings did the trick

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

    I had the same error while trying to build my project for the first time. This is how I resolved it:

    • pod deintegrate
    • sudo gem install cocoapods-clean
    • pod clean

    Open the project and delete the “Pods” folder that should be red.

    • pod setup
    • pod install

    Reopen and build the project, I think it's good to go!

    0 讨论(0)
  • 2021-01-30 03:33
    1. Close project
    2. Do pod deintegrate
    3. Delete - Podfile.lock, Pods,.xcworkspace in project directory
    4. Do sudo gem install cocoapods
    5. Do pod install
    0 讨论(0)
  • 2021-01-30 03:33

    In my case, I deleted my Podfile, Podfile.lock. Run pod init, then copy all pods to new Podfile, then run pod install again and it's worked. I think it's happened for the differences from folder paths in the old project (for me, I cloned another project from Git repo).

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

    If your path to pods in error is wrong try this:

    • use pod deintegrate
    • delete all pod remains files - Podfile.lock, Pods, <Project>.xcworkspace
    • open <Project>.xcodeproj
    • remove Pods project on left side
    • try pod install
    0 讨论(0)
提交回复
热议问题