You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter构建iOS报错:未找到'BUNDLE_ID'对应的配置文件

Fixing iOS Provisioning Profile Error in Flutter Build

Hey there, let's work through this signing issue together— I've dealt with similar Xcode/Flutter signing headaches plenty of times, so here are some actionable steps to fix it:

1. Double-check your build command

First off, it looks like you might have a typo in your command. flutter run build isn't a valid Flutter command— you should use flutter build ios when trying to build your app for App Store submission. That's a common mix-up, so correcting that first is a good start.

2. Verify Xcode's Automatic Signing Settings

Even though you've enabled Automatically manage signing, let's make sure all the details are correct:

  • Open your Flutter project in Xcode, select the Runner target, and go to the Signing & Capabilities tab.
  • Confirm that Automatically manage signing is checked, and that the Team dropdown is set to your paid Apple Developer Program team (not a personal/free team).
  • Double-check that your Bundle ID matches exactly what's registered in your Apple Developer account— even a single typo (like uppercase vs lowercase) will cause this error.

3. Allow Provisioning Updates During Build

The error message mentions passing -allowProvisioningUpdates to xcodebuild, which you can do directly in your Flutter build command:

flutter build ios --allow-provisioning-updates

This flag tells Xcode to automatically handle any missing provisioning profiles, certificates, or team-related updates during the build process— it often fixes the "no profiles found" error when automatic signing is enabled but stuck.

4. Clear Caches and Reset Signing Configs

Sometimes cached data can mess up signing. Try these steps:

  • Run flutter clean in your project terminal to clear Flutter's build cache.
  • Clear Xcode's Derived Data: Open Xcode → Go to Xcode > Preferences > Locations → Click the arrow next to Derived Data → Delete the folder for your project.
  • In Xcode, uncheck Automatically manage signing, save changes, then re-check it and re-select your team. This forces Xcode to re-fetch or regenerate all signing assets.

5. Validate Apple Developer Account Setup

If the above steps don't work, check your Apple Developer account to rule out backend issues:

  • Log into the Apple Developer website, go to Identifiers, and confirm your Bundle ID exists and is active.
  • Check Provisioning Profiles to see if Xcode has generated a profile for your Bundle ID. If not, you can manually create one (select "iOS App Development" or "App Store" profile, link your Bundle ID, and download it to import into Xcode via double-clicking).

Last Resort: Restart Everything

Sometimes the simplest fix works— restart Xcode, your terminal, and even your Mac. Cached processes can hang up and prevent signing assets from loading correctly.

内容的提问来源于stack exchange,提问作者Ny Regency

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.06 21:22:49