epub_viewer icon indicating copy to clipboard operation
epub_viewer copied to clipboard

Failed to build ios app

Open soleysok opened this issue 3 years ago • 9 comments

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 "OBJC_CLASS$_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)

soleysok avatar Sep 29 '20 04:09 soleysok

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

JideGuru avatar Sep 29 '20 08:09 JideGuru

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.

soleysok avatar Oct 01 '20 08:10 soleysok

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

JideGuru avatar Oct 01 '20 08:10 JideGuru

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

soleysok avatar Oct 01 '20 09:10 soleysok

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 [email protected] 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 avatar Oct 01 '20 10:10 soleysok

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)

soleysok avatar Oct 03 '20 03:10 soleysok

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

JideGuru avatar Oct 03 '20 11:10 JideGuru

thanks man... I am really appreciated!

soleysok avatar Oct 05 '20 02:10 soleysok

@soleysok is it working on your ios device ?

kapiltandukar avatar Oct 29 '20 03:10 kapiltandukar