JackAppDev / flutter_iap

Flutter iap plugin
MIT License
100 stars 15 forks source link

Error building iOS - fatal error: 'flutter_iap/flutter_iap-Swift.h' file not found #10

Closed ItsCalebJones closed 6 years ago

ItsCalebJones commented 6 years ago

Hey there, not sure what the build issue is other then obviously its looking for a file that doesn't exist. Any help looking into this? Not much experience with iOS here.

Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    === BUILD TARGET firebase_messaging OF PROJECT Pods WITH CONFIGURATION Debug ===
    /Users/******/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_iap-1.1.0/ios/Classes/FlutterIapPlugin.m:2:9: fatal error: 'flutter_iap/flutter_iap-Swift.h' file not found
    #import <flutter_iap/flutter_iap-Swift.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
Could not build the application for the simulator.
Error launching application on iPhone X.

Link to the project: https://github.com/ItsCalebJones/spacelaunchnow_flutter

ItsCalebJones commented 6 years ago

Figured it out - due to using map_view I removed 'use_framework!' from my Podfile. Adding that back in fixed it...