u-blox / iOS-u-blox-BLE

iOS app for stand-alone Bluetooth low energy modules from u-blox.
19 stars 6 forks source link

Fatal error on load SCNScene(named: "art.scnassets/NINA-B112.obj") ? #4

Open esutton opened 4 years ago

esutton commented 4 years ago

This works fine on the released version of "u-blox BLE" in the iOS app store.

I can find no file named "art.scnassets/NINA-B112.obj" in resources?

Steps to Reproduce 1) Start Scan 2) Select HeartRateServer ( A QT

2020-05-21 16:47:45.095868-0500 U-blox[10013:2030208] 
Fatal error: Unexpectedly found nil while unwrapping an Optional value: 
file Ublox/ViewControllers/OverviewViewController.swift, line 255

https://github.com/u-blox/iOS-u-blox-BLE/blob/8d28b2152ee9ff4c60708e64376745f027ee06b5/U-blox/ViewControllers/OverviewViewController.swift#L254

struct OverviewModel {
    unowned var model: SCNNode
    var sceneWithLights: SCNScene
    var accelerometer = Accelerometer()
    var lastGyroscopeMeasurementTime: UInt32 = 0

    init() {
        let scene = SCNScene(named: "art.scnassets/NINA-B112.obj")!

Is there a file missing from repo?

I would dearly love to use this app to learn how to communicate with my u-blox

Any tips or suggestions?

esutton commented 4 years ago

Switching to dev branch got past this exception.

git checkout remotes/origin/development

The master seems to handle dark themes better.

However, I will switch to light for now. :-)

iAmita commented 4 years ago

i am also getting Fatal error: Unexpectedly found nil while unwrapping an Optional value: file Ublox/ViewControllers/OverviewViewController.swift, line 255 . Seems there is a missing .obj file in project. Please share a fix for it. any help will be appreciated~