ios - _BSMachError while running Stanford's CS193p Smashtag app -


i downloaded smasthag demo app course's site. project builds fine (after small changes in twitter, twitterrequest etc. classes, because use latest xcode 7b4) , works fine on simulator (i had add nsapptransportsecurity key info.plist), not on device - doesn't fetch tweets . tested on both iphone 6 ios 9 public beta , ipad 2 ios 8.4. moreover, when app running in simulator , change hashtag search, whole tableview reloads new tweets, in console this:

2015-07-23 03:24:15.560 smashtag[25991:4344251] _bsmacherror: (os/kern) invalid capability (20) 2015-07-23 03:24:15.560 smashtag[25991:4344251] _bsmacherror: (os/kern) invalid name (15) 

app still runs fine, error bugs me. couldn't fine _bsmacherror in google (just 1 lonely indonesian tweet). can't why app doesn't fetch tweets on device.

to fix issue should set locale en_us.

change private extension astwitterdate in tweet.swift following fix issue on non en_us devices.

... private extension string {   var astwitterdate: nsdate? {     {         let dateformatter = nsdateformatter()         dateformatter.dateformat = "eee mmm dd hh:mm:ss z yyyy"         dateformatter.locale = nslocale(localeidentifier: "en_us")         let createdat = dateformatter.datefromstring(self)         return createdat     }   } } 

after application should load , show data correctly.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -