TrueTime.swift icon indicating copy to clipboard operation
TrueTime.swift copied to clipboard

TrueTime inside SDK

Open jaceklapinski opened this issue 3 years ago • 3 comments

Hello,

i have problem when i added TrueTime to our SDK, then i try to integrate SDK in other project i get this:

Zrzut ekranu 2021-08-3 o 09 10 10

Any idea how to resolve this ?

Best,

jaceklapinski avatar Aug 03 '21 07:08 jaceklapinski

I face exactly the same issue: Screenshot 2021-08-05 at 11 32 22

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.

mrtnlst avatar Aug 05 '21 09:08 mrtnlst

@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!

mrtnlst avatar Aug 11 '21 09:08 mrtnlst

Hello :)

The other working solution is change podfile

from

pod 'TrueTime'

to

pod 'TrueTime', :git => 'https://github.com/instacart/TrueTime.swift.git'

Best regards

jaceklapinski avatar Aug 11 '21 11:08 jaceklapinski