Giter VIP home page Giter VIP logo

Comments (5)

ravipappyogi avatar ravipappyogi commented on August 21, 2024 1

Hello @yuhao900914
Yes solved the simulator run issue with following changes

Build Settings > Build Active Architecture Only > DEBUG = Yes

Thanks

from amplitude-ios.

Mercy811 avatar Mercy811 commented on August 21, 2024

Hi @ravipappyogi, it looks like that the linker is unable to find the definition of the Amplitude class in Objective-C. Could you check if you've followed the guides to install the dependency?

from amplitude-ios.

ravipappyogi avatar ravipappyogi commented on August 21, 2024

Hello
I have followed this step to add Amplitude

  1. Navigate to File > Swift Package Manager > Add Package Dependency.
  2. Enter https://github.com/amplitude/Amplitude-iOS into the search bar.
  3. It automatically resolves to the latest version.

Also, not showing any error while I connected the iPhone device and run on that. Only getting a fail while I am trying to run in the simulator.

Undefined symbol: OBJC_CLASS$_Amplitude

Please let us know if anything manually adds any dependency or if any linker flag needs to add to build settings.

from amplitude-ios.

yuhao900914 avatar yuhao900914 commented on August 21, 2024

@ravipappyogi
That's all you need to install amplitude. I'm not able to reproduce this in my local. There have several things you can check.

  • Can clean build and rebuild to see if it fixes the issue?

    • Xcode -> Product -> Clean Build Folder and then build again.
  • Please check after you installed Amplitude-iOS SDK, if there are 2 packages has been installed.
    Screen Shot 2023-07-10 at 4 23 42 PM
    Check if the Amplitude Framework has been auto-added into frameworks section.
    Screen Shot 2023-07-10 at 4 24 53 PM
    Check if Amplitude is under Link Binary With Libraries for your selected target.
    Screen Shot 2023-07-10 at 4 33 03 PM

  • Please also try to clone this simple example to see if it can be built successfully.

Thanks.

from amplitude-ios.

yuhao900914 avatar yuhao900914 commented on August 21, 2024

Hi @ravipappyogi ,
any progress on this issue?

from amplitude-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.