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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to