Giter Site home page Giter Site logo

Comments (12)

tomkuschka avatar tomkuschka commented on June 14, 2024 1

Hey,
we have the same issue in our project. We are using Flutter add-to-existing-app.

@SergeShkurko regarding your comment:

  1. yes we have native_pdf_renderer installed as a dependency
    More specifically we have native_pdf_view (v2.1.1) as a dependency and native_pdf_renderer gets installed automatically
  2. We have the current version of native_pdf_renderer (v1.6.2)
  3. We have configured SWIFT LANGUAGE VERSION to Swift 5 inside of the Build Settings of our own iOS Project

Does anybody have a clue whats wrong there?

from packages.flutter.

matitalatina avatar matitalatina commented on June 14, 2024 1

I just fixed putting use_frameworks! in Podfile.

from packages.flutter.

SergeShkurko avatar SergeShkurko commented on June 14, 2024

@saqibcare

  1. Package [native_pdf_view] it should be installed as dependency, but not dev_dependency
  2. What version of the package?
  3. Do you have compilation swift 5 configured? (#3)

from packages.flutter.

SergeShkurko avatar SergeShkurko commented on June 14, 2024

@saqibcare any news?

from packages.flutter.

SergeShkurko avatar SergeShkurko commented on June 14, 2024

@tomkuschka have tried run pod install & pod update in ios dir?

from packages.flutter.

tomkuschka avatar tomkuschka commented on June 14, 2024

@SergeShkurko Yes we have tried. On pod install it seems like the wrong versions gets installed
And on pod update nothing happens…

Downloading dependencies
Installing FlutterPluginRegistrant 0.0.1
Installing native_pdf_renderer (1.0.0)
Generating Pods project
Integrating client project
Adding Acknowledgements
Pod installation complete! There are 67 dependencies from the Podfile and 92 total pods installed.```

from packages.flutter.

SergeShkurko avatar SergeShkurko commented on June 14, 2024

@tomkuschka I had an idea what could be the problem.

last lines from your xcode build error:

    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 6.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'Reachability' from project 'Pods')
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'FMDB' from project 'Pods')

it seems that xcode cannot normally determine the minimum version of ios to build
you can set it in /ios/Podfile
platform :ios, '8.0'

image

from packages.flutter.

arkadask avatar arkadask commented on June 14, 2024

On file NativePDFRendererPlugin.m can you replace the line
#import <native_pdf_renderer/native_pdf_renderer-Swift.h>
with the following
#if __has_include(<native_pdf_renderer/native_pdf_renderer-Swift.h>)
#import <native_pdf_renderer/native_pdf_renderer-Swift.h>
#else
// Support project import fallback if the generated compatibility header
// is not copied when this plugin is created as a library.
// https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816
#import "native_pdf_renderer-Swift.h"
#endif

from packages.flutter.

jazzbpn avatar jazzbpn commented on June 14, 2024

I just fixed putting use_frameworks! in Podfile.

Do not work for me. Is there anything I missed? Help me please !!

Screen Shot 2020-05-21 at 20 11 07

Screen Shot 2020-05-21 at 20 11 59

from packages.flutter.

SergeShkurko avatar SergeShkurko commented on June 14, 2024

@jazzbpn try run pod update in ios dir

from packages.flutter.

mnc12004 avatar mnc12004 commented on June 14, 2024

I understand this is an old thread, However, I had the very same issue, but when I added use_frameworks! and uncommented the line above, the app built out ok.

Needless to say, I had spent a few hours tracking the issue and even deleted the ios folder, which now seems to be an extreme step.

Thanks to this thread though, the problem is resolved and I can move onto the next one (when it arrives).

from packages.flutter.

SergeShkurko avatar SergeShkurko commented on June 14, 2024

i find resolve for issue: 4bf3a1a#diff-e0ed43e59738eb60fb8bb95deb1c3ecaed9f72dd87f2fa4c61cba76334761119R2

publisher in native_pdf_renderer v2.4.0 & native_pdf_view v3.9.0

from packages.flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.