[英]Cocoa Pods No header file found for local pod
我正在通過執行以下操作來測試我正在使用的podfile ...
在我的應用程序中,我添加了pod
pod“SampleSDK”,:local => pod“SampleSDK”,:local =>“〜/ Documents / Dev / iOS / MobSample”
我的pod規范文件如下
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
傳遞pod規范驗證,但是當我執行pod安裝時,LocalPods >> SampleSDK >>中不存在頭文件
我哪里錯了? 我該怎么辦?
public_header_files
是source_files
的正過濾器。 在這種情況下,由於所有標頭都是公共的,您可以用后者替換前者,podspec應該按預期工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.