TrueTime.swift
TrueTime.swift copied to clipboard
TrueTime inside SDK
Hello,
i have problem when i added TrueTime to our SDK, then i try to integrate SDK in other project i get this:

Any idea how to resolve this ?
Best,
I face exactly the same issue:
The Changelog of 5.1.0 includes Stop importing CTrueTime as a separate module
and I'd love to check whether that fixes it, but apparently the Cocoapods Spec-Repo is still on 5.0.3.
@jaceklapinski
I was able to avoid the error by iterating through my pod dependencies and setting BUILD_LIBRARY_FOR_DISTRIBUTION
to YES.
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
Update: Nevermind, this didn't fix it. @jaceklapinski answer below fix it though!
Hello :)
The other working solution is change podfile
from
pod 'TrueTime'
to
pod 'TrueTime', :git => 'https://github.com/instacart/TrueTime.swift.git'
Best regards