【发布时间】:2020-08-14 23:12:02
【问题描述】:
该项目在 Xcode 9 上运行,但我现在使用的是 Xcode 11。 现在项目运行但立即崩溃并出现以下错误。 我在模拟器和设备上都试过了。
*添加了基础框架。
*我进行了全新安装并删除了派生数据。
dyld:未找到符号:_OBJC_CLASS_$_Reachability。引用 来自:/private/var/containers/Bundle/Application/85..C3/app.app/app.
预计在: /private/var/containers/Bundle/Application/85..C3/app.app/Frameworks/Reachability.framework/Reachability。 在 /private/var/containers/Bundle/Application/85..C3/app.app/app
Pod 文件:
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
【问题讨论】:
-
您找到解决方案了吗?
-
加一:你找到解决办法了吗?
标签: ios objective-c swift xcode