flet icon indicating copy to clipboard operation
flet copied to clipboard

flet build ipa - iOS provisioning profile fails

Open Bbalduzz opened this issue 9 months ago • 1 comments

Duplicate Check

  • [x] I have searched the opened issues and there are no duplicates

Describe the bug

The problem occurs when creating a ipa using flet build ipa. I've followed the docs here: https://flet.dev/docs/publish/ios/ and I have everything set up:

Image Image

and my pyproject.toml includes the tool.flet.ios:

[project]
name = "symplebeam"
version = "0.1.2"
description = ""
readme = "README.md"
requires-python = ">=3.9"
authors = [
    { name = "Edoardo Balducci", email = "[email protected]" }
]

dependencies = [
    "flet",
    "certifi>=2020.6.20",
    "cycler>=0.10.0",
    "kiwisolver>=1.2.0",
    "matplotlib",
    "mpmath>=1.1.0",
    "numpy>=1.19.1",
    "Pillow>=7.2.0",
    "pyparsing>=2.4.7",
    "python-dateutil>=2.8.1",
    "six>=1.15.0",
    "sympy>=1.6.2",
    "reportlab"
]

[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 = "it.edblcc"

# 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 = "symplebeam"

# company name to display in about app dialogs
company = "edblcc"

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

[tool.flet.ios]
# Specifies how the app should be packaged when exporting an .ipa file
export_method = "release-testing"  # Options: debugging, release-testing, app-store-connect, enterprise
provisioning_profile = "release-testing it.edblcc.symplebeam"  # 83524066-1775-4961-afe2-1a355ecde716.mobileprovision
signing_certificate = "Apple Distribution"
team_id = "V34TLMVP4R"
bundle_id = "it.edblcc.symplebeam"
export_options = { uploadSymbols = false }

[tool.flet.splash]
android = false

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

[tool.uv]
dev-dependencies = [
    "flet[all]==0.27.5",
]

[tool.poetry]
package-mode = false

[tool.poetry.group.dev.dependencies]
flet = {extras = ["all"], version = "0.27.5"}

But when i run flet build ipa i get an error stating:

Error (Xcode): No profile for team 'V34TLMVP4R' matching 'release-testing it.edblcc.symplebeam' found: Xcode couldn't 
find any provisioning profiles matching 'V34TLMVP4R/release-testing it.edblcc.symplebeam'. Install the profile (by    
dragging and dropping it onto Xcode's dock item) or select a different one in the Signing & Capabilities tab of the   
target editor.                                                                                                        
/Users/edoardobalducci/Documents/work/symplebeam/build/flutter/ios/Runner.xcodeproj   

The full log using flet build ipa -v:

Code sample

Code
[Paste your code here]

To reproduce

follow the steps in: https://flet.dev/docs/publish/ios/

Expected behavior

ipa file created

Screenshots / Videos

Captures

[Upload media here]

Operating System

macOS

Operating system details

Ventura 13.7.4 (22H420)

Flet version

0.27.5

Regression

I'm not sure / I don't know

Suggestions

No response

Logs

edoardobalducci@Edoardos-Air symplebeam % flet build ipa -v
[16:07:04] Flutter 3.27.4 installed ✅                                                                                           
           Flutter executable: /Users/edoardobalducci/flutter/3.27.4/bin/flutter                                                 
           Dart executable: /Users/edoardobalducci/flutter/3.27.4/bin/dart                                                       
[16:07:05] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref "0.27.5" ✅                           
           Run subprocess: ['/Users/edoardobalducci/flutter/3.27.4/bin/dart', 'run', '--suppress-analytics',                     
           'serious_python:main', 'package', '/Users/edoardobalducci/Documents/work/symplebeam/src', '--platform', 'iOS',        
           '--requirements',                                                                                                     
           'Pillow>=7.2.0,certifi>=2020.6.20,cycler>=0.10.0,flet,kiwisolver>=1.2.0,matplotlib,mpmath>=1.1.0,numpy>=1.19.1,pyparsi
           ng>=2.4.7,python-dateutil>=2.8.1,reportlab,six>=1.15.0,sympy>=1.6.2', '--exclude', 'build', '--cleanup-packages',     
           '--skip-site-packages']                                                                                               
[16:07:06] Running package command                                                                                               
           Extra PyPi indexes: [https://pypi.flet.dev]                                                                           
           Created temp directory: /var/folders/q7/x7n1v44j7mj7zhwhbycrwj640000gn/T/serious_python_tempS0aqE0                    
           Copying Python app from /Users/edoardobalducci/Documents/work/symplebeam/src to a temp directory                      
           Creating app archive at /Users/edoardobalducci/Documents/work/symplebeam/build/flutter/app/app.zip from a temp        
           directory                                                                                                             
           Writing app archive hash to /Users/edoardobalducci/Documents/work/symplebeam/build/flutter/app/app.zip.hash           
           Deleting temp directory                                                                                               
           Packaged Python app ✅                                                                                                
[16:07:07] Found "icon" image at /Users/edoardobalducci/Documents/work/symplebeam/src/assets/icon.png                            
           Copying image /Users/edoardobalducci/Documents/work/symplebeam/src/assets/icon.png to                                 
           /Users/edoardobalducci/Documents/work/symplebeam/build/flutter/images                                                 
           Customized app icons ✅                                                                                               
           Run subprocess: ['/Users/edoardobalducci/flutter/3.27.4/bin/dart', 'run', '--suppress-analytics',                     
           'flutter_launcher_icons']                                                                                             
[16:07:08]   ════════════════════════════════════════════                                                                        
                FLUTTER LAUNCHER ICONS (v0.14.3)                                                                                 
             ════════════════════════════════════════════                                                                        
                                                                                                                                 
           • Creating default icons Android                                                                                      
           • Overwriting the default Android launcher icon with a new icon                                                       
           • Creating adaptive icons Android                                                                                     
           • Updating colors.xml with color for adaptive icon background                                                         
           • Creating mipmap xml file Android                                                                                    
           • Overwriting default iOS launcher icon with new icon                                                                 
           Creating Icons for Web...                                                                                             
[16:07:09] Creating Icons for Windows...                                                                                         
           Creating Icons for MacOS...                                                                                           
                                                                                                                                 
           ✓ Successfully generated launcher icons                                                                               
           Generated app icons ✅                                                                                                
           Found "icon" image at /Users/edoardobalducci/Documents/work/symplebeam/src/assets/icon.png                            
           Found "splash_android" image at /Users/edoardobalducci/Documents/work/symplebeam/src/assets/splash_android.png        
           Copying image /Users/edoardobalducci/Documents/work/symplebeam/src/assets/icon.png to                                 
           /Users/edoardobalducci/Documents/work/symplebeam/build/flutter/images                                                 
           Copying image /Users/edoardobalducci/Documents/work/symplebeam/src/assets/splash_android.png to                       
           /Users/edoardobalducci/Documents/work/symplebeam/build/flutter/images                                                 
           Customized app splash images ✅                                                                                       
           Run subprocess: ['/Users/edoardobalducci/flutter/3.27.4/bin/dart', 'run', '--suppress-analytics',                     
           'flutter_native_splash:create']                                                                                       
[16:07:10] [iOS] Creating  images                                                                                                
           [iOS] Creating dark mode  images                                                                                      
           [iOS] Updating ios/Runner/Info.plist for status bar hidden/visible                                                    
           [Web] Creating images                                                                                                 
[16:07:11] [Web] Creating images                                                                                                 
           [Web] Creating background images                                                                                      
           [Web] Creating CSS                                                                                                    
           [Web] Updating index.html                                                                                             
                                                                                                                                 
           ✅ Native splash complete.                                                                                            
           Now go finish building something awesome! 💪 You rock! 🤘🤩                                                           
           Like the package? Please give it a 👍 here: https://pub.dev/packages/flutter_native_splash                            
                                                                                                                                 
           Generated splash screens ✅                                                                                           
           Run subprocess: ['/Users/edoardobalducci/flutter/3.27.4/bin/flutter', 'build', 'ipa', '--no-version-check',           
           '--suppress-analytics', '--export-options-plist', 'ios/exportOptions.plist', '--build-name', '0.1.2']                 
           Resolving dependencies...                                                                                             
[16:07:12] Downloading packages...                                                                                               
             archive 3.6.1 (4.0.4 available)                                                                                     
             characters 1.3.0 (1.4.0 available)                                                                                  
             clock 1.1.1 (1.1.2 available)                                                                                       
             collection 1.19.0 (1.19.1 available)                                                                                
             device_info_plus 11.3.0 (11.3.3 available)                                                                          
             ffi 2.1.3 (2.1.4 available)                                                                                         
             file_picker 8.3.7 (9.2.0 available)                                                                                 
             fl_chart 0.69.2 (0.70.2 available)                                                                                  
           ! flet 0.27.5 (overridden) (0.27.6 available)                                                                         
             flutter_lints 2.0.3 (5.0.0 available)                                                                               
             flutter_native_splash 2.4.4 (2.4.5 available)                                                                       
             image 4.3.0 (4.5.3 available)                                                                                       
             intl 0.19.0 (0.20.2 available)                                                                                      
             js 0.6.7 (0.7.2 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)                                                                                        
             petitparser 6.0.2 (6.1.0 available)                                                                                 
             sensors_plus 4.0.2 (6.1.1 available)                                                                                
             sensors_plus_platform_interface 1.2.0 (2.0.1 available)                                                             
             serious_python 0.9.1 (0.9.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.1 (overridden)                                                                                              
             web_socket_channel 2.4.5 (3.0.2 available)                                                                          
           ! webview_flutter_android 4.3.3 (overridden)                                                                          
             win32 5.10.1 (5.12.0 available)                                                                                     
             win32_registry 1.1.5 (2.1.0 available)                                                                              
           ! window_manager 0.4.3 (overridden)                                                                                   
           Got dependencies!                                                                                                     
           1 package is discontinued.                                                                                            
           27 packages have newer versions incompatible with dependency constraints.                                             
           Try `flutter pub outdated` for more information.                                                                      
[16:07:13]                                                                                                                       
[16:07:16] Archiving it.edblcc.symplebeam...                                                                                     
           Upgrading AppFrameworkInfo.plist                                                                                      
           Upgrading Podfile                                                                                                     
           Updating project for Xcode compatibility.                                                                             
           Upgrading project.pbxproj                                                                                             
           Upgrading Runner.xcscheme                                                                                             
           .gitignore does not ignore Swift Package Manager build directories, updating.                                         
           Automatically signing iOS for device deployment using specified development team in Xcode project: V34TLMVP4R         
[16:07:49] Running pod install...                                             30.7s                                              
[16:07:53] Running Xcode build...                                                                                                
           Xcode archive done.                                          4.2s                                                     
           Failed to build iOS app                                                                                               
           Error (Xcode): No profile for team 'V34TLMVP4R' matching 'release-testing it.edblcc.symplebeam' found: Xcode couldn't 
           find any provisioning profiles matching 'V34TLMVP4R/release-testing it.edblcc.symplebeam'. Install the profile (by    
           dragging and dropping it onto Xcode's dock item) or select a different one in the Signing & Capabilities tab of the   
           target editor.                                                                                                        
           /Users/edoardobalducci/Documents/work/symplebeam/build/flutter/ios/Runner.xcodeproj                                   
                                                                                                                                 
                                                                                                                                 
           It appears that there was a problem signing your application prior to installation on the device.                     
                                                                                                                                 
           Verify that the Bundle Identifier in your project is your signing id in Xcode                                         
             open ios/Runner.xcworkspace                                                                                         
                                                                                                                                 
           Also try selecting 'Product > Build' to fix the problem.                                                              
           Encountered error while archiving for device.                                                                         
           <_io.TextIOWrapper name=5 encoding='utf-8'>                                                                           
           Run subprocess: ['/Users/edoardobalducci/flutter/3.27.4/bin/flutter', 'doctor', '--no-version-check',                 
           '--suppress-analytics']                                                                                               
[16:08:01] Doctor summary (to see all details, run flutter doctor -v):                                                           
           [✓] Flutter (Channel stable, 3.27.4, on macOS 13.7.4 22H420 darwin-arm64, locale en-IT)                               
           [✗] 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 15.2)                                                                    
           [✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google                               
           Chrome.app/Contents/MacOS/Google Chrome)                                                                              
               ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.                                       
           [!] Android Studio (not installed)                                                                                    
           [✓] VS Code (version 1.98.0)                                                                                          
           [✓] Connected device (2 available)                                                                                    
           [✓] Network resources                                                                                                 
                                                                                                                                 
           ! Doctor found issues in 3 categories.                                                                                
                                                                                                                                 
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Error building Flet app - see the log of failed command above.                                                                │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Additional details

python version: Python 3.12.0

Bbalduzz avatar Mar 18 '25 15:03 Bbalduzz

Any luck?

Wanna-Pizza avatar Nov 16 '25 11:11 Wanna-Pizza