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

时间:2021-01-21 21:04:33

标签: xcode cocoapods ios-simulator simulator virtual-device-manager

因此,我的应用程序在设备(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

0 个答案:

没有答案