小编Sau*_*lui的帖子

Firebase Debug 查看从导出的 ipa 文件安装的应用程序中的实时事件

我想要的是?

我想在 Firebase 控制台的调试视图上查看实时事件,其中要从导出的ipa文件安装 iOS 应用程序。我只有两种分发方法选项可以导出我的ipa文件

  1. 特别指定
  2. 发展。

在此处输入图片说明

我做了什么?

我在https://firebase.google.com/docs/analytics/ios/events#view_events_in_the_xcode_debug_console 之后启用了调试模式。还编辑Run Scheme为已Debug executable选中的发布构建配置。

在此处输入图片说明 在此处输入图片说明

结果是什么?

在测试从ipa导出的Development以及Ad-Hoc.

我的问题:

  1. 是否可以从从文件安装的 iOS 应用程序中查看实时事件ipa

  2. 如果是,导出Ad-Doc和 (OR) 时要使用的确切配置是什么Development

ios firebase firebase-analytics

5
推荐指数
2
解决办法
636
查看次数

取消BLE外围设备连接后无法重新连接iOS

在我的项目中,我成功地连接到了蓝牙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中重新连接的最佳实践是什么。我做错什么了吗?

bluetooth ios core-bluetooth bluetooth-lowenergy swift

4
推荐指数
1
解决办法
3057
查看次数

过滤不是来自我的应用程序的 HKSample 数据

在我当前的项目中,我需要将 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)

iphone swift healthkit hkhealthstore

2
推荐指数
1
解决办法
552
查看次数

3.5"Xcode 6.0.1中的模拟器

我目前已将我的Xcode从5.1.1更新到6.0.1,以支持iOS 8.0的应用程序.但我找不到任何3.5"模拟器.3.5"模拟器是否已被删除,或Apple不再支持3.5"iPhone设备了?

iphone ios xcode6 ios8

-2
推荐指数
1
解决办法
295
查看次数