【发布时间】:2019-10-20 08:53:06
【问题描述】:
我想尝试使用新的 Apple Catalyst 项目(将 iOS 应用程序移植到 macOS)让 Firebase SDK 同时适用于 iOS 和 macOS 应用程序。
我已经使用 Cocoapods 设置了我的 Xcode 项目,并且使用这个 pod 文件可以正常工作:
platform :ios, '11.0'
abstract_target 'SharedPods' do
use_frameworks!
pod 'Perform'
pod 'Nuke', '~> 7.6.1'
pod 'PureLayout'
pod 'DeviceKit', '~> 2.0'
pod 'lottie-ios'
pod 'Highlightr'
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Fabric'
pod 'Crashlytics'
pod 'GoogleAPIClientForREST/Sheets'
pod 'GoogleSignIn'
pod 'SwiftLint'
target 'xxxxx-app' do
end
target 'xxxxx' do
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['LD_NO_PIE'] = 'NO'
end
end
end
但是,我如何添加以便它为 macOS 构建以及使用相同的目标(pod 文件中的 xxxxx-app)。
【问题讨论】: