-
Notifications
You must be signed in to change notification settings - Fork 30.2k
After changing macOS PRODUCT_NAME in AppInfo.xcconfig the app will not build until the build folder is cleaned #105317
Copy link
Copy link
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-macosOwned by the macOS platform teamOwned by the macOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-macosTriaged by the macOS platform teamTriaged by the macOS platform team
Description
BUNDLE_NAME is set to PRODUCT_NAME which gets used by Xcode to name the bridging header. And if you've already built with the old name, you get an error like:
Xcode/DerivedData/Runner-ctretxpfaeypegasfqwbmrjkizyw/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/This_Gallery-Swift.h: No such file or directory
Where the name I set is This_Gallery.
I cleaned Product > Clean Build Folder which deleted the header generated by Xcode, then built again so it generated the new one. Then it ran with the new name:

There might be a real fix, but maybe the clean at least should be called out in the docs?
Originally posted by @jmagman in #105157 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-macosOwned by the macOS platform teamOwned by the macOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-macosTriaged by the macOS platform teamTriaged by the macOS platform team