Target Integrity - The file “Pods-ios.xcconfig” co

2019-06-17 09:55发布

问题:

I'm trying to utilize the four Examples that ship with RestKit Version 0.20.1 Currently trying to Build RKSearchExample. The Build "succeeds" but no simulator appears and I get two warnings

1st one - Target Intergrity - The file "Pods-ios.xcconfig" couldn't be opened because there is no such file. ....

2nd one - Target Integrity - The file "Pods-ios.xcconfig" couldn't be opened because its path couldn't be resolved. It may be missing"

I assume that this file is missing and even though the Build succeeds with only warnings, it missing is causing the project to not actually complete its Build.

Does anyone have any idea where to find this file? Has one built the Examples included in RestKit successfully?

Thanks!

回答1:

Came across same problem. Solved it by

  1. Make sure .pch file is updated and missing frameworks are added to Build Phases (See 'Adding Frameworks to the Precompiled Header File' in https://github.com/RestKit/RestKit/wiki/Installing-RestKit-v0.20.x-via-CocoaPods)

  2. Close the workspace, re-run '$ pod install' in the project directory,

  3. Re-open the project (using .xcworkspace), do a Clean and Build.



回答2:

Hey i had this same problem, I was getting the following error when running pod update however i didn’t realise the update wasn’t working.

$ pod update

Analyzing dependencies /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:422:in `open': No such file or directory

It was because I forgot to run "pod setup" after installing cocoapods. I ran pod setup from the terminal, followed it up with pod update (or pod install) and everything went to plan.