Error: Library not loaded: @rpath/libswiftCore.dylib in Flutter for iOS

Viewed 735

I'm using flutter in android studio to build my iOS applications. I have XCode 13 is installed on mac. I have recently moved from windows to mac. All of my mini applications are working fine on iPhone Emulators except two of my major applications. Upon building them, My application crashes on startup and crash report gives the following error:

Reason: tried: '/Users/bilalsaeed/Library/Developer/
Xcode/DerivedData/Runner-bnnvczalmzdqlyblquzaiyfkgjkk/Build/Products/Debug-iphonesimulator/libswiftCore.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/
Contents/Resources/RuntimeRoot/usr/lib/system/introspection/libswiftCore.dylib' (no such file), '/Users/bilalsaeed/Library/Developer/CoreSimulator/Devices/592E30C6-E9E2-4658-B317-FA2833682817/data/Containers/Bundle/Application/91C8C35A-210B-4B0C-896F-643FB5D82265/Runner.app/Frameworks/libswiftCore.dylib' (no such file), 
'/Users/bilalsaeed/Library/Developer/CoreSimulator/Devices/592E30C6-E9E2-4658-B317-FA2833682817/data/Containers/Bundle/Application/91C8C35A-210B-4B0C-896F-643FB5D82265/Runner.app/Frameworks/libswiftCore.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libswiftCore.dylib' (no such file)
Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /Users/bilalsaeed/Library/Developer/CoreSimulator/Devices/592E30C6-E9E2-4658-B317-FA2833682817/data/Containers/Bundle/Application/91C8C35A-210B-4B0C-896F-643FB5D82265/Runner.app/Runner
  Reason: tried: '/Users/bilalsaeed/Library/Developer/Xcode/DerivedData/Runner-bnnvczalmzdqlyblquzaiyfkgjkk/Build/Products/Debug-iphonesimulator/libswiftCore.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection/libswiftCore.dylib' (no such file), '/Users/bilalsaeed/Library/Developer/CoreSimulator/Devices/592E30C6-E9E2-4658-B317-FA2833682817/data/Containers/Bundle/Application/91C8C35A-210B-4B0C-896F-643FB5D82265/Runner.app/Frameworks/lib
swiftCore.dylib' (no such file), '/Users/bilalsaeed/Library/Developer/CoreSimulator/Devices/592E30C6-E9E2-4658-B317-FA2833682817/data/Containers/Bundle/Application/91
(lldb) 

I have seen this solution but unable to understand it.

Consider me as a newbie for building iOS applications using flutter.

0 Answers
Related