lubritto / flutter_share

A Flutter plugin for IOS and Android providing a simple way to share a message, link or local files.
MIT License
42 stars 50 forks source link

XCode build failed #2

Closed wwwdata closed 6 years ago

wwwdata commented 6 years ago

Hi, it seems there is a swift header file missing? My XCode build fails with the following output. Using version 0.0.4

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

Xcode's output:
↳
    === BUILD TARGET sqflite OF PROJECT Pods WITH CONFIGURATION Debug ===
    /Users/benbieker/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_share-0.0.4/ios/Classes/FlutterSharePlugin.m:2:9: fatal error: 'flutter_share/flutter_share-Swift.h' file not found
    #import <flutter_share/flutter_share-Swift.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
wwwdata commented 6 years ago

What I also don't understand right now is why it fails when building the sqflite package.

lubritto commented 6 years ago

try add use_frameworks! to your podfile

wwwdata commented 6 years ago

Thx, that fixed it for me! Maybe you should add that to the readme/docs of this package.