خطأ dyld: Library not loaded: @rpath/libswiftCore.dylib عند تشغيل تطبيق iOS
مرحباً بالجميع! أنا مطور iOS مبتدئ، أكتب أول تطبيق لي بلغة Swift. أستخدم Xcode 14، وأنشأت المشروع من الصفر باستخدام القالب القياسي Single View App. كان كل شيء يُبنى ويُشغل بشكل طبيعي، ولكن بعد أن أضفت بعض المكتبات الخارجية عبر CocoaPods (Alamofire و SwiftyJSON)، عند التشغيل على محاكي iPhone 14 Pro (iOS 16.2) يظهر الخطأ:
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /Users/username/Library/Developer/CoreSimulator/Devices/.../.../MyApp.app/Frameworks/libswiftCore.dylib
Reason: no suitable image found. Did find:
/Users/username/Library/Developer/CoreSimulator/Devices/.../.../MyApp.app/Frameworks/libswiftCore.dylib: mmap() error 1 at address=0x..., size=0x... segment=__TEXT with unix errno=1 (Unknown error: 0)
التطبيق يُفتح، ويظهر شاشة بيضاء لثانية ثم يتعطل. هذا هو ملف Podfile الخاص بي:
platform :ios, '15.0'
target 'MyApp' do
use_frameworks!
pod 'Alamofire', '~> 5.6'
pod 'SwiftyJSON', '~>