SimpleAuth
SimpleAuth copied to clipboard
cocoa-oauth/GCOAuth.h file not found
am facing the above issue, can you help me with this
I have this too. @calebd Any problem with the podspec?
Also, it seems to go away for Objective-C projects with "use_frameworks!" disabled. Any ideas?
+1
I got the same problem +1
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.
This issue on CocoaPods' repository is relevant
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