-
Notifications
You must be signed in to change notification settings - Fork 9
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
[iOS] release build fails #8
Comments
That's odd as
You may also be running into an iOS version mismatch. Make sure you've specified version 9.0 or later. If you still have trouble, try building inside of Xcode to see if you get more information in the build output. |
You also may have run into this issue if you've updated Xcode recently: https://stackoverflow.com/questions/63607158/xcode-12-building-for-ios-simulator-but-linking-in-an-object-file-built-for-io |
Thank you for your quick answer. Target and minimum iOS version are set to 10.0. It's the same if I compile for generic device or for my iPhone 6S. I've tested to exclude architecures, to use "Validate Workspace" as the link your provided suggest, doesn't change the error. Any other idea ? |
I just published version 2.2.3, which excludes the arm64 architecture for the simulator. You may need to delete your Podfile.lock and run |
1 similar comment
I just published version 2.2.3, which excludes the arm64 architecture for the simulator. You may need to delete your Podfile.lock and run |
Just to let you know, I'm still working on this. |
I've tried for hours to get this working in the example app, but no luck so far. It works in an app I'm developing, and here are the build setting differences in project.pbxproj for the Release build (working version on left side):
I've set pretty much everything I can the same in the target and runner settings, but still no go. :( |
I've tested the last version 2.2.3 with Flutter 2.5.2, same issue unfortunately. |
Did you find time to search more ? |
Hi @jda258 , I'm having the exact same problem as @Nico04.
I'm starting to wonder if creating a package with flutter tools from scratch and copy pasting files would solve this ? I hope my contribution can help in a way. |
I've spent some few hour this morning trying to start from a fresh project and copy sources into. |
Thanks for your work on this @Nico04! That fork looks very promising. It hasn't been released on CocoaPods, so we'd have to include the code in our repo. |
Any update on this issue? |
@Nico04 Have you been able to address the issue with the form you shared above? |
I've spent few hours trying to find a fix. I found several leads, that I've shared above, but I've stopped trying. |
In the end I've used dartssh2 package instead, works perfectly |
Thank you for the suggestion @Nico04 |
I was able to solve temporarily by adding to pods GZ-NMSSH and ssh2 the following: |
I've just migrated from ssh to ssh2.
App works fine on Android (debug and release), and on iOS in debug mode, but it doens't build in release mode.
flutter build ios
orflutter build ipa
fails :It's the same error on my mac and on my CI/CD.
Note that
flutter run --release
works fine.I'm using Flutter 2.5.1 with null-safety.
Any idea ?
The text was updated successfully, but these errors were encountered: