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

我是研究僧i 提交于 2019-12-10 12:57:15

问题


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.



来源:https://stackoverflow.com/questions/16589320/target-integrity-the-file-pods-ios-xcconfig-couldnt-be-opened-because-its-p

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!