• Nitin Muthyala 18
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Downloaded the mobile sdk from github 
created a sample app using forceios create  


when I try to run it ...THIS IS ALL I GET AND I HAVE NO IDEA WHY 
CAN SOMEONE HELP ME PLEASE

Does it have something to do with the following lines of code in the app delegate class 



2014-04-09 15:14:51.907 UsingDatabaseDotCom[4392:60b] userLogoutSettingEnabled: 0
2014-04-09 15:14:52:877 UsingDatabaseDotCom[4392:60b] DEBUG|SFAuthenticationManager|No authentication in progress.  Initiating new authentication request.
2014-04-09 15:14:52:919 UsingDatabaseDotCom[4392:60b] DEBUG|SFCrypto|Already have a base app identifier.  Retrieving from keychain.
2014-04-09 15:14:53.072 UsingDatabaseDotCom[4392:60b] SFOAuthCredentials:tokenForKey: (-25300) no existing "com.salesforce.oauth.refresh" item matching "{
    acct = "UsingDatabaseDotCom-Default-login.salesforce.com";
    class = genp;
    "m_Limit" = "m_LimitOne";
    "r_Attributes" = 1;
    svce = "com.salesforce.oauth.refresh";
}"
2014-04-09 15:14:53.073 UsingDatabaseDotCom[4392:60b] SFOAuthCoordinator:authenticate: authenticating as 3MVG98XJQQAccJQd8FO5xWT44VitAomG40H754ndeSg1atUQ5I2lHgE.ILVK0_zvbepoPWqa443vHefoE1YEY without refresh token on 'https://login.salesforce.com' ...
2014-04-09 15:14:53:122 UsingDatabaseDotCom[4392:60b] DEBUG|SFCrypto|Already have a base app identifier.  Retrieving from keychain.
2014-04-09 15:14:53.123 UsingDatabaseDotCom[4392:60b] SFOAuthCredentials:tokenForKey: (-25300) no existing "com.salesforce.oauth.refresh" item matching "{
    acct = "UsingDatabaseDotCom-Default-login.salesforce.com";
    class = genp;
    "m_Limit" = "m_LimitOne";
    "r_Attributes" = 1;
    svce = "com.salesforce.oauth.refresh";
}"
2014-04-09 15:14:53:596 UsingDatabaseDotCom[4392:60b] DEBUG|SFAuthenticationManager|oauthCoordinator:willBeginAuthenticationWithView:
2014-04-09 15:14:53.597 UsingDatabaseDotCom[4392:60b] SFOAuthCredentials:tokenForKey: (-25300) no existing "com.salesforce.oauth.activation" item matching "{
    acct = "UsingDatabaseDotCom-Default-login.salesforce.com";
    class = genp;
    "m_Limit" = "m_LimitOne";
    "r_Attributes" = 1;
    svce = "com.salesforce.oauth.activation";
}"
2014-04-09 15:14:53.598 UsingDatabaseDotCom[4392:60b] SFOAuthCoordinator:beginUserAgentFlow with https://login.salesforce.com/services/oauth2/authorize?client_id=3MVG98XJQQAccJQd8FO5xWT44VitAomG40H754ndeSg1atUQ5I2lHgE.ILVK0_zvbepoPWqa443vHefoE1YEY&redirect_uri=https://no_redirect_uri&display=touch&response_type=token&scope=refresh_token%20api
2014-04-09 15:14:53.766 UsingDatabaseDotCom[4392:60b] SFOAuthCoordinator:webView:shouldStartLoadWithRequest: (navType=5): host=login.salesforce.com : path=/services/oauth2/authorize
2014-04-09 15:14:53.767 UsingDatabaseDotCom[4392:60b] SFOAuthCoordinator:webViewDidStartLoad: host=(null) : path=(null)
2014-04-09 15:14:53:767 UsingDatabaseDotCom[4392:60b] DEBUG|SFAuthenticationManager|oauthCoordinator:didStartLoad:
2014-04-09 15:14:54:934 UsingDatabaseDotCom[4392:60b] DEBUG|SFAuthenticationManager|oauthCoordinator:didFinishLoad:error:
2014-04-09 15:14:54:934 UsingDatabaseDotCom[4392:60b] DEBUG|SFAuthenticationManager|oauthCoordinator:didBeginAuthenticationWithView
2014-04-09 15:14:54:934 UsingDatabaseDotCom[4392:60b] DEBUG|SFRootViewManager|SFRootViewManager: Presenting view controller (SFAuthorizingViewController).

