应用在设备上运行但不在模拟器上

问题描述

因此,我的应用程序在设备(iPhone XR)上完美运行,但是当我尝试在模拟器上运行它时抛出错误

错误: 没有这样的模块 'SwiftyStoreKit'

它基本上没有检测到“Pod” 我已经尝试了很多步骤

  1. 更新 Pod
  2. 在“编辑方案”下取消选中构建的“查找隐式依赖项”
  3. 也点击了这个链接https://developer.apple.com/forums/thread/12032

我的 Xcode 版本是 12.2 最近,我更新了我的 Mac OS,之后我开始面临这个问题。早些时候,一切都运行良好。

感谢您的帮助。

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

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)