“Unresolved Identifier” error SparkSetupMainController()” custom Particle Photon Swift iOS app (Standard Particle documentation procedure) -
hello there,
i’m trying connect particle photon custom swift ios app. i’m writing code in swift , use official particle ios development documentation guidance. (https://docs.particle.io/guide/how-to-build-a-product/mobile-app/)
all sdk’s within xcode project , ready used. sdk installation process via cocoapods didn’t show errors or ploblems.
i had create uibutton (startdevicesetup) , added code (i think) asks functions within particle’s sdk.
code given particle in documentation:
@ibaction func startdevicesetup(sender: anyobject) { var setupcontroller = sparksetupmaincontroller() self.presentviewcontroller(setupcontroller, animated: true, completion: nil) }
after creating , connecting uibutton , entering following code. xcode gives me unresolved identifier error when i’m trying make build:
the internet tells me “unresolved identifier” seems common error have target memberships or classes aren’t public. unfortunately can’t figure out location of problem. strictly followed particles documentation , did nothing different.
additional information
i’m using xcode 8.0, ios 10 , swift 3. installed particles sdk’s using cocoapods. described in official particle documentation. created new uibutton within main.storyboard , connected action viewcontroller etc.
also imports “import spark-sdk” didn't make difference.
thank reading question, i’m still searching answer. appreciated if me :)
somehow xcode fixed itself. reinstalled it. importing spark-sdk , sparksetup in viewcontroller works fine now.
Comments
Post a Comment