I made a test hybrid remote app that I could then modify to do what is needed for a quick proof of concept. However, when I run the test, I immediately get an error as OAuth never loads in the first place. Any pointing in the right direction would be awesome. Was following the documntation. Error log follows:

 

2013-09-24 10:28:25.159 Test[39858:c07] userLogoutSettingEnabled: 0

2013-09-24 10:28:25.191 Test[39858:c07] Multi-tasking -> Device: YES, App: YES

2013-09-24 10:28:25:224 Test[39858:c07] DEBUG|SFAuthenticationManager|No authentication in progress.  Initiating new authentication request.

2013-09-24 10:28:25.349 Test[39858:c07] SFOAuthCredentials:tokenForKey: (-25300) no existing "com.salesforce.oauth.refresh" item matching "{

    acct = "Test-Default-login.salesforce.com";

    class = genp;

    "m_Limit" = "m_LimitOne";

    "r_Attributes" = 1;

    svce = "com.salesforce.oauth.refresh";

}"

2013-09-24 10:28:25.349 Test[39858:c07] SFOAuthCoordinator:authenticate: authenticating as 3MVG9Iu66FKeHhINkB1l7xt7kR8czFcCTUhgoA8Ol2Ltf1eYHOU4SqQRSEitYFDUpqRWcoQ2.dBv_a1Dyu5xa without refresh token on 'https://login.salesforce.com' ...

2013-09-24 10:28:25.351 Test[39858:c07] SFOAuthCredentials:tokenForKey: (-25300) no existing "com.salesforce.oauth.refresh" item matching "{

    acct = "Test-Default-login.salesforce.com";

    class = genp;

    "m_Limit" = "m_LimitOne";

    "r_Attributes" = 1;

    svce = "com.salesforce.oauth.refresh";

}"

2013-09-24 10:28:25:354 Test[39858:c07] DEBUG|SFAuthenticationManager|oauthCoordinator:willBeginAuthenticationWithView

2013-09-24 10:28:25.355 Test[39858:c07] SFOAuthCredentials:tokenForKey: (-25300) no existing "com.salesforce.oauth.activation" item matching "{

    acct = "Test-Default-login.salesforce.com";

    class = genp;

    "m_Limit" = "m_LimitOne";

    "r_Attributes" = 1;

    svce = "com.salesforce.oauth.activation";

}"

2013-09-24 10:28:25.355 Test[39858:c07] SFOAuthCoordinator:beginUserAgentFlow with https://login.salesforce.com/services/oauth2/authorize?client_id=3MVG9Iu66FKeHhINkB1l7xt7kR8czFcCTUhgoA8Ol2Ltf1eYHOU4SqQRSEitYFDUpqRWcoQ2.dBv_a1Dyu5xa&redirect_uri=https://test.salesforce.com/ services/oauth2/callback&display=touch&response_type=token&scope=refresh_token%20web%20api

2013-09-24 10:28:25.373 Test[39858:c07] SFOAuthCoordinator:webView:shouldStartLoadWithRequest: (navType=5): host=(null) : path=(null)

2013-09-24 10:28:25.375 Test[39858:c07] SFOAuthCoordinator:didFailLoadWithError Error Domain=WebKitErrorDomain Code=101 "The operation couldn’t be completed. (WebKitErrorDomain error 101.)" on URL: (null)

2013-09-24 10:28:25:376 Test[39858:c07] DEBUG|SFAuthenticationManager|oauthCoordinator:didFailWithError: Error Domain=WebKitErrorDomain Code=101 "The operation couldn’t be completed. (WebKitErrorDomain error 101.)", authInfo: <SFOAuthInfo: 0x9926520, authType=SFOAuthTypeUserAgent>