My project code not running in Xcode(15.3) but the same code running in Xcode 14.2 in swift how to fix in xcode 15.3?

101 views Asked by At

I have project which is perfectly running in Xcode 14.2 but the same code not running in Xcode 15.3 . but to make it run i tried below changes in Xcode 15.3 as per its error suggestions.

initially i have removed all pods and again added and pod install but then got so many cant fix errors--- that doesnt work so in 2nd process

I made all pods and target

1 ) Minimum Deployments: increased from 8.0 to 12.0

2 ) Buildsettings > Excluded Architectures > Debug > iOSSimulatorSDK > arm64

now i got Error: please guide me to run my code in xcode 15.3

/Users/test/Desktop/app-ios/folder/MVC/Modal/ComposeMsgModal/MatchmultifacesModal.swift:10:8 No such module 'ObjectMapper'

enter image description here

and i done this in pod file

 # Enable DEBUG flag in Swift for SwiftTweaks
 post_install do |installer|
  installer.pods_project.targets.each do |target|
    config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'

      if target.name == 'EZSwiftExtensions'
          target.build_configurations.each do |config|
              config.build_settings['SWIFT_VERSION'] = '4.0'
          end
      end
      if target.name == 'AlamofireImage' || target.name == 'NVActivityIndicatorView' ||  target.name == 'SwiftMessages' || target.name == 'Charts'
          target.build_configurations.each do |config|
              config.build_settings['SWIFT_VERSION'] = '4.1'
           end
       end
    end
  end
end 

and i have below pods

enter image description here

1

There are 1 answers

1
Robson Novato On

When I have problems changing xcode versions and the pods arent being seen I just do:

  • Pod deintegrate
  • pod cache clean --all
  • pod update

Futhermore, It's possible that the target that you are importing this module doesnt interacts with ObjectMapper, if you are using different modules give a different import for all of them. If there's more info and the pod commands doesnt work let me know ;)