Quantcast
Channel: Active questions tagged cocoapods - Stack Overflow
Viewing all articles
Browse latest Browse all 1029

Error while installing private cocopods library in iOS app

$
0
0

My podspec as follow,

Pod::Spec.new do |s|  s.name             = 'demo'  s.version          = '0.1.0'  s.summary          = 'A short description of demo.'  s.description      = 'This is a pob library'  s.homepage         = 'https://mygitrepo.git'  s.license          = { :type => 'MIT', :file => 'LICENSE' }  s.author           = { 'authorName' => 'authorName@demo.com' }  s.source           = { :git => 'https://mygitrepo.git', :branch =>'dev/demo' , :tag => s.version.to_s }  s.source_files = 'demo/Classes/**/*.{h,m,swift}'  s.vendored_frameworks = 'Example/Pods/testFramework.framework'end

I created own private cocoapods dependency library : source. I added few Objective-C classes .h/.m and swift file. After that I push my code into git.

XCode build phases as follow,enter image description here

I'm getting .h file not .m or swift files.

I added this dependencies in my project in the pod directory but I not getting .m and .swift files.

Pod structure in the main project as follow,enter image description here

.m file not found after installing pod dependency.


Viewing all articles
Browse latest Browse all 1029

Latest Images

Trending Articles



Latest Images