benjamindean / flutter_vibration

Handle vibration on iOS and Android in Flutter apps
226 stars 69 forks source link

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

Closed jaysson closed 5 years ago

jaysson commented 5 years ago

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 commented 5 years ago

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

jaysson commented 5 years ago

Project was created with swift support.

c0h1b4 commented 5 years ago

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

benjamindean commented 5 years ago

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

jaysson commented 5 years ago

No, it is commented. Now I moved to just use HapticFeedback which is built in flutter, so can’t test immediately.

On 14-Jan-2019, at 10:06 PM, Benjamin Dean notifications@github.com<mailto:notifications@github.com> wrote:

@jayssonhttps://github.com/jaysson @c0h1b4https://github.com/c0h1b4 Do you have a line use_frameworks! uncommented in your Podfile?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/benjamindean/flutter_vibration/issues/1#issuecomment-454070869, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABfc1iYR5kIih2uWNl__kE5qP8zPUyvEks5vDLITgaJpZM4Z9xgw.

smande00 commented 5 years ago

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

arpandesai commented 5 years ago

@smande00 where did you add use_frameworks can you show me

agueroveraalvaro commented 4 years ago

Thanks! add use_frameworks and run pod install

dark-chocolate commented 4 years ago

@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!