sgr-ksmt / PDFGenerator

A simple generator of PDF written in Swift.
MIT License
755 stars 110 forks source link

Crash when running the app #91

Closed nico75005 closed 6 years ago

nico75005 commented 6 years ago

I installed the latest (2.1) Swift 4 version and whether it is with the Demo app or with my app, it crashes as soon as it starts.

The crash logs with the Demo app are:

dyld: Library not loaded: @rpath/PDFGenerator.framework/PDFGenerator
  Referenced from: /var/containers/Bundle/Application/21494070-6883-43BC-BFB3-00DAB2F35FC1/Demo.app/Demo
  Reason: image not found

Those with my app:

dyld: Library not loaded: @rpath/PDFGenerator.framework/PDFGenerator
  Referenced from: /var/containers/Bundle/Application/6BC140DB-9DDA-4580-913F-C1B63F0791E6/MyApp.app/MyApp
  Reason: no suitable image found.  Did find:
    /private/var/containers/Bundle/Application/6BC140DB-9DDA-4580-913F-C1B63F0791E6/MyApp.app/Frameworks/PDFGenerator.framework/PDFGenerator: required code signature missing for '/private/var/containers/Bundle/Application/6BC140DB-9DDA-4580-913F-C1B63F0791E6/MyApp.app/Frameworks/PDFGenerator.framework/PDFGenerator'

    /private/var/containers/Bundle/Application/6BC140DB-9DDA-4580-913F-C1B63F0791E6/MyApp.app/Frameworks/PDFGenerator.framework/PDFGenerator: required code signature missing for '/private/var/containers/Bundle/Application/6BC140DB-9DDA-4580-913F-C1B63F0791E6/MyApp.app/Frameworks/PDFGenerator.framework/PDFGenerator'

    /private/var/containers/Bundle/Application/6BC140DB-9DDA-4580-913F-C1B63F0791E6/MyApp.app/Frameworks/PDFGenerator.framework/PDFGenerator: required code signature missing for '/private/var/containers/Bundle/Application/6BC140DB-9DDA-4580-913F-C1B63F0791E6/MyApp.app/Frameworks/PDFGenerator.framework/PDFGenerator'

Message from debugger: Terminated due to signal 6

I'm not even calling any code from the library and I get this crashes.

Any idea why?

markdavo commented 6 years ago

Hi Nico, I'm getting the same issue. How did you resolve it?

nico75005 commented 6 years ago

Sorry Mark I can't really help you I don't remember how I did and ended up using another library instead.

markdavo commented 6 years ago

I found the solution here: https://stackoverflow.com/questions/24333981/ios-app-with-framework-crashed-on-device-dyld-library-not-loaded-xcode-6-beta