SimpleAuth icon indicating copy to clipboard operation
SimpleAuth copied to clipboard

cocoa-oauth/GCOAuth.h file not found

Open rakesh0r opened this issue 9 years ago • 7 comments
trafficstars

screen shot 2016-05-22 at 5 09 26 pm

am facing the above issue, can you help me with this

rakesh0r avatar May 22 '16 22:05 rakesh0r

I have this too. @calebd Any problem with the podspec?

codeOfRobin avatar Jun 09 '16 08:06 codeOfRobin

Also, it seems to go away for Objective-C projects with "use_frameworks!" disabled. Any ideas?

codeOfRobin avatar Jun 09 '16 08:06 codeOfRobin

+1

henriquechehad avatar Jun 13 '16 19:06 henriquechehad

I got the same problem +1

thongds avatar Jun 20 '16 07:06 thongds

FWIW I noticed the header search paths for the SimpleAuth target under the Pods project, "${PODS_ROOT}/Headers/Private" (and Public), were empty. Replacing both with just "${PODS_ROOT}" seems to take care of this issue.

shaharz avatar Jun 20 '16 16:06 shaharz

This issue on CocoaPods' repository is relevant

phillfarrugia avatar Jul 04 '16 12:07 phillfarrugia

adding this to the end of my Podfile did the trick. Maybe it'll help someone else.

post_install do |_|
  work_dir = Dir.pwd
  file_name = "#{work_dir}/Pods/Target\ Support\ Files/SimpleAuth/SimpleAuth.xcconfig"
  config = File.read(file_name)
  new_config = config.gsub(/HEADER_SEARCH_PATHS = "/, 'HEADER_SEARCH_PATHS = "${PODS_ROOT}" "')
  File.open(file_name, 'w') { |file| file << new_config }
end

bbrock25 avatar Aug 31 '16 21:08 bbrock25