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

MacOS | flet build with flet >= 0.25.x works but app gives only a blank page... #4678

Open
1 task done
NiTRoeSE opened this issue Jan 9, 2025 · 2 comments
Open
1 task done

Comments

@NiTRoeSE
Copy link

NiTRoeSE commented Jan 9, 2025

Duplicate Check

Describe the bug

Building flet project via flet build on macOS with flet version higher than 0.24.1 builds the app successful but the app shows only a blank page.
Build process don't show any errors, builded app don't show any errors, only a blank page.

If i start the project with flet run it works without problems even with flet version higher than 0.24.1 ( 0.25.2)
If i downgrade flet to 0.24.1 and build the same project it works normally.

I use flutter 3.24.5.

Code sample

...

To reproduce

...

Expected behavior

Builded app with flet version higher than 0.24.1 works and don't show a blank page only.

Screenshots / Videos

Captures

[Upload media here]

Operating System

macOS

Operating system details

macos 15.2

Flet version

0.25.0, 0.25.1, 0.25.2

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

Logs
[15:08:22] No additional Flutter dependencies!                                                                                                                                                                                                                                                                      
[15:08:23] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref 0.25.0 ✅                                                                                                                                                                                                                
           Copying /Users/nitro/Medialyse-Git/scriptrunner_flet/assets/icon.png to /Users/nitro/Medialyse-Git/scriptrunner_flet/build/flutter/images                                                                                                                                                                
           Copying /Users/nitro/Medialyse-Git/scriptrunner_flet/assets/splash.png to /Users/nitro/Medialyse-Git/scriptrunner_flet/build/flutter/images                                                                                                                                                              
           Copying /Users/nitro/Medialyse-Git/scriptrunner_flet/assets/splash_web.png to /Users/nitro/Medialyse-Git/scriptrunner_flet/build/flutter/images                                                                                                                                                          
           Customized app icons and splash images ✅                                                                                                                                                                                                                                                                
           Run subprocess: ['/Users/nitro/Documents/flutter/bin/dart', 'run', 'flutter_launcher_icons']                                                                                                                                                                                                             
(   ●  ) Generating app icons ⏳... The Dart CLI developer tool uses Google Analytics to report usage and diagnostic
data along with package dependencies, and crash reporting to send basic crash
reports. This data is used to help improve the Dart platform, Flutter framework,
and related tools.

Telemetry is not sent on the very first run. To disable reporting of telemetry,
run this terminal command:

    dart --disable-analytics

If you opt out of telemetry, an opt-out event will be sent, and then no further
information will be sent. This data is collected in accordance with the Google
Privacy Policy (https://policies.google.com/privacy).

(    ● ) Generating app icons ⏳... 
Downloading packages... 
Got dependencies in `/Users/nitro/Medialyse-Git/scriptrunner_flet/build/flutter`.
(   ●  ) Generating app icons ⏳... 
Built flutter_launcher_icons:flutter_launcher_icons.
(    ● ) Generating app icons ⏳...   ════════════════════════════════════════════
     FLUTTER LAUNCHER ICONS (v0.14.2)                               
  ════════════════════════════════════════════
  
• Creating default icons Android
(     ●) Generating app icons ⏳... • Overwriting the default Android launcher icon with a new icon
• Creating adaptive icons Android
(   ●  ) Generating app icons ⏳... • No colors.xml file found in your Android project
• Creating colors.xml file and adding it to your Android project
• Creating mipmap xml file Android
(  ●   ) Generating app icons ⏳... • Overwriting default iOS launcher icon with new icon
(    ● ) Generating app icons ⏳...done
(     ●) Generating app icons ⏳...done
(  ●   ) Generating app icons ⏳...done

✓ Successfully generated launcher icons
[15:08:26] Generated app icons ✅                                                                                                                                                                                                                                                                                   
           Run subprocess: ['/Users/nitro/Documents/flutter/bin/dart', 'run', 'serious_python:main', 'package', '/Users/nitro/Medialyse-Git/scriptrunner_flet', '--platform', 'Darwin', '--requirements', '-r,/Users/nitro/Medialyse-Git/scriptrunner_flet/requirements.txt', '--exclude', 'build', '--cleanup']    
(  ●   ) Packaging Python app ⏳... 
Built serious_python:main.
(   ●  ) Packaging Python app ⏳... Running package command
Extra PyPi indexes: [https://pypi.flet.dev]
Creating asset directory: /Users/nitro/Medialyse-Git/scriptrunner_flet/build/flutter/app
Created temp directory: /var/folders/vk/q9ns7_017kv95sr31w26dzpr0000gn/T/serious_python_tempkraqPh
Copying Python app from /Users/nitro/Medialyse-Git/scriptrunner_flet to a temp directory
(  ●   ) Packaging Python app ⏳... Cleanup app
(●     ) Packaging Python app ⏳... Configured Darwin/arm64 platform with sitecustomize.py
Installing [-r, /Users/nitro/Medialyse-Git/scriptrunner_flet/requirements.txt] with pip command to /var/folders/vk/q9ns7_017kv95sr31w26dzpr0000gn/T/serious_python_tempkraqPh/__pypackages__/arm64
Downloading Python distributive from https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.12.6+20240909-aarch64-apple-darwin-install_only_stripped.tar.gz to a build directory
(  ●   ) Packaging Python app ⏳... Extracting Python distributive
( ●    ) Packaging Python app ⏳... Cleanup installed packages
(●     ) Packaging Python app ⏳... Configured Darwin/x86_64 platform with sitecustomize.py
Installing [-r, /Users/nitro/Medialyse-Git/scriptrunner_flet/requirements.txt] with pip command to /var/folders/vk/q9ns7_017kv95sr31w26dzpr0000gn/T/serious_python_tempkraqPh/__pypackages__/x86_64
(   ●  ) Packaging Python app ⏳... Cleanup installed packages
(    ● ) Packaging Python app ⏳... Merging macOS arm64 and x86_64 site-packages
(     ●) Packaging Python app ⏳... Merging completed successfully.
Creating app archive at /Users/nitro/Medialyse-Git/scriptrunner_flet/build/flutter/app/app.zip from a temp directory
( ●    ) Packaging Python app ⏳... Writing app archive hash to /Users/nitro/Medialyse-Git/scriptrunner_flet/build/flutter/app/app.zip.hash
(    ● ) Packaging Python app ⏳... Deleting temp directory
[15:08:58] Packaged Python app ✅                                                                                                                                                                                                                                                                                   
           Run subprocess: ['/Users/nitro/Documents/flutter/bin/flutter', 'build', 'macos', '--build-name', '0.6.0']                                                                                                                                                                                                
(   ●  ) Building macOS bundle ⏳... 
Downloading packages... 
(     ●) Building macOS bundle ⏳...   archive 3.6.1 (4.0.2 available)
  characters 1.3.0 (1.4.0 available)
  clock 1.1.1 (1.1.2 available)
  collection 1.18.0 (1.19.1 available)
  fl_chart 0.69.2 (0.70.1 available)
  flet 0.25.1 (0.25.2 available)
  flutter_lints 2.0.3 (5.0.0 available)
  http_parser 4.0.2 (4.1.2 available)
  image 4.3.0 (4.5.2 available)
  intl 0.19.0 (0.20.1 available)
  js 0.6.7 (0.7.1 available)
  lints 2.1.1 (5.1.1 available)
  material_color_utilities 0.11.1 (0.12.0 available)
  meta 1.15.0 (1.16.0 available)
  path 1.9.0 (1.9.1 available)
  sensors_plus 4.0.2 (6.1.1 available)
  sensors_plus_platform_interface 1.2.0 (2.0.1 available)
  serious_python 0.8.2 (0.8.7 available)
  shelf 1.4.1 (1.4.2 available)
  toml 0.15.0 (0.16.0 available)
  url_strategy 0.2.0 (discontinued)
! wakelock_plus 1.2.10 (overridden)
! web 1.1.0 (overridden)
  web_socket_channel 2.4.5 (3.0.1 available)
! window_manager 0.4.3 (overridden)
Got dependencies!
1 package is discontinued.
22 packages have newer versions incompatible with dependency constraints.
(    ● ) Building macOS bundle ⏳... Try `flutter pub outdated` for more information.
( ●    ) Building macOS bundle ⏳... 
Updating project for Xcode compatibility.
Upgrading project.pbxproj
Upgrading Runner.xcscheme
(●     ) Building macOS bundle ⏳... macos/Runner/AppDelegate.swift uses the deprecated @NSApplicationMain attribute, updating.
(    ● ) Building macOS bundl    3,9s
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006041-000A30800280801C, name:My Mac }
{ platform:macOS, arch:x86_64, id:00006041-000A30800280801C, name:My Mac }
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')
Building macOS application...                                           
✓ Built build/macos/Build/Products/Release/Scriptrunner.app (286.5MB)
[15:10:02] Built macOS bundle ✅                                                                                                                                                                                                                                                                                    
           Copying build output from: /Users/nitro/Medialyse-Git/scriptrunner_flet/build/flutter/build/macos/Build/Products/Release/Scriptrunner.app                                                                                                                                                                
           Copied build to build/macos directory ✅                                                                                                                                                                                                                                                                 
           Successfully built your macOS bundle! 🥳 Find it in build/macos directory.

Additional details

0.24.1

@NiTRoeSE NiTRoeSE changed the title MacOS | flet build with flet <= 0.25.x works but app gives only a blank page... MacOS | flet build with flet >= 0.25.x works but app gives only a blank page... Jan 9, 2025
@ndonkoHenri
Copy link
Contributor

With a hello-world application too?

@HappyCoder256
Copy link

Bro you're not alone. I thought am only one with that problem. For me i built it for android but on android 10, it wrks perfectly but on android 6, it shows a blank white screen basing on the system theme.

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

3 participants