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

Failing builds for custom dist on arm64 iOS simulator #103

Open
chabad360 opened this issue Jul 21, 2024 · 3 comments
Open

Failing builds for custom dist on arm64 iOS simulator #103

chabad360 opened this issue Jul 21, 2024 · 3 comments

Comments

@chabad360
Copy link

When trying to run for iOS, it fails to build with the following error:

NY792:front_end user265210$ flutter run
Launching lib/main.dart on iPhone 15 Pro in debug mode...
Running Xcode build...                                                  
Xcode build done.                                            6.2s
Failed to build iOS app
Swift Compiler Error (Xcode): No such module 'Python'
/Users/user265210/.pub-cache/hosted/pub.dev/serious_python_darwin-0.7.1/darwin/Classes/SeriousPythonPlugin.swift:7:7


Could not build the application for the simulator.
Error launching application on iPhone 15 Pro.
@chabad360
Copy link
Author

Upon some further testing, it seems this is only an issue if I set SERIOUS_PYTHON_IOS_DIST. If I leave it unset, the build succeeds, but I'm missing my dependencies (namely, pandas).

@chabad360
Copy link
Author

chabad360 commented Jul 24, 2024

Additionally, it seems to have something to do with building on an Apple Silicon mac. The release dist only includes xcframeworks for ios-x86_64-simulator not ios-arm64-simulator (or rather ios-arm64-x86_64-simulator), while building with Kivy on Apple Silicon, only produces arm64 items.

@chabad360 chabad360 changed the title Failing builds for iOS Failing builds for iOS simulator on Apple Silicon Jul 25, 2024
@chabad360 chabad360 changed the title Failing builds for iOS simulator on Apple Silicon Failing builds for custom dist on arm64 iOS simulator Jul 25, 2024
@chabad360
Copy link
Author

After further digging, it seems pretty clear that there is hard coded support for the x86_64 simulator and that is getting in the way of the arm64 one working. I can't figure out for the life of mine what needs to be changed (I looked in a lot of places), but at this point I properly give up.

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

1 participant