Как да се отървете от инсталирането на предупреждение Pod libs

Нов съм в iOS. Имам статичен lib проект (Swift) и трябва да използвам lib Swiftlint (има няколко начина да го направя, избирам Pod)

Как инсталирах pod:

https://medium.com/@soufianerafik/how-to-add-pods-to-an-xcode-project-2994aa2abbf1#

след това дефинирах lib във файла

# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'

target 'Effects_Lib' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Effects_Lib
  pod 'SwiftLint'

end

проблемът е, че когато се опитам да го инсталирам, получавам предупреждение

Installing SwiftLint (0.43.1)
Generating Pods project
Integrating client project
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.

[!] The Podfile contains framework or static library targets (Effects_Lib), for which the Podfile does not contain host targets (targets which embed the framework).
If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).

Намерих този отговор на SO: https://stackoverflow.com/a/54705782/5709159

което казва, че трябва да добавя път към самия проект към pod файла (доколкото разбрах) по този начин

# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'

target 'Effects_Lib' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  project 'Effects_Lib.xcodeproj'

  # Pods for Effects_Lib
  pod 'SwiftLint'

end

но така или иначе получавам същото предупреждение.

Какво правя грешно тук?


person Aleksey Timoshchenko    schedule 28.06.2021    source източник