Giter VIP home page Giter VIP logo

Comments (7)

vitorgalvao avatar vitorgalvao commented on May 21, 2024 1

To add to this, technically you don’t have to add the version during the build process, you can add it after it’s done by directly editing the Info.plist:

# Change these values
app_path='/PATH/TO/APP/HERE'
app_version='VERSION NUMBER HERE'

# Keep these as they are
/usr/libexec/PlistBuddy -c "Add :CFBundleVersion string ${app_version}" "${app_path}/Contents/Info.plist"
/usr/libexec/PlistBuddy -c "Add :CFBundleShortVersionString string ${app_version}" "${app_path}/Contents/Info.plist"

That would use the same version number for both fields. Technically they should be different (e.g. from the latest release: CFBundleVersion would be 2106195 and CFBundleShortVersionString 9.8.2), but even having the same version in both fields (or even one of them) would be a major improvement.

from yacreader.

selmf avatar selmf commented on May 21, 2024

Is this still an issue with 9.6.2?

from yacreader.

core-code avatar core-code commented on May 21, 2024

yes. both YACReader and YACReaderLibrary don't have any version numbers.

the CFBundleVersion and CFShortVersionString entries in your Info.plist file are missing

from yacreader.

selmf avatar selmf commented on May 21, 2024

I'm not really a OS X guy but sorting out version setting for our build system and CI is currently on my agenda, so I'll look into it. Not sure if there is a straightforward way to do his with our build system though.
Do you happen to have some documentary for Info.plist and the required entries handy?

from yacreader.

core-code avatar core-code commented on May 21, 2024

there is some documentation here:
https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

however, i'd recommend comparing the Info.plist with something that Xcode generates for a sample app, as this is like the "best practices".

i think the most important thing is filling out the version numbers, as mentioned, and also importantly removing the 'CFBundleGetInfoString' entry. this one has been deprecated for more than 10 years, and will actually prevent display of the version number in the Finder, even if you do add it.

from yacreader.

luisangelsm avatar luisangelsm commented on May 21, 2024

@selmf I will send you the keys you need to set in the Info.plist. I totally forgot about this while I was setting up the azure pipelines.

from yacreader.

selmf avatar selmf commented on May 21, 2024

Thanks. If possible I'd like Info.plist to be generated from a template which is configured by our build system instead of having hardcoded version entries.

from yacreader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.