VuframeLab / PanicAR

Augmented Reality Framework for iOS – PanicAR will be sunset April 30th, 2017
http://panicar.vuframe.com
207 stars 61 forks source link

Integration in Swift Application #34

Closed benjaminburkhardt closed 8 years ago

benjaminburkhardt commented 8 years ago

Has anyone been successful in integrating the framework in an Swift Application?

I get the Framework running so far, that I get the camera, radar and infos, but the PoiLabels don't show up... img_0230

This are the warnings from the console:

2016-05-06 14:50:29.045 panicARIntegration[1866:629131] PARController – Configuration: Debug
2016-05-06 14:50:29.070 panicARIntegration[1866:629131] Cannot find executable for CFBundle 0x15f685cb0 </var/containers/Bundle/Application/31E2B30C-59CF-49E7-8872-01E974860C79/panicARIntegration.app/PanicARKitResources.bundle> (not loaded)
2016-05-06 14:50:29.071 panicARIntegration[1866:629131] PARController – using DEFAULT STRINGS, because PanicARKit.strings not found at: (null)
2016-05-06 14:50:29.071 panicARIntegration[1866:629131] PARController – Configuration: Debug
2016-05-06 14:50:29.071 panicARIntegration[1866:629131] PARController – using DEFAULT STRINGS, because PanicARKit.strings not found at: (null)
2016-05-06 14:50:29.073 panicARIntegration[1866:629131] Api Key set to: 
2016-05-06 14:50:29.073 panicARIntegration[1866:629131] PARController: empty API-Key!
Using Demo-Version of Framework (Limitations enabled)!
Not intended for Release!
2016-05-06 14:50:29.165 panicARIntegration[1866:629131] could not load template named 'DefaultPoiLabel' from main bundle, trying framework default bundle now...
2016-05-06 14:50:29.176 panicARIntegration[1866:629131] could not load template named 'DefaultPoiLabel' from main bundle, trying framework default bundle now...
2016-05-06 14:50:29.178 panicARIntegration[1866:629131] could not load template named 'DefaultPoiLabel' from main bundle, trying framework default bundle now...
2016-05-06 14:50:29.183 panicARIntegration[1866:629131] could not load template named 'PoiLabelWithImage' from main bundle, trying framework default bundle now...
2016-05-06 14:50:29.189 panicARIntegration[1866:629131] Number of PAR Objects in SharedController: 4
2016-05-06 14:50:29.189 panicARIntegration[1866:629131] could not load template named 'DefaultPoiLabel' from main bundle, trying framework default bundle now...
2016-05-06 14:50:29.191 panicARIntegration[1866:629131] could not load template named 'DefaultPoiLabel' from main bundle, trying framework default bundle now...
2016-05-06 14:50:29.232 panicARIntegration[1866:629131] setSensorUpdateMode PSKSensorManagerUpdateLocation|PSKSensorManagerUpdateHeading|PSKSensorManagerUpdateMotion=7
2016-05-06 14:50:29.469 panicARIntegration[1866:629131] could not load template named 'DefaultPoiLabel' from main bundle, trying framework default bundle now...
2016-05-06 14:50:29.558 panicARIntegration[1866:629131] could not load template named 'DefaultPoiLabel' from main bundle, trying framework default bundle now...
2016-05-06 14:50:29.898 panicARIntegration[1866:629131] updateSignalQuality: signal quality changed (SIGNAL N/A)
2016-05-06 14:50:29.903 panicARIntegration[1866:629131] updateSignalQuality: signal quality changed to PSKSignalQualityBad
2016-05-06 14:50:30.135 panicARIntegration[1866:629131] updateSignalQuality: signal quality changed to PSKSignalQualityMedium
2016-05-06 14:50:32.107 panicARIntegration[1866:629131] updateSignalQuality: signal quality changed to PSKSignalQualityOkay
2016-05-06 14:54:01.839 panicARIntegration[1866:629131] PSKDeviceAttitude:setLocationFromCLLocation (VERY OLD LOCATION) <+30.53841835,-87.21673029> +/- 5.00m (speed 0.00 mps / course -1.00) @ 06.05.16, 14:50:45 Nordamerikanische Inland-Sommerzeit
2016-05-06 14:54:01.888 panicARIntegration[1866:629131] updateSignalQuality: signal quality changed to PSKSignalQualityBad

Perhaps anyone can help me with that?

Djembejo commented 8 years ago

Did you include PanicARKitResources.bundle ?

benjaminburkhardt commented 8 years ago

Yes we included that.

On Wed, May 11, 2016 at 7:20 AM -0700, "Djembejo" notifications@github.com wrote:

Did you include PanicARKitResources.bundle ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub

sergii-frost commented 8 years ago

Hi, my question is related to Swift and PanicAR, but also Cocoapods. Please let me know if I need to create separate issue for that.

I am using use_frameworks! flag in the Podfile, but I am getting only PanicARKitResources.bundle in the Pods project after that. Do I still need to add PanicAR framework manually into project?

azeitler commented 8 years ago

We are loling into getting Swift and cocoapods support up and running! Stay tuned.

azeitler commented 8 years ago

@bubenni you need to make sure the resources bundle is included and found. The app cannot find the default Label template. You can also add the Label template XIB file from the sources folder directly and style it yourself.