As of the past 2 weeks or so, when i try to build the app locally we get the same “No such module ‘Amplitude_iOS’ “ error.
Have had a few iOS engineers look at the error, have already deleted the podfile lock, reinstalling pods, moving to a new directory, uninstalling and reinstalling amplitude again, and more (Basically every proposed solution from the internet and GPT-4)
import Foundation
import Firebase
import GoogleSignIn
import SwiftUI
import Amplitude_iOS
enum SignInState {
case signedIn
case signedOut
}
Best answer by belinda.chiu
Hi @imranye ! Welcome to the Amplitude Community 👋 Based on the error, this suggests that the Amplitude iOS SDK does not exist within your app. It also sounds like you and your iOS team went through the set-up to try and reinstall Amplitude iOS SDK again.
I know I might be repeating items that you already tried but I just want to double confirm that these were taken before moving forward.
I noticed that your team is using import Amplitude_iOS and pod 'Amplitude-iOS' which is slightly different syntax than what is listed in our Dev Docs. Can you share with me the links to the documentation in which you were suggested to use these particular syntaxes? I want to make sure I’m looking at the right iOS SDK.
In the meantime, can you have your team try changing out the syntax of Amplitude to what is listed in these Dev Docs below to see if that helps?
# Uncomment the next line to define a global platform for your project
platform :ios, '15.0'
target 'kayyo'do# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for kayyo
target 'kayyoTests'do
inherit! :search_paths# Pods for testingend
target 'kayyoUITests'do# Pods for testingend
pod 'NotificationBannerSwift', '~> 3.0.0'
pod 'Amplitude-iOS', '~> 4.9.3'
pod 'SwiftyGif'
pod 'Periphery'
pod 'IQKeyboardManagerSwift'
pod 'SSToastMessage'
pod 'ReachabilitySwift'end
@imranye thanks for the patience, I’ve asked our technical support team to look into this. I saw that you’ve already filed a ticket directly with them and I’ll bump it with the team.
Hi @imranye ! Welcome to the Amplitude Community 👋 Based on the error, this suggests that the Amplitude iOS SDK does not exist within your app. It also sounds like you and your iOS team went through the set-up to try and reinstall Amplitude iOS SDK again.
I know I might be repeating items that you already tried but I just want to double confirm that these were taken before moving forward.
I noticed that your team is using import Amplitude_iOS and pod 'Amplitude-iOS' which is slightly different syntax than what is listed in our Dev Docs. Can you share with me the links to the documentation in which you were suggested to use these particular syntaxes? I want to make sure I’m looking at the right iOS SDK.
In the meantime, can you have your team try changing out the syntax of Amplitude to what is listed in these Dev Docs below to see if that helps?
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. You can also create a Guest account below!
If you're a current customer, select the domain you use to sign in with Amplitude.
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. Want to sign up as a guest? Create a Community account.
If you're a current customer, select the domain you use to sign in with Amplitude.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.