Skip to main content
Solved

SwiftUI app, getting "No such module 'Amplitude_iOS'" when trying to build


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? 

https://www.docs.developers.amplitude.com/data/sdks/sdk-quickstart/#install-the-dependency_3 

https://www.docs.developers.amplitude.com/data/sdks/sdk-quickstart/#initialization_3 

https://www.docs.developers.amplitude.com/data/sdks/ios/?h=podfile#app-clips 

View original
Did this topic help you find an answer to your question?

3 replies

  • Author
  • New Member
  • 2 replies
  • May 11, 2023

In addition, heres our podfile

 

# 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 testing
  end

  target 'kayyoUITests' do
    # Pods for testing
  end
pod 'NotificationBannerSwift', '~> 3.0.0'
pod 'Amplitude-iOS', '~> 4.9.3'
pod 'SwiftyGif'
pod 'Periphery'
pod 'IQKeyboardManagerSwift'
pod 'SSToastMessage'
pod 'ReachabilitySwift'
end

 


Esther Trapadoux
Community Manager
Forum|alt.badge.img+9

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


belinda.chiu
Team Member
Forum|alt.badge.img+8
  • Amplitude Support
  • 189 replies
  • Answer
  • May 16, 2023

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? 

https://www.docs.developers.amplitude.com/data/sdks/sdk-quickstart/#install-the-dependency_3 

https://www.docs.developers.amplitude.com/data/sdks/sdk-quickstart/#initialization_3 

https://www.docs.developers.amplitude.com/data/sdks/ios/?h=podfile#app-clips 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings