Xcode won't use with FLUTTER_BUILD_NAME

Viewed 592

Xcode won't build using $(FLUTTER_BUILD_NAME) or $(FLUTTER_BUILD_NUMBER)

Runner -> Target -> Build Settings -> Versioning

Runner -> Target -> Build Settings -> Versioning

Runner -> Target -> General -> Identity

enter image description here

Runner -> Flutter -> Generated.xcconfig

enter image description here

info.plist

enter image description here

Can anyone see what I'm doing wrong here? The Generated.xcconfig correctly has the version information from my pub spec.yaml version: 1.0.3+5

But each time I build the version information is null.

1 Answers

I ran into this issue yesterday and really struggled to find out what's going on my flutter project. I hope my two cents help anyone out there...

One day I manually updated version in xcode (super mistake) then Generated.xcconfig not worked anymore. I still don't know why some settings have changed also but anyway here's solution:

well-working versioning project:

xcode screenshot with no problem

project of the problem:

xcode screenshot with problem

When I changed the three Runner configuration file to Debug, Release, Release, the version showed up immediately:

enter image description here

ps) I got hint from the chat of @Zholen and @Claudio Redi. Thank you so much. I still don't know which action triggered that settings but I'm going to bed now..

Related