Cocoa Pods No header file for local module

I tested using the podfile that I am working on doing the following ...

In my application, I added pod

pod "SampleSDK" ,: local => pod "SampleSDK" ,: local => "~ / Documents / Dev / iOS / MobSample"

and my specified pod file is as follows

Pod::Spec.new do |s| s.name = "SampleSDK" s.version = "1.0.2" s.summary = "This is an Objective-C SDK for Sample." s.homepage = "https://github.com/Sample/SampleSDK.git" s.source = { :git => "https://github.com/Sample/SampleSDK.git",:tag => "v1.0.2"} s.public_header_files = 'SampleSDK-iosuniversal/SampleSDK.framework/Headers/*.h' s.preserve_paths = SamplekSDK-iosuniversal/SampleSDK.framework' s.frameworks = 'Foundation', 'QuartzCore' , 'SystemConfiguration' s.xcconfig = { 'LIBRARY_SEARCH_PATHS' => '"$(PODS_ROOT)/SampleSDK/Headers"', 'OTHER_LDFLAGS' => '$(inherited) -all_load -ObjC' } end 

The pod specification check is checked, but when I do the pod install, there are no header files in LocalPods -> SampleSDK ->

Where am I mistaken? How should I go next?

+4
source share
2 answers

public_header_files is a positive source_files filter. In this case, since all headers are publicly available, you can replace the former with a later one, and podspec should work as expected.

+4
source

If this is really what your Podfile looks like, this is the problem. As the documentation shows, the purpose of the :local key is to let you point to the library source locally, while also using podspec, which is already part of the master repo . Update: Fabio pointed out to me that, as the docs say, Option :local really expects and podspec in the folder.

0
source

Source: https://habr.com/ru/post/1479681/


All Articles