esysberlin / esys-flutter-share

A Flutter plugin for sharing files & text with other applications.
Apache License 2.0
130 stars 147 forks source link

Cannot build with Xcode 10 #14

Closed mayqiyue closed 5 years ago

mayqiyue commented 5 years ago

fatal error: 'esys_flutter_share/esys_flutter_share-Swift.h' file not found

import <esys_flutter_share/esys_flutter_share-Swift.h>

        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
atereshkov commented 5 years ago

Same issue here. @mayqiyue have you find the solution?

mayqiyue commented 5 years ago

nope, and i had choosen another plugin

Alexander Tereshkov notifications@github.com 于 2019年2月22日周五 22:44写道:

Same issue here. @mayqiyue https://github.com/mayqiyue have you find the solution?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/esysberlin/esys-flutter-share/issues/14#issuecomment-466420294, or mute the thread https://github.com/notifications/unsubscribe-auth/AGGcV9XxMaD_UQfL1DELd1kTercW_BhZks5vQAJhgaJpZM4bAejs .

atereshkov commented 5 years ago

I found the solution. Maybe will be helpful for someone:

  1. Generate new flutter app with swift template using flutter create -i swift my_app
  2. Copy AppDelegate.swift file
  3. Remove AppDelegate.m and AppDelegate.h files
  4. Add in your Podfile use_frameworks!
  5. Remove Runner/main.m file
  6. Add Runner-Briding-Header.h file
  7. Remove libPods-Runner.a from Project settings -> General -> Embedded Binaries and from Linked Frameworks as well
  8. Add Pods_runner in Linked Frameworks

And it should be okay, otherwise just copy the "ios" folder from newly generated project and replace it with "ios" folder in your project.

atereshkov commented 5 years ago

@mayqiyue by the way, which plugin are you using?

gustavobrian commented 5 years ago

Not not work!!! Any app get firebase_messaging and firebase_messaging requiered: Remove the use_frameworks! line from ios/Podfile (workaround for flutter/flutter#9694).

And this plug in: Add in your Podfile use_frameworks!

My every packages work witch out use_frameworks in podfile, where fix this problem???

please help me to fix... and thanks for your work!!!

d-wolf commented 5 years ago

duplicate https://github.com/esysberlin/esys-flutter-share/issues/15