segmentio / analytics-swift

The hassle-free way to add Segment analytics to your Swift app (iOS/tvOS/watchOS/macOS/Linux).

Repository from Github https://github.comsegmentio/analytics-swiftRepository from Github https://github.comsegmentio/analytics-swift

Build fails: `isUnitTesting` only available in DEBUG mode

collinhundley opened this issue · comments

In AppleUtils.swift, line 253:

if isUnitTesting == false {

isUnitTesting is defined in Utils.swift, but only in DEBUG mode. So, the build fails for all non-debug builds.

Bug introduced in v1.5.6
Platform: macOS

Thanks for spotting that @collinhundley ! Ugh, userAgent has been the bane of my existence lately. :( I'll get this fixed in just a minute and do another release.