Mickael Belhassen
Mickael Belhassen

Reputation: 3352

Swift: How to link pod to my own framework

I was trying to create a framework that uses a pod, when I run the command pod lib lint to validate my .podspec file i get:

ERROR | [iOS] xcodebuild: /Users//Desktop/Developer///Models/.swift:8:8: error: no such module 'SwiftyUserDefaults'

How to link a pod to my framework

I get a warning too I think it's because my repository is private so I'm reading a tutorial, but I also get another error I do not know what it means:

ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use --verbose for more information.

What is?

Ir the full message:

- WARN  | url: The URL (https://github.com/*/*) is not reachable.
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
- NOTE  | xcodebuild:  note: Using new build system
- NOTE  | [iOS] xcodebuild:  note: Planning build
- NOTE  | [iOS] xcodebuild:  note: Constructing build description
- ERROR | [iOS] xcodebuild:  /Users/*/Desktop/Developer/*/*/Models/EMConnectedPeripheral.swift:8:8: error: no such module 'SwiftyUserDefaults'

Upvotes: 1

Views: 243

Answers (1)

Alon Shlider
Alon Shlider

Reputation: 1298

Add in the .podspec file: spec.dependency 'NameOfDependency'

Upvotes: 3

Related Questions