Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Ah, finally fixed it! It was a combination of two things.</p> <h1>First Issue</h1> <p>The first issue (<a href="http://f.cl.ly/items/3z3V021H2e1V0a1o173g/Screen%20Shot%202012-11-12%20at%2021.52.41.png" rel="nofollow">here</a> and <a href="http://f.cl.ly/items/3c01132F3V0w3D3b103Q/Screen%20Shot%202012-11-12%20at%2021.55.52.png" rel="nofollow">here</a>) was something to do with with the libraries and search paths. I did a load of different things, not sure what fixed it. I did this:</p> <ol> <li>Changed the Header Search Paths around from "./**" to "$PROJECT_DIR" and finally to "../**", which is what it's at now.</li> <li>Deleted all of the files downloaded for the SoundCloud API.</li> <li>Deleted the entries for the downloaded submodules in .gitmodules and .git/config and then deleted all of the API's folders from .git/modules.</li> <li><p>Then I removed the git cache by navigating to my project's root folder in Terminal and running:</p> <p>git rm --cache ./OAuth2Client</p></li> </ol> <p>(And repeated for each of the added submodules). I then reinstalled the SoundCloudAPI (using git) and possibly cleaned the project (CMD+Shift+K).</p> <h1>Second Issue</h1> <p>The second issue was with a weird runtime error</p> <pre><code>Assertion failure in -[NXOAuth2Client initWithClientID:clientSecret:authorizeURL:tokenURL:accessToken:tokenType:persistent:delegate:], /Users/chiliesontoast/Desktop/iOS/Projects/MobileX Labs/MXLTest App/MXLTestApp/OAuth2Client/Sources/OAuth2Client/NXOAuth2Client.m:82 </code></pre> <p>After some serious research into NXOAuth and looking at the stack trace I realised that I needed to include the following code in the function before trying to perform any SCRequest methods:</p> <pre><code>[SCSoundCloud setClientID:@"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" secret:@"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" redirectURL:[NSURL URLWithString:@"AppName://oauth"]]; </code></pre> <p>So, that's how I went about solving it. I really hope this helps someone as I was stuck for a whole ~20 hours on this.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload