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

'vibration/vibration-Swift.h' file not found #1

Closed
jaysson opened this issue Jan 14, 2019 · 9 comments
Closed

'vibration/vibration-Swift.h' file not found #1

jaysson opened this issue Jan 14, 2019 · 9 comments

Comments

@jaysson
Copy link

jaysson commented Jan 14, 2019

#import <vibration/vibration-Swift.h> in VibrationPlugin.m throws 'vibration/vibration-Swift.h' file not found when I try to build.

What am I missing?

@benjamindean
Copy link
Owner

Looks like your project doesn't have Swift support. Try to rebuild it with Swift support and build it again.

@jaysson
Copy link
Author

jaysson commented Jan 14, 2019

Project was created with swift support.

@c0h1b4
Copy link

c0h1b4 commented Jan 14, 2019

Same problem here. Any instructions to rebuild the project with Swift? Or is it possible to have an Objective-C version to work?

@benjamindean
Copy link
Owner

@jaysson @c0h1b4 Do you have a line use_frameworks! uncommented in your Podfile?

@jaysson
Copy link
Author

jaysson commented Jan 15, 2019 via email

@smande00
Copy link

I had the same issue but had to actually add use_frameworks! manually to the podfile.

@arpandesai
Copy link

@smande00 where did you add use_frameworks can you show me

@agueroveraalvaro
Copy link

Thanks! add use_frameworks and run pod install

@dark-chocolate
Copy link

@arpandesai You can add it on the top, like this:

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
use_frameworks!

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

No branches or pull requests

7 participants