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

Problem running on iOS #53

Open
SaxPlayer opened this issue Feb 7, 2025 · 5 comments
Open

Problem running on iOS #53

SaxPlayer opened this issue Feb 7, 2025 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@SaxPlayer
Copy link

I copied the example app including all the supplied assets with a view to trying this out before developing my own app however the example won't run at all and throws the following error:

Launching lib/main.dart on Dalziel in debug mode...
Developer identity ****************** selected for iOS code signing
Xcode build done.                                            9.7s
Failed to build iOS app
Could not build the precompiled application for the device.
Error (Xcode): /Users/**********/pub-cache/hosted/pub.dev/flutter_3d_controller-2.1.0/lib/src/utils/extensions.dart:5:25: Error: The getter 'a' isn't defined for the class 'Color'.

Error launching application on Dalziel.

Exited (1).

Code is exactly as it is in the example folder, no changes made.

Flutter doctor:

[✓] Flutter (Channel stable, 3.24.5, on macOS 15.2 24C101 darwin-arm64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.96.3)
[✓] Connected device (5 available)
[✓] Network resources

Running on my device, an iPhone 15 Pro Max running iOS 18.2

@cleexiang
Copy link

same error, help

@m-r-davari
Copy link
Owner

The example and package works fine, please consider updating your Flutter SDK (version>=3.27.1) or just use version v2.0.3 of the package, thanks for reporting I will update min sdk version of the package.

Image

@m-r-davari m-r-davari self-assigned this Feb 11, 2025
@m-r-davari m-r-davari added the question Further information is requested label Feb 11, 2025
@SaxPlayer
Copy link
Author

Thanks for the advice. Updated the min SDK in pubspec.yaml and ran flutter upgrade. Now see the following error:

The current Dart SDK version is 3.6.2.

Because example requires SDK version >=3.27.1 <4.0.0, version solving failed.
Failed to update packages.

flutter doctor:

[✓] Flutter (Channel stable, 3.27.4, on macOS 15.3 24D60 darwin-arm64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.97.0)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!

@rockingdice
Copy link

@SaxPlayer you should upgrade flutter too. Only modifying the sdk version in the pubspec is not sufficient. your local flutter is still an old version. Try to use fvm to manage different flutter versions.
https://fvm.app/documentation/getting-started/installation

@m-r-davari
Copy link
Owner

@SaxPlayer you don't need to change the min sdk in package yaml, just upgrade your flutter SDK to lates version

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

No branches or pull requests

4 participants