Solved

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

  • 11 May 2023
  • 3 replies
  • 422 views

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
}

 

icon

Best answer by belinda.chiu 16 May 2023, 03:19

View original

3 replies

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

 

Userlevel 5
Badge +8

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

Userlevel 6
Badge +8

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