ios – dyld: Library not loaded: @rpath/XCUIAutomation.framework/XCUIAutomation

0
203


I am using Xcode 13 and building a swift project. Earlier it was Alamofire 4 but now I have updated it with Alamofire 5. So now mostly we are using xcframework. After succesful build on launch facing some crash.

I started added framework in Embedded framework in Build Phase but this XCUIAutomation am I not able to find though I have added XCTest.

    dyld[1957]: Library not loaded: '@rpath/XCUIAutomation.framework/XCUIAutomation'
  Referenced from: '/private/var/containers/Bundle/Application/5A584186-DA41-4A38-9ED4-E21BF9C8F998/DemoProj.app/Frameworks/XCTest.framework/XCTest'
  Reason: tried: '/usr/lib/swift/XCUIAutomation.framework/XCUIAutomation' (no such file), '/private/var/containers/Bundle/Application/5A584186-DA41-4A38-9ED4-E21BF9C8F998/DemoProj.app/Frameworks/XCUIAutomation.framework/XCUIAutomation' (no such file), '/usr/lib/swift/XCUIAutomation.framework/XCUIAutomation' (no such file), '/private/var/containers/Bundle/Application/5A584186-DA41-4A38-9ED4-E21BF9C8F998/DemoProj.app/Frameworks/XCUIAutomation.framework/XCUIAutomation' (no such file), '/System/Library/Frameworks/XCUIAutomation.framework/XCUIAutomation' (no such file)Library not loaded: '@rpath/libXCTestSwiftSupport.dylib'
  Referenced from: '/private/var/containers/Bundle/Application/5A584186-DA41-4A38-9ED4-E21BF9C8F998/DemoProj.app/Frameworks/Cuckoo.framework/Cuckoo'
  Reason: tried: '/usr/lib/system/introspection/libXCTestSwiftSupport.dylib' (no such file), '/usr/lib/swift/libXCTestSwiftSupport.dylib' (no such file), '/private/var/containers/Bundle/Application/5A584186-DA41-4A38-9ED4-E21BF9C8F998/DemoProj.app/Frameworks/libXCTestSwiftSupport.dylib' (no such file), '/private/var/containers/Bundle/Application/5A584186-DA41-4A38-9ED4-E21BF9C8F998/DemoProj.app/Frameworks/Cuckoo.framework/Frameworks/libXCTestSwiftSupport.dylib' (no such file), '/usr/lib/swift/libXCTestSwiftSupport.dylib' (no such file), '/private/var/containers/Bundle/Application/5A584186-DA41-4A38-9ED4-E21BF9C8F998/DemoProj.app/Frameworks/libXCTestSwiftSupport.dylib' (no such file), '/usr/lib/swift/libXCTestSwiftSupport.dylib' (no such file), '/private/var/containers/Bundle/Application/5A584186-DA41-4A38-9ED4-E21BF9C8F998/DemoProj.app/Frameworks/libXCTestSwiftSupport.dylib' (no such file), '/usr/local/lib/libXCTestSwiftSupport.dylib' (no such file), '/usr/lib/libXCTestSwiftSupport.dylib' (no such file)
Library not loaded: '@rpath/XCUIAutomation.framework/XCUIAutomation'
  Referenced from: '/private/var/containers/Bundle/Application/5A584186-DA41-4A38-9ED4-E21BF9C8F998/DemoProj.app/Frameworks/XCTest.framework/XCTest'
  Reason: tried: '/usr/lib/swift/XCUIAutomation.framework/XCUIAutomation' (no such file), '/private/var/containers/Bundle/Application/5A584186-DA41-4A38-9ED4-E21BF9C8F998/DemoProj.app/Frameworks/XCUIAutomation.framework/XCUIAutomation' (no such file), '/usr/lib/swift/XCUIAutomation.framework/XCUIAutomation' (no such file), '/private/var/containers/Bundle/Application/5A584186-DA41-4A38-9ED4-E21BF9C8F998/DemoProj.app/Frameworks/XCUIAutomation.framework/XCUIAutomation' (no such file), '/System/Library/Frameworks/XCUIAutomation.framework/XCUIAutomation' (no such file)Library not loaded: '@rpath/libXCTestSwiftSupport.dylib'
  Referenced from: '/private/var/containers/Bundle/Application/5A584186-DA41-4A38-9ED4-E21BF9C8F998/DemoProj.app/Frameworks/Cuckoo.framework/Cuckoo'
  Reason: tried: '/usr/lib/system

any help?