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

[iOS] [super_drag_and_drop] Build Failure: Unknown Argument '-arch arm64' Error in iOS Simulator #166

Closed
SiyrisSoul opened this issue Aug 5, 2023 · 3 comments · Fixed by #170

Comments

@SiyrisSoul
Copy link

Environment

  • Flutter version: 3.10.6
  • Flutter channel: Stable
  • Dart version: 3.0.6
  • super_drag_and_drop version: v0.5.0
  • Operating system: macOS 13.5 (M2 - Silicone)
  • Xcode version: Xcode 15 - Beta 4
  • Simulator/Device: Any iPhone Simulator (Note: Physical devices are working fine)
  • iOS Version: 16.4 & 17.0

Description

After rerunning the app in the iPhone 14 Pro Max simulator, I encountered an unknown argument error -arch arm64 that causes the build to fail. The issue persisted even after reverting all code to the last known working state.

Notably, the error seems to point to a failure in running a custom build command for oslog v0.2.0. As a workaround, removing the super_native_extensions package allows the app to build successfully.

I'm currently on the latest stable version of Flutter but have also tried the beta channel. Both branches of the super_native_extensions package were tested with no success in resolving the issue.

Steps to Reproduce

  1. Add super_drag_and_drop to pub spec.yaml
  2. Run the app on iPhone Simulator

Error Output

Launching lib/main.dart on iPhone 14 Pro Max in debug mode...
main.dart:1
Xcode build done. 10.0s
Failed to build iOS app
Error (Xcode): unknown argument: '-arch arm64'

Error (Xcode): failed to run custom build command for oslog v0.2.0

Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.
Exited

Attempted Solutions

  • Reverted all code to last working state
  • Switched to the beta version of Flutter
  • Tested both branches of super_native_extensions
  • Removed super_native_extensions package (successful build but not a viable solution)

Any insights or solutions to resolve this issue would be greatly appreciated. Thank you!

@SiyrisSoul
Copy link
Author

Turns out using Xcode 14 also works. So that is definitely a viable solution for now but I am very curious why it was previously working fine in Xcode 15.

@knopp
Copy link
Collaborator

knopp commented Aug 5, 2023

Can you provide verbose build logs?

@knopp
Copy link
Collaborator

knopp commented Aug 7, 2023

Fixed in cc-rs via rust-lang/cc-rs#759

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

Successfully merging a pull request may close this issue.

2 participants