swift – iOS cocoapods giving dyld: Image not discovered: when the applying is launched


I’ve a 3rd get together XCFramework that must be built-in in undertaking.

This library has the dependencies for Alamofire and my utility can be utilizing Alamofire as a pod file.
When I’m launching the applying its crashing with under error.

Xcode model – 13

Pods model – 1.11.3

dyld[56651]: Image not discovered: __ZN5swift34swift50override_conformsToProtocolEPKNS_14TargetMetadataINS_9InProcessEEEPKNS_24TargetProtocolDescriptorIS1_EEPFPKNS_18TargetWitnessTableIS1_EES4_S8_E

Referenced from: <2CFE95B3-EC89-3459-8184-A4862E6E69E1> /Customers/Library/Developer/CoreSimulator/Gadgets/0DB97CE5-10D4-4A9F-ACD0-1F40BF41BD9E/knowledge/Containers/Bundle/Software/01B55A2F-DEAB-4142-B2CF-1207258F32E5/SAMPLEAPP.app/Frameworks/**THIRDPARTY.framework/THIRDPARTY**

 Anticipated in: <2BD7059E-F63D-31FB-BC86-137609375FD3> /Customers/Library/Developer/CoreSimulator/Gadgets/0DB97CE5-10D4-4A9F-ACD0-1F40BF41BD9E/knowledge/Containers/Bundle/Software/01B55A2F-DEAB-4142-B2CF-1207258F32E5/SAMPLEAPP.app/Frameworks/**Alamofire.framework/AlamofireiOS** cocoapods giving dyld: Image not discovered:  when the applying is launched

The third get together library requires post_install script to be written in pod file to make it work.

if ['ThirdParty','Alamofire'].embody? goal.identify
  goal.build_configurations.every do |config|
    config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
 finish
finish

The Major Applicationn has under post_install script

post_install do |installer|
 installer.pods_project.targets.every do |goal|
  goal.build_configurations.every do |config|
   config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
   config.build_settings.delete 'IPHONES_DEPLOYMENT_TARGET'
   config.build_settings['SWIFT_VERSION'] = ‘XX.0’
   config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
   finish
 finish
 finish

I’ve additionally tried to debug in machine however its giving related error.

Any assist in proper route can be extremely appreciated.
Thanks prematurely

Leave a Reply