So, my application is running perfectly on device(iPhone XR) but it is throwing error when I am trying to run it on simulator.
Error:
No such module 'SwiftyStoreKit'
It is basically not detecting "Pod"
I have tried many steps
- Updating Pod
- Unchecking the "Find Implicit Dependencies" for Build under "Edit Schemes"
- Followed this link as well https://developer.apple.com/forums/thread/12032
My Xcode version is 12.2
Recently, I updated my Mac OS after which I started facing this problem. Earlier, everything was working well.
Appreciate your help.
Podfile
#Uncomment the next line to define a global platform for your project
#platform :ios, '10.0'
#Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
target 'Vivaji' do
pod 'Alamofire'
pod 'ObjectMapper'
pod 'IQKeyboardManagerSwift'
pod 'SWRevealViewController', '~> 2.3',:modular_headers => true
pod 'moa', '~> 12.0'
pod 'SideMenu', '~> 6.0'
pod 'AlamofireImage'
pod 'SwiftyStoreKit'
target 'VivajiTests' do
inherit! :search_paths
# Pods for testing
end
target 'VivajiUITests' do
inherit! :search_paths
# Pods for testing
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf'
config.build_settings['ARCHS'] = 'arm64'
end
end
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete('CODE_SIGNING_ALLOWED')
config.build_settings.delete('CODE_SIGNING_REQUIRED')
end
end
end
question from:
https://stackoverflow.com/questions/65835699/app-running-on-device-but-not-on-simulator 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…