Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pods written in Swift can only be integrated as frameworks #1307

Closed
msalmanST opened this issue Sep 22, 2017 · 5 comments
Closed

Pods written in Swift can only be integrated as frameworks #1307

msalmanST opened this issue Sep 22, 2017 · 5 comments

Comments

@msalmanST
Copy link

"[!] Pods written in Swift can only be integrated as frameworks; add use_frameworks! to your Podfile or target to opt into using it."

This is the error I get when using Moya pod where my pod file does not contain "use_framework!"

Any workaround for the above issue ?

@msalmanST msalmanST changed the title Pods written in Swift can only be integrated as frameworks #2285 Pods written in Swift can only be integrated as frameworks Sep 22, 2017
@BasThomas
Copy link
Contributor

If you add Moya as a pod, you’ll need to add the use_frameworks! line in your Podfile. It’s required for all Swift frameworks.

@msalmanST
Copy link
Author

msalmanST commented Sep 22, 2017

Thanks for your quick response.
As per CocoaPods/CocoaPods#6811 are you guys thinking to give any such support in coming future ?

Edit: Sorry I mean to point CocoaPods/CocoaPods#6899

@BasThomas
Copy link
Contributor

Yes, probably. For now you’d have to stick with adding the use_frameworks! though.

@msalman
Copy link

msalman commented Mar 30, 2018

@BasThomas Any guidelines for me after the release of cocoapod version 1.5 beta

@sunshinejr
Copy link
Member

@msalman I didn't try the feature yet, but Artsy's eigen is already moved to static libraries, see artsy/eigen#2561, maybe it will help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants