JackAppDev / flutter_iap

Flutter iap plugin
MIT License
100 stars 15 forks source link

flutter_iap-Swift.h not found #21

Open asoseil opened 6 years ago

asoseil commented 6 years ago

=== BUILD TARGET flutter_iap OF PROJECT Pods WITH CONFIGURATION Debug === /Users/asoseil/.pub-cache/hosted/pub.dartlang.org/flutter_iap-1.2.1/ios/Classes/FlutterIapPlugin.m:2:9: fatal error: 'flutter_iap/flutter_iap-Swift.h' file not found

import <flutter_iap/flutter_iap-Swift.h>

        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
asoseil commented 6 years ago

@JackAppDev any ideas? i'm on an empty project with only this lib.

alamboley commented 6 years ago

Hey @Asoseil you have to change your ios/Podfile with:

target 'Runner' do
  # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
  # referring to absolute paths on developers' machines.
  use_frameworks!
  system('rm -rf .symlinks')
  system('mkdir -p .symlinks/plugins')