Coder Social home page Coder Social logo

Comments (15)

eoinoconnell avatar eoinoconnell commented on August 13, 2024

Hello, how strange. Does this happen when using the example app in the repo? What version of the SDK are you using? I assume 1.8.4 is your cocoa pods version

from drift-sdk-ios.

vuhoangha avatar vuhoangha commented on August 13, 2024

No, I'm using my project. I used version 2.2.11 of drift-sdk-ios. My cocoa pods version is 1.8.4

from drift-sdk-ios.

eoinoconnell avatar eoinoconnell commented on August 13, 2024

Can you please try the example project to see if it happens there also?

It sounds like it might be a conflict with dependencies

from drift-sdk-ios.

vuhoangha avatar vuhoangha commented on August 13, 2024

I try running the example but I see errors
Screen Shot 2019-12-16 at 4 21 25 PM

from drift-sdk-ios.

eoinoconnell avatar eoinoconnell commented on August 13, 2024

Just to confirm you opened the workspace and not the project file ye?

from drift-sdk-ios.

vuhoangha avatar vuhoangha commented on August 13, 2024

I am not an ios programmer, I am a react native developer. So there are many things I don't understand about ios. If you need me to provide any additional information so you can spot the error, I'd be happy to. Thank you!

from drift-sdk-ios.

vuhoangha avatar vuhoangha commented on August 13, 2024

Just to confirm you opened the workspace and not the project file ye?

I went to SDKExample folder and run "Pod install". Then I opened SDKExample.xcworkspace and run it. Is it right?

from drift-sdk-ios.

eoinoconnell avatar eoinoconnell commented on August 13, 2024

Yeah that should be it. Have you made any changes to your system or anything. It seems to be not able to find String.swift which seems rather strange. Do you have a custom installation of swift on your machine?

from drift-sdk-ios.

vuhoangha avatar vuhoangha commented on August 13, 2024

I add lines on file Podfile

   pod 'SVProgressHUD', :modular_headers => true
   pod 'Drift', '~> 2.2.11'

Then I deleted Pods folder, ran "pod install" and built it. I tried running on 3 different computer but I got the same error

from drift-sdk-ios.

eoinoconnell avatar eoinoconnell commented on August 13, 2024

is there any other dependencies in your pod file? how come you are using modular_headers for the progress hud?

from drift-sdk-ios.

vuhoangha avatar vuhoangha commented on August 13, 2024

I added modular_headers because I got an error when I ran pod install

[!] The following Swift pods cannot yet be integrated as static libraries:

The Swift pod `Drift` depends upon `SVProgressHUD`, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.

from drift-sdk-ios.

eoinoconnell avatar eoinoconnell commented on August 13, 2024

Ah ok, do you have use_frameworks! at the top of your podfile? If not could you add it, remove the modular_headers and try again?

from drift-sdk-ios.

Phu-Hoang avatar Phu-Hoang commented on August 13, 2024

Currently most libraries discourage using use_frameworks!. Do you have any other solutions?

from drift-sdk-ios.

eoinoconnell avatar eoinoconnell commented on August 13, 2024

Hi, currently we only support use_frameworks I'm afraid

from drift-sdk-ios.

eoinoconnell avatar eoinoconnell commented on August 13, 2024

Hi, as of 2.4.0 we now support static building the library so you should no longer need use_frameworks!

from drift-sdk-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.