-2

Trying to create my own library

PodSpec: podspec

PodFile: podFile

Pod lib lint: pod lib lint

Import: import library

I call pod install and the dependency is installed but i can't do import

enter image description here

if you just download the zip archive with the library and drop it into the project, then everything works

Please tell me how to fix this problem

Vyrex
  • 1
  • 3

1 Answers1

0

In your podspec, make sure to include files recursively:

spec.source_files  = 'Skyline/**/*.{h,m,swift}'
Yonat
  • 4,382
  • 2
  • 28
  • 37
  • spec.exclude_files remove? – Vyrex May 15 '21 at 18:41
  • Yes, it doesn't have the included suffixes anyway. – Yonat May 15 '21 at 18:43
  • tell me how you install the latest version of the library, pod update does not download the latest version of the library – Vyrex May 15 '21 at 19:02
  • 1) pod repo update 2) pod deintegrate 3) pod install // I tried to call such a sequence of commands, but all without success – Vyrex May 15 '21 at 19:02
  • Either use local pod `pod 'Skyline', :path => '~/some/local/dir'` or download the latest from github `pod 'Skyline', :git => 'https://github.com/VYR3X/Skyline'` – Yonat May 15 '21 at 19:06