· Flutterflow enthusiast

Local run / build fails on mac os issue + workaround

Troubleshooting

Hi,
I am using the 14 days "PRO" trial to evaluate further local build features of Flutterflow.

I cannot build my simple app (hello world like) as a mac os app.
The build fails when I use local run (Flutter doctor output is OK) with message :

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. 
/Users/Pascal/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/darwin/path_provider_foundation/Sources/path_provider_foundation/messages.g.swift:12:10: error: no such module 'FlutterMacOS'  import FlutterMacOS         ^ BUILD FAILED 

Running the project with XCode fails (opening the generated code with Xcode)

Running the project with the flutter command line works when I append the content of Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig into Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig

This is a workaround I can use use but it breaks the magic of the "Run local" feature. I don't have enough knowledge to understand if the issue is related to some configuration in the project or if it is an issue related to the code generation.

Any hint on a possible fix on my side ?
Or does this depend on a new Flutterflow release ?
Any hint on resolution time ? do we speak days ? weeks? months ?

Thanks
P.


Using


Mac OS Sequoia 15.1.1
XCode 16.1
Flutterflow : 5.0.13 (5.0.13)
Flutter doctor : green (full output below)

Flutter doctor full output:

[!] Flutter (Channel stable, 3.24.2, on macOS 15.1.1 24B91 darwin-arm64, locale en-CH)

• Flutter version 3.24.2 on channel stable at /Users/Pascal/Library/Application Support/io.flutterflow.prod.mac/flutter

! The flutter binary is not on your path. Consider adding /Users/Pascal/Library/Application Support/io.flutterflow.prod.mac/flutter/bin to your path.

! The dart binary is not on your path. Consider adding /Users/Pascal/Library/Application Support/io.flutterflow.prod.mac/flutter/bin to your path.

• Upstream repository https://github.com/flutter/flutter.git

• Framework revision 4cf269e36d (3 months ago), 2024-09-03 14:30:00 -0700

• Engine revision a6bd3f1de1

• Dart version 3.5.2

• DevTools version 2.37.2

• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✗] Android toolchain - develop for Android devices

✗ Unable to locate Android SDK.

Install Android Studio from: https://developer.android.com/studio/index.html

On first launch it will assist you in installing the Android SDK components.

(or visit https://flutter.dev/to/macos-android-setup for detailed instructions).

If the Android SDK has been installed to a custom location, please use

flutter config --android-sdk to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 16.1)

• Xcode at /Applications/Xcode.app/Contents/Developer

• Build 16B40

• CocoaPods version 1.16.2

[✓] Chrome - develop for the web

• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed)

• Android Studio not found; download from https://developer.android.com/studio/index.html

(or visit https://flutter.dev/to/macos-android-setup for detailed instructions).

[✓] VS Code (version 1.95.3)

• VS Code at /Applications/Visual Studio Code.app/Contents

• Flutter extension version 3.100.0

[✓] Connected device (3 available)

• macOS (desktop) • macos • darwin-arm64 • macOS 15.1.1 24B91 darwin-arm64

• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.1.1 24B91 darwin-arm64

• Chrome (web) • chrome • web-javascript • Google Chrome 131.0.6778.86

[✓] Network resources

• All expected network resources are available.

! Doctor found issues in 3 categories.

Build output

Updating local specs repositories

Analyzing dependencies

Downloading dependencies

Installing FlutterMacOS (1.0.0)

Installing path_provider_foundation (0.0.1)

Installing shared_preferences_foundation (0.0.1)

Installing sqflite (0.0.3)

Installing url_launcher_macos (0.0.1)

Installing webview_flutter_wkwebview (0.0.1)

Generating Pods project

Integrating client project

Pod installation complete! There are 6 dependencies from the Podfile and 6 total pods installed.

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target Runner to Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig or include the Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig in your build configuration (`Runner/Configs/AppInfo.xcconfig`).

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target Runner to Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig or include the Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig in your build configuration (`Runner/Configs/AppInfo.xcconfig`).

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target Runner to Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig or include the Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig in your build configuration (`Runner/Configs/AppInfo.xcconfig`).

Launching lib/main.dart on macOS in debug mode...

Updating minimum macOS deployment target to 10.14.

Upgrading project.pbxproj

Upgrading Podfile

Updating project for Xcode compatibility.

Upgrading project.pbxproj

Upgrading Runner.xcscheme

Removing script build phase dependency analysis.

Running pod install... 958ms

Building macOS application...

macos/Runner/AppDelegate.swift uses the deprecated @NSApplicationMain attribute, updating.

--- xcodebuild: WARNING: Using the first of multiple matching destinations:

{ platform:macOS, arch:arm64, id:00008103-001439D00E8A001E, name:My Mac }

{ platform:macOS, arch:x86_64, id:00008103-001439D00E8A001E, name:My Mac }

/Users/Pascal/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/darwin/path_provider_foundation/Sources/path_provider_foundation/messages.g.swift:12:10: error: no such module 'FlutterMacOS'

import FlutterMacOS

^

BUILD FAILED

What have you tried so far?

Possible workaround by merging local build files

Did you check FlutterFlow's Documentation for this topic?
Yes
1
2 replies