我正试图通过CocoaPods网站访问我的图书馆信息,但我无法做到.所有其他库似乎都能够扩展(我的是MKWeatherUndergroundKit)

这是我的podspec
Pod::Spec.new do |s|
s.name = "MKWeatherUndergroundKit"
s.version = "0.6"
s.summary = "A simple iOS and OS X library for retrieving weather information using the Weather Underground API"
s.homepage = "https://github.com/MendyK/MKWeatherUndergroundKit"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "MendyK" => "myEmail@gmail.com" }
s.social_media_url = "https://twitter.com/MenndK"
s.platform = :ios, '8.0'
s.source = { :git => "https://github.com/MendyK/MKWeatherUndergroundKit.git", :tag => "0.6"}
s.source_files = "MKWeatherUndergroundKit/*.{h,m}"
s.resources = "MKWeatherUndergroundKit/Climacons.ttf"
s.requires_arc = true
s.frameworks = 'CoreGraphics', 'CoreLocation'
end
Run Code Online (Sandbox Code Playgroud) 当我react-native init project在一个文件夹中运行时,我无法运行该项目(我收到错误Print:Entry,":CFBundleIdentifier",不存在).但是,在我的桌面文件夹中,当我做同样的事情(react-native init project那时react-native run-ios)我根本没有任何错误.
为什么会发生这种情况?
码:
override func viewDidLoad() {
...
NotificationCenter.default.addObserver(self, selector: #selector(closedCaptioningStatusChanged(_:)), name: .UIAccessibilityClosedCaptioningStatusDidChange, object: nil)
}
@objc func closedCaptioningStatusChanged(_ notif: NSNotification) {
print("closedCaptioningStatusChanged")
}
Run Code Online (Sandbox Code Playgroud)
我尝试更改可访问性和默认视频播放器中的CC设置.任何想法为什么closedCaptioningStatusChanged不被称为?
编辑:
UIAccessibility由于某种原因,不会调用所有设置的通知.有什么我不做的事吗?
编辑2:
我在模拟器和设备(Apple TV)上运行.我尝试更改辅助功能和AVPlayer中的CC设置,但它们都没有触发通知.
我知道我们可以用
render() {
return <FlatList
onScroll={this.handleScroll}
/>
}
handleScroll = (event) => {
//get offset by using
//event.nativeEvent.contentOffset
}
Run Code Online (Sandbox Code Playgroud)
但我不确定如何设置