Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestApp fails using TTS #277

Open
morismoris opened this issue Mar 10, 2023 · 9 comments
Open

TestApp fails using TTS #277

morismoris opened this issue Mar 10, 2023 · 9 comments

Comments

@morismoris
Copy link

Bug Report

Opening a book that has a graphic cover and starting the vocal reproduction the TestApp (branch main) crashes.

What happened?

The Locator crash with fatal error "Highlight is nil"

public subscript<R>(range: R) -> Text where R : RangeExpression, R.Bound == String.Index {
            guard let highlight = highlight else {
                preconditionFailure("highlight is nil")    <----- !!!
            }

Expected behavior

Jump to the first page of text

How to reproduce?

  1. Download the book "Moby-Dick" from OPDS 2.0 Test Catalog
  2. Open it
  3. Start the voice playback.

Environment

  • Readium version: 2.4.0

Development environment

macOS: 13.2.1
platform: x86_64
carthage: 0.38.0
Xcode 14.2
Build version 14C18

Testing device

  • iOS version: 15.x
  • Model (e.g. iPhone 11 Pro Max): iPhone 7
  • Is it an emulator? No

Additional context

@mickael-menu
Copy link
Member

I could reproduce the issue from main, but this seems to be fixed in develop already. Would you mind confirming?

@morismoris
Copy link
Author

I downloaded a totally new environment from develop but on this branch I can't build.
I make the TestApp project with make spm and I got ‘No such module ‘ReadiumAdapterGCDWebServer’ on CBZViewController.swift at line 17.

@mickael-menu
Copy link
Member

make spm uses the last released version. Building from develop, you should use make dev instead.

However, I think this should work too: make spm commit=develop.

Screenshot 2023-03-13 at 15 41 09

@morismoris
Copy link
Author

Thank you!! Ok I can confirm that on develop the problem does not occur.

Will you release a fix for Readium 2.4.0 or we should wait and then move to Readium 2.5.0 ?

@mickael-menu
Copy link
Member

You will need to wait for 2.5.0, which should be released in about 2 weeks.

@vlkpa
Copy link

vlkpa commented Apr 15, 2024

I downloaded a totally new environment from develop but on this branch I can't build. I make the TestApp project with make spm and I got ‘No such module ‘ReadiumAdapterGCDWebServer’ on CBZViewController.swift at line 17.

When I try to build project with CocaPods I have a similar problem ‘No such module ‘ReadiumAdapterGCDWebServer’ after migrating to version 2.7.0 from version 2.4.0 even with this pods is Podfile:

pod 'ReadiumAdapterGCDWebServer', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/2.7.0/Support/CocoaPods/ReadiumAdapterGCDWebServer.podspec'
pod 'ReadiumGCDWebServer', podspec: 'https://raw.githubusercontent.com/readium/GCDWebServer/master/GCDWebServer.podspec'

Is there a workaround?

@mickael-menu
Copy link
Member

Do you have any error when doing pod install? Do you see the ReadiumAdapterGCDWebServer library in the Pods of the project? Are you able to build the ReadiumAdapterGCDWebServer scheme?

@vlkpa
Copy link

vlkpa commented Apr 15, 2024

Do you have any error when doing pod install? Do you see the ReadiumAdapterGCDWebServer library in the Pods of the project? Are you able to build the ReadiumAdapterGCDWebServer scheme?

No pod install runs without error. Yes I can see ReadiumAdapterGCDWebServer in Pods of the project but I can't navigate to ReadiumAdapterGCDWebServer sources in Xcode (cmd + click on import ReadiumAdapterGCDWebServer). I tried clean and reinstall Pods but without success. I'm able to build project when I comment import ReadiumAdapterGCDWebServer. Do you have any suggestions? Thank you for your help/time/efforts.

@mickael-menu
Copy link
Member

Could you share your whole Podfile?

You can try this to see if you can build the ReadiumAdapterGCDWebServer from your Pods.

Screen.Recording.2024-04-16.at.17.04.58.mov

I just checked using the Test App and it builds fine with CocoaPods. There must be an issue in your configuration or cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants