JideGuru / epub_viewer

An epub reader for Flutter. Wrapped around Folioreader.(WIP)
https://pub.dev/packages/epub_viewer
Apache License 2.0
146 stars 80 forks source link

Failed to build ios app #28

Open soleysok opened 3 years ago

soleysok commented 3 years ago

Issue - failed to build ios app Platform (iOS) Describe in detail - I am using Xcode 12. I can not build my ios app. Below is the error that I got from Xcode:

Screen Shot 2020-09-29 at 11 37 51 AM

Undefined symbols for architecture x86_64: "_RLMRealmPathForFile", referenced from: default argument 0 of RealmSwift.Realm.Configuration.init(fileURL: Foundation.URL?, inMemoryIdentifier: Swift.String?, syncConfiguration: RealmSwift.SyncConfiguration?, encryptionKey: Foundation.Data?, readOnly: Swift.Bool, schemaVersion: Swift.UInt64, migrationBlock: (RealmSwift.Migration, Swift.UInt64) -> ()?, deleteRealmIfMigrationNeeded: Swift.Bool, shouldCompactOnLaunch: (Swift.Int, Swift.Int) -> Swift.Bool?, objectTypes: [RealmSwift.Object.Type]?) -> RealmSwift.Realm.Configuration in FolioReaderConfig.o "_OBJCCLASS$_RLMNotificationToken", referenced from: objc-class-ref in FolioReaderAddHighlightNote.o objc-class-ref in Highlight+Helper.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

JideGuru commented 3 years ago

This issue is caused by the Realm version. I am fixing this issue alongside #25

soleysok commented 3 years ago

Hi, now I manage to run the ios app just fine when I update my flutter to the beta version and add some config to the xcode, one problem though, the app still crashes when I open a pdf file instead of an epub file. On the other hand, on android both epub and pdf, the app crashes when open it.

JideGuru commented 3 years ago

The plugin does not support pdf. Can you give more insight as to how the crash happened on android?

soleysok commented 3 years ago

I have already created an issue with that(#29 ).

soleysok commented 3 years ago

Hi! Please help update to at least we can view the file but not letting the app crush like that, thanks!

On Thu, 1 Oct 2020 at 3:53 PM Festus Olusegun notifications@github.com wrote:

The plugin does not support pdf. Can you give more insight as to how the crash happened on android?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JideGuru/epub_viewer/issues/28#issuecomment-701991374, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK57FDS2HP3MFZPOHJ62ZJLSIQ7RDANCNFSM4R5JMIJA .

soleysok commented 3 years ago

HI! any updates on this issue yet? As for the new updated version that I have tested on ios, this issue still appears when I run the build using Xcode or run vscode. My solution was to run flutter clean than go to Xcode clean build after that run "flutter build ios" and go to Xcode again and run build. (I don't know how or why it works but sometimes it works sometime it doesn't and sometimes I need to repeat this process in order to successfully build the app)

JideGuru commented 3 years ago

I'm almost done with the fixes. i should publish a new version soon

soleysok commented 3 years ago

thanks man... I am really appreciated!

kapiltandukar commented 3 years ago

@soleysok is it working on your ios device ?