Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrueTime inside SDK #96

Open
jaceklapinski opened this issue Aug 3, 2021 · 3 comments
Open

TrueTime inside SDK #96

jaceklapinski opened this issue Aug 3, 2021 · 3 comments

Comments

@jaceklapinski
Copy link

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,

@mrtnlst
Copy link

mrtnlst commented Aug 5, 2021

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
Copy link

mrtnlst commented Aug 11, 2021

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

@jaceklapinski
Copy link
Author

Hello :)

The other working solution is change podfile

from

pod 'TrueTime'

to

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

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants