• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Patching Watchkit App's info.plist at build time.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patching Watchkit App's info.plist at build time.


  • Subject: Patching Watchkit App's info.plist at build time.
  • From: Owen Hartnett <email@hidden>
  • Date: Mon, 13 Jul 2015 14:21:06 -0400

My build script has the pleasant feature of changing CFBundleVersion to the current Subversion revision number during a build phase.

Here's the line of script code:

/usr/libexec/PlistBuddy -c "Set :CFBundleVersion `svnversion -n`" ${TARGET_BUILD_DIR}/${INFOPLIST_PATH}

Now that I've added a Watch App and Watch Extension, Xcode whinges that the Watch App CFBundleVersion must match the iOS app's CFBundleVersion. I'm looking for a way to patch the Watch App plist at build time (in the above manner).  It gets built before the iOS app, and it doesn't have build phases, but the extension does.

I haven't been able to find this plist in the finished product, having peeked in all the packages.  I can get it to build, by making both CFBundleVersions zero, but what fun is that? Is there a way to do it in building the extension, or at iOS app building time?  

-Owen
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Patching Watchkit App's info.plist at build time.
      • From: Alexander von Below <email@hidden>
  • Prev by Date: Dependency tracking with asset catalog and interface builder compilers
  • Next by Date: Re: Patching Watchkit App's info.plist at build time.
  • Previous by thread: Dependency tracking with asset catalog and interface builder compilers
  • Next by thread: Re: Patching Watchkit App's info.plist at build time.
  • Index(es):
    • Date
    • Thread