{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1131","repository_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1131/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1131/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1131/events","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/1131","id":134738659,"number":1131,"title":"CBLVersion() incorrectly returns \"(unofficial)\" in official releases","user":{"login":"snej","id":43241,"avatar_url":"https://avatars.githubusercontent.com/u/43241?v=3","gravatar_id":"","url":"https://api.github.com/users/snej","html_url":"https://github.com/snej","followers_url":"https://api.github.com/users/snej/followers","following_url":"https://api.github.com/users/snej/following{/other_user}","gists_url":"https://api.github.com/users/snej/gists{/gist_id}","starred_url":"https://api.github.com/users/snej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snej/subscriptions","organizations_url":"https://api.github.com/users/snej/orgs","repos_url":"https://api.github.com/users/snej/repos","events_url":"https://api.github.com/users/snej/events{/privacy}","received_events_url":"https://api.github.com/users/snej/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/Build","name":"Build","color":"006b75"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/hotfix","name":"hotfix","color":"0052cc"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/review","name":"review","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/milestones/15","html_url":"https://github.com/couchbase/couchbase-lite-ios/milestones/1.3","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/milestones/15/labels","id":1348000,"number":15,"title":"1.3","description":"","creator":{"login":"zgramana","id":759830,"avatar_url":"https://avatars.githubusercontent.com/u/759830?v=3","gravatar_id":"","url":"https://api.github.com/users/zgramana","html_url":"https://github.com/zgramana","followers_url":"https://api.github.com/users/zgramana/followers","following_url":"https://api.github.com/users/zgramana/following{/other_user}","gists_url":"https://api.github.com/users/zgramana/gists{/gist_id}","starred_url":"https://api.github.com/users/zgramana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zgramana/subscriptions","organizations_url":"https://api.github.com/users/zgramana/orgs","repos_url":"https://api.github.com/users/zgramana/repos","events_url":"https://api.github.com/users/zgramana/events{/privacy}","received_events_url":"https://api.github.com/users/zgramana/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":32,"state":"open","created_at":"2015-10-09T22:24:58Z","updated_at":"2016-03-07T18:44:26Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-02-19T00:31:13Z","updated_at":"2016-03-07T20:40:02Z","closed_at":"2016-03-07T18:44:26Z","body":"As discovered in [this forum thread](https://forums.couchbase.com/t/is-couchbase-lite-1-2-really-out/6959), the result of calling `CBLVersion()` in the official 1.2 release is `@\"1.2 (unofficial)\"`. But only if you run it in the iOS simulator — on a device, or in a Mac OS app, you correctly get `@\"1.2.0 (build 112)\"`.\r\n\r\nThe cause of this is that the constant `CouchbaseLiteVersionNumber` is 0.0 in the simulator builds. And that's because the build setting `CURRENT_PROJECT_VERSION` has its default value of `0`. The [build script](https://github.com/couchbase/build/blob/master/scripts/jenkins/mobile/build_cblite_ios.sh#L208) overrides it to the correct build number when invoking xcodebuild, but that's not taking effect when the simulator binaries are compiled. And _that_ seems to be due to BuildFatLibrary.sh."},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/comments/193440291","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/1131#issuecomment-193440291","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1131","id":193440291,"user":{"login":"michaelkwok","id":10554403,"avatar_url":"https://avatars.githubusercontent.com/u/10554403?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelkwok","html_url":"https://github.com/michaelkwok","followers_url":"https://api.github.com/users/michaelkwok/followers","following_url":"https://api.github.com/users/michaelkwok/following{/other_user}","gists_url":"https://api.github.com/users/michaelkwok/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelkwok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelkwok/subscriptions","organizations_url":"https://api.github.com/users/michaelkwok/orgs","repos_url":"https://api.github.com/users/michaelkwok/repos","events_url":"https://api.github.com/users/michaelkwok/events{/privacy}","received_events_url":"https://api.github.com/users/michaelkwok/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T20:40:02Z","updated_at":"2016-03-07T20:40:02Z","body":"Build 589 looks good now"}}