我有另一个项目,当我安装pod时,控制台告诉我:
Analyzing dependencies
[!] The dependency `MMDrawerController (~> 0.5.7)` is not used in any concrete target.
The dependency `ViewUtils` is not used in any concrete target.
The dependency `CPAnimationSequence` is not used in any concrete target.
The dependency `iCarousel` is not used in any concrete target.
The dependency `BlocksKit (~> 2.2.5)` is not used in any concrete target.
The dependency `AFNetworking` is not used in any concrete target.
The dependency `MBProgressHUD (~> 0.8)` is not used in any concrete target. …Run Code Online (Sandbox Code Playgroud) 我有一个用Swift编写的应用程序(我们称之为MyApp),其中包含以下目标:
MyApp :主要目标MyAppKit :构建应用程序及其扩展之间共享的代码框架的目标,主要是API后端和数据库处理MyAppWidget:一个使用MyAppKit框架的Today View Widget(或者现在叫做的任何东西).该MyAppKit框架被链接到使用它,即每个目标MyApp和MyAppWidget.输入Cocoapods:我曾经有过以下的Podfile结构:
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
# Mostly UI or convenience pods
pod 'Eureka', '~> 2.0.0-beta'
pod 'PKHUD', '~> 4.0'
pod '1PasswordExtension', '~> 1.8'
end
target 'MyAppKit' do
# Backend pods for networking, storage, etc.
pod 'Alamofire', '~> 4.0'
pod 'Fuzi', '~> 1.0'
pod 'KeychainAccess', '~> 3.0'
pod 'RealmSwift', '~> 2.0'
pod 'Result', '~> 3.0'
end
target 'MyAppWidget' do
# Added …Run Code Online (Sandbox Code Playgroud) 我正在我的应用程序共享扩展程序中进行一些API Firebase调用(下载一些用户特定数据)但用户未登录到Firebase(也currentUser就是nil),所以我没有得到任何数据,因为我需要uid.换句话说,数据库仅允许经过身份验证的用户访问数据.我怎样才能解决这个问题?