-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
DeepSpeech iOS Compile Error in XCode 12.4 #3525
Comments
That's actually not a quick fix |
I have no idea where to do that. @reuben maybe? |
@erksch I added that to the framework's build settings in Xcode a while ago and it started working for me. If you want, you can download the framework from my repo here. However, the framework crashes completely on iOS when files are too long. I've been trying to fix the issue and provide information here, but the devs haven't commented on this significant issue in nearly a month in a half. I proposed a potential fix in the most recent comment, but it isn't quite working so I haven't opened a PR yet. Would you be willing to take a look at it? |
You should make a PR then. |
I would, but I don’t know whether the Xcode GUI settings interact with your build system or if I have to modify some script somewhere. |
And I have no idea where this needs to be applied: env variable, config? Please open a PR, we can help you, it's better than letting issues like that lay around. |
All of the ios stuff is within https://github.com/mozilla/DeepSpeech/tree/master/native_client/swift and building is drived by https://github.com/mozilla/DeepSpeech/blob/master/taskcluster/ios-build.sh |
Maybe I misunderstood how PRs work? I thought I’m only supposed to open one when I’ve built the feature/fix (like I did when I submitted the last commit changes to that Swift folder you linked to). What’s it supposed to look like when there is no change yet? If I’m not misunderstanding you I’ll definitely submit it, but it’s 4:30am here (I wanted to see if I could catch Reuben while he was awake/online for the other issue) so I’ll do it tomorrow. |
We can discuss on this issue, and then you can open the PR, for example. But I really really hate it if you know a fix, and we have other people facing an issue than can be solved by that fix.
I guess you should be sleeping :)
Reuben and myself are on the same timezone, and it's 10:47 now, but I know he's working on other things and I'm unsure he has time in the next hours / days to look at that. But when he can, I know he will look at it, no worries. It's not we don't care, it's just we lack of time (and we still have to babysit the macOS CI infra, which is painful ...) |
Our CI simply calls |
Fixed in #3527 |
Or just download it here and drop it in: https://community-tc.services.mozilla.com/tasks/DoV-Ms9WRNKXsC_1yTPBxA |
Yes, but PRs artifact expires after seven days, merges artifacts expires after a bit more, but quite quickly. |
Whatever's easiest. A new alpha would probably be fine as afaik there haven't been any breaking changes for a while now. If not, I can make the changes again and resubmit tomorrow. |
Just came back to this and saw that there are no artifacts from the task cluster that have run the |
Taskcluster has been decommissioned, you would need to add github actions support for iOS bindings. |
Hey there!
I am currently integrating the DeepSpeech iOS framework into an App.
I downloaded the ios framework from task cluster on tag 0.9.3.
With XCode 12.4 and swift 5.3.2 I am getting the following compile error:
Here are some issues / resources on that
https://stackoverflow.com/questions/58654714/module-compiled-with-swift-5-1-cannot-be-imported-by-the-swift-5-1-2-compiler
aws-amplify/aws-sdk-ios#2365 (Similar issue for AWS SDK)
I guess a quick fix would be to update the XCode in CI that builds the releases to 12.4.
Other sources suggest adding the flag
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
in the build process.The text was updated successfully, but these errors were encountered: