Bobj-C
Bobj-C

Reputation: 5426

Creating a cocoapod

I have developed a small library and I want to create a Cocoapod for it. the problem is whenever I run script pod spec lint xxx.podspec --verbose --no-clean --use-libraries I got

  • ERROR | [iOS] unknown: Encountered an unknown error (Pods written in Swift can only be integrated as frameworks; add use_frameworks! to your Podfile or target to opt into using it. The Swift Pod being used is: Socialite) during validation.

I am making the lib using pod lib create xxx

Upvotes: 1

Views: 633

Answers (1)

orta
orta

Reputation: 4295

You cannot use --use-libraries with a Swift pod, as they have to be frameworks. If you remove that - it will run the linter.

Upvotes: 1

Related Questions