React-native: Updating build number with `agvtool new-version -all {build number}` doesn't work

Created on 16 Apr 2015  路  5Comments  路  Source: facebook/react-native

agvtool returns with:

Setting version of project {project} to: 
    {build number}.
Also setting CFBundleVersion key (assuming it exists)
Updating CFBundleVersion in Info.plist(s)...
$(SRCROOT)/iOS/Info.plist
Cannot find "$(SRCROOT)/iOS/Info.plist"
Locked

Most helpful comment

Had the same problem, solved it by making the path relative. Just remove $(SRCROOT)/ from the "Info.plist File" setting under Build Settings and it works just fine.

All 5 comments

Had the same problem, solved it by making the path relative. Just remove $(SRCROOT)/ from the "Info.plist File" setting under Build Settings and it works just fine.

@peterprokop
Did the solution from @oblador work for you?

@christopherdro haven't tried it.
Used something like
/usr/libexec/PlistBuddy -c "Set CFBundleVersion $TRAVIS_BUILD_NUMBER" ./iOS/Info.plist
instead.

@oblador - that worked for me as well, submitted a PR to update the SampleApp accordingly

Thanks @oblador

Was this page helpful?
0 / 5 - 0 ratings

Related issues

axelg12 picture axelg12  路  3Comments

arunabha picture arunabha  路  3Comments

jlongster picture jlongster  路  3Comments

lazywei picture lazywei  路  3Comments

anchetaWern picture anchetaWern  路  3Comments