[CDRIVER-2861] PRERELEASE_VERSION should not be interpolated into framework Info.plist Created: 25/Oct/18  Updated: 04/Nov/19  Resolved: 04/Nov/19

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: Next

Type: Task Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-2864 C driver framework builds should set ... Closed
Epic Link: PM-1418
Backwards Compatibility: Fully Compatible

 Description   

Currently, the Info.plist when targeting a Framework includes the full MONGOC_VERSION string. Unfortunately, when building a pre-release version, this results in warnings when trying to submit an app that uses the framework:

App Store Connect Operation Error
ERROR ITMS-90060: "This bundle is invalid. The value for key CFBundleShortVersionString '1.13.1-dev' in the Info.plist file must be a period-separated list of at most three non-negative integers."

The interpolated value should probably ignore any pre-release version information.



 Comments   
Comment by April Schoffer [ 04/Nov/19 ]

Closing this ticket as "Won't Fix" given approval of PM-1605 to EOL MDB Mobile.

Comment by Jeremy Mikola [ 04/Feb/19 ]

https://github.com/mongodb/mongo-c-driver/pull/540

Comment by Jeremy Mikola [ 01/Nov/18 ]

The CFBundleVersion documentation discusses some options to expressing a development version:

While developing a new version of your app, you can include a suffix after the number that is being updated; for example 3.1.3a1. The character in the suffix represents the stage of development for the new version. For example, you can represent development, alpha, beta, and final candidate, by d, a, b, and fc. The final number in the suffix is the build version, which cannot be 0 and cannot exceed 255. When you release the new version of your app, remove the suffix.

I'm not sure if that applies to CFBundleShortVersionString, but this may be a good starting point if we end up just needing some function to convert to a plist-friendly version string.

Comment by Kevin Albertson [ 01/Nov/18 ]

Since you're using this to produce the framework, would you like to submit a pull request for the changes you need?

Generated at Wed Feb 07 21:16:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.