我想在 Firebase 控制台的调试视图上查看实时事件,其中要从导出的ipa
文件安装 iOS 应用程序。我只有两种分发方法选项可以导出我的ipa
文件
我在https://firebase.google.com/docs/analytics/ios/events#view_events_in_the_xcode_debug_console 之后启用了调试模式。还编辑Run Scheme
为已Debug executable
选中的发布构建配置。
在测试从ipa
导出的Development
以及Ad-Hoc
.
是否可以从从文件安装的 iOS 应用程序中查看实时事件ipa
?
如果是,导出Ad-Doc
和 (OR) 时要使用的确切配置是什么Development
?
在我的项目中,我成功地连接到了蓝牙LE外围设备并CBCharacteristic
从该设备获得了现成的价值。我面临一个问题。如果用户需要,我需要断开外围设备并重新连接设备。
我正在使用以下步骤。
1.断开连接:我正在打电话
centralManager?.cancelPeripheralConnection(peripheral)
。此呼叫成功完成了对委托的呼叫func centralManager(central: CBCentralManager, didDisconnectPeripheral peripheral: CBPeripheral, error: NSError?)
2.重新连接:我开始扫描外围设备,就像启动应用程序时一样centralManager!.scanForPeripheralsWithServices(nil, options: nil)
但是此调用从未调用func centralManager(central: CBCentralManager, didDiscoverPeripheral peripheral: CBPeripheral, advertisementData: [String : AnyObject], RSSI: NSNumber)
我尝试连接BLE发现的外围设备的委托。
我的问题是断开BLE外设并在iOS中重新连接的最佳实践是什么。我做错什么了吗?
在我当前的项目中,我需要将 HealthKit 示例与我的应用程序同步。我正在从 HealthKit 获取示例数据并将一些应用程序生成的示例写回 HealthKit。为了获取我正在使用以下功能:-
private func readHealthKitSample(sampleType:HKSampleType, limit: Int, startDate: NSDate, endDate: NSDate, completion: (([HKSample]?, NSError!) -> Void)!){
let mostRecentPredicate = HKQuery.predicateForSamplesWithStartDate(startDate, endDate:endDate, options: .None)
// 2. Build the sort descriptor to return the samples in descending order
let sortDescriptor = NSSortDescriptor(key:HKSampleSortIdentifierStartDate, ascending: false)
// 3. we want to limit the number of samples returned by the query to just 1 (the most recent)
let limit = limit
// 4. Build samples query
let sampleQuery = HKSampleQuery(sampleType: sampleType, …
Run Code Online (Sandbox Code Playgroud) 我目前已将我的Xcode从5.1.1更新到6.0.1,以支持iOS 8.0的应用程序.但我找不到任何3.5"模拟器.3.5"模拟器是否已被删除,或Apple不再支持3.5"iPhone设备了?