The project was running on Xcode 9 , but I am now using Xcode 11. Now the project runs but instantly crashes with the following error. I tried in both simulator and device.
*The foundation framework is added.
*I did a clean install and deleted derived data as well.
dyld: Symbol not found: _OBJC_CLASS_$_Reachability. Referenced from: /private/var/containers/Bundle/Application/85..C3/app.app/app.
Expected in: /private/var/containers/Bundle/Application/85..C3/app.app/Frameworks/Reachability.framework/Reachability. in /private/var/containers/Bundle/Application/85..C3/app.app/app
PodFile:
platform :ios, '9.0'
use_frameworks!
def pods
pod 'FBSDKCoreKit', '4.44.1'
pod 'FBSDKLoginKit', '4.44.1'
pod 'FBSDKShareKit', '4.44.1'
pod 'AFNetworking', '~> 2.5.4'
pod 'MBProgressHUD', '~> 0.8'
pod 'Realm', '~> 3.1.1'
pod 'Reachability', '~> 3.1'
pod 'ReachabilitySwift', '~> 5.0.0'
end
target 'app-2' do
pods
end
target 'app' do
pods
end
target 'ServiceExtension' do
pod 'ReachabilitySwift', '~> 5.0.0'
end
target 'LServiceExtension' do
pod 'ReachabilitySwift', '~> 5.0.0'
end
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete('CODE_SIGNING_ALLOWED')
config.build_settings.delete('CODE_SIGNING_REQUIRED')
end
end