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

pod install error while building for macos #4636

Open
1 task done
SileboxUnderfined opened this issue Dec 28, 2024 · 0 comments
Open
1 task done

pod install error while building for macos #4636

SileboxUnderfined opened this issue Dec 28, 2024 · 0 comments

Comments

@SileboxUnderfined
Copy link

Duplicate Check

Describe the bug

While trying to execute flet build macos keeps happening error

Code sample

Code
[project]
name = "VinylFutureParser"
version = "2.4"
description = ""
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
  "flet==0.25.2",
  "requests~=2.32.3",
  "beautifulsoup4~=4.9.3",
  "lxml",
  "py2app",
  "gspread",
  "pyinstaller",
  "Pillow"
]


[tool.flet]
# org name in reverse domain name notation, e.g. "com.mycompany".
# Combined with project.name to build bundle ID for iOS and Android apps
org = "com.silebox"

# project display name that is used as an app title on Android and iOS home screens,
# shown in window titles and about app dialogs on desktop.
product = "andrew_parser_deargui"

# company name to display in about app dialogs
company = "Silent Box"

# copyright text to display in about app dialogs
copyright = "Copyright (C) 2024 by Silebox"

[tool.flet.app]
path = "src"

To reproduce

  1. flet create
  2. install dependencies (cocoapods, flutter 3.24.0)
  3. run flet build

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

macOS

Operating system details

macOS 15.0

Flet version

0.25.2

Regression

I'm not sure / I don't know

Suggestions

No response

Logs

Logs
(venv) silebox@MacBook-Air-Valerij andrew_parser_deargui % flet build macos --verbose
[14:14:32] No additional Flutter dependencies!                                                                                                                         
[14:14:34] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref 0.25.2 ✅                                                                   
           Copying /Users/silebox/Documents/Документы — MacBook Air — Валерий/progs/python/andrew_parser_deargui/src/assets/icon.png to                                
           /Users/silebox/Documents/Документы — MacBook Air — Валерий/progs/python/andrew_parser_deargui/build/flutter/images                                          
           Customized app icons and splash images ✅                                                                                                                   
           Run subprocess: ['/usr/local/flutter/bin/dart', 'run', 'flutter_launcher_icons']                                                                            
(●     ) 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
(  ●   ) Generating app icons ⏳... • Creating adaptive icons Android
(  ●   ) Generating app icons ⏳... • Updating colors.xml with color for adaptive icon background
• 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
[14:14:38] Generated app icons ✅                                                                                                                                      
           Run subprocess: ['/usr/local/flutter/bin/dart', 'run', 'serious_python:main', 'package', '/Users/silebox/Documents/Документы — MacBook Air\xa0—             
           Валерий/progs/python/andrew_parser_deargui/src', '--platform', 'Darwin', '--requirements',                                                                  
           'Pillow,beautifulsoup4~=4.9.3,flet==0.25.2,gspread,lxml,py2app,pyinstaller,requests~=2.32.3', '--exclude', 'build', '--cleanup']                            
(     ●) Packaging Python app ⏳... 
Built serious_python:main.
( ●    ) Packaging Python app ⏳... Running package command
Extra PyPi indexes: [https://pypi.flet.dev]
Created temp directory: /var/folders/5s/cl_rq63x2b95w5q8r279_pyw0000gn/T/serious_python_tempODxiWE
Copying Python app from /Users/silebox/Documents/Документы — MacBook Air — Валерий/progs/python/andrew_parser_deargui/src to a temp directory
Cleanup app
Configured Darwin/arm64 platform with sitecustomize.py
Installing [Pillow, beautifulsoup4~=4.9.3, flet==0.25.2, gspread, lxml, py2app, pyinstaller, requests~=2.32.3] with pip command to /var/folders/5s/cl_rq63x2b95w5q8r279_pyw0000gn/T/serious_python_tempODxiWE/__pypackages__/arm64
(     ●) Packaging Python app ⏳... Cleanup installed packages
(●     ) Packaging Python app ⏳... Configured Darwin/x86_64 platform with sitecustomize.py
Installing [Pillow, beautifulsoup4~=4.9.3, flet==0.25.2, gspread, lxml, py2app, pyinstaller, requests~=2.32.3] with pip command to /var/folders/5s/cl_rq63x2b95w5q8r279_pyw0000gn/T/serious_python_tempODxiWE/__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/silebox/Documents/Документы — MacBook Air — Валерий/progs/python/andrew_parser_deargui/build/flutter/app/app.zip from a temp directory
(    ● ) Packaging Python app ⏳... Writing app archive hash to /Users/silebox/Documents/Документы — MacBook Air — Валерий/progs/python/andrew_parser_deargui/build/flutter/app/app.zip.hash
( ●    ) Packaging Python app ⏳... Deleting temp directory
[14:15:16] Packaged Python app ✅                                                                                                                                      
           Run subprocess: ['/usr/local/flutter/bin/flutter', 'build', 'macos', '--build-name', '2.4']                                                                 
(  ●   ) Building macOS bundle ⏳... 
Updating project for Xcode compatibility.
Upgrading project.pbxproj
Upgrading Runner.xcscheme
macos/Runner/AppDelegate.swift uses the deprecated @NSApplicationMain attribute, updating.
(   ●  ) Building macOS bund   364ms
CocoaPods' output:

    [!] No `Podfile' found in the project directory.

    /Users/silebox/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/cocoapods-1.16.2/lib/cocoapods/command.rb:161:in 'Pod::Command#verify_podfile_exists!'
    /Users/silebox/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/cocoapods-1.16.2/lib/cocoapods/command/install.rb:46:in 'Pod::Command::Install#run'
    /Users/silebox/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/claide-1.1.0/lib/claide/command.rb:334:in 'CLAide::Command.run'
    /Users/silebox/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/cocoapods-1.16.2/lib/cocoapods/command.rb:52:in 'Pod::Command.run'
    /Users/silebox/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/cocoapods-1.16.2/bin/pod:55:in '<top (required)>'
    /Users/silebox/.rbenv/versions/3.4.1/bin/pod:25:in 'Kernel#load'
    /Users/silebox/.rbenv/versions/3.4.1/bin/pod:25:in '<main>'

Error running pod install
[14:15:18] Error building Flet app - see the log of failed command above.                                                                                              
           Run subprocess: ['/usr/local/flutter/bin/flutter', '--version']                                                                                             
[14:15:19] Run subprocess: ['/usr/local/flutter/bin/flutter', 'doctor']                                                                                                
[14:15:27] Doctor summary (to see all details, run flutter doctor -v):                                                                                                 
           [✓] Flutter (Channel stable, 3.24.0, on macOS 15.0 24A335 darwin-arm64, locale ru-RU)                                                                       
           [✗] 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)                                                                                                          
               ✗ Unable to get list of installed Simulator runtimes.                                                                                                   
           [✓] Chrome - develop for the web                                                                                                                            
           [!] Android Studio (not installed)                                                                                                                          
           [✓] IntelliJ IDEA Ultimate Edition (version 2024.2.3)                                                                                                       
           [✓] VS Code (version 1.96.2)                                                                                                                                
           [✓] Connected device (3 available)                                                                                                                          
           [✓] Network resources                                                                                                                                       
                                                                                                                                                                       
           ! Doctor found issues in 3 categories.   

Additional details

podfile exists
image

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