Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SoundCloud iOS SDK architectures

Im working on a music streaming iOS project and want to leverage the SoundCloud SDK.

I followed this guide to the tee: https://developers.soundcloud.com/docs/api/ios-quickstart

The five SoundCloud dependencies are:

  1. CocoaSoundCloudAPI
  2. OAuth2Client
  3. JSONKit
  4. OHAttributedLabel
  5. CocoaSoundCloudUI

All five of these projects are available as submodules that you simply add to your current git repository. According to the guide linked above, you are supposed to be able to add them and move on with your project. However, their architectures are all different! CocoaSOundCloudAPI, JSONKit, OHAttributedLabel and CocoaSoundCloudUI are all 32bit architecture projects, while OAuth2Client is a 64bit architecture project.

No matter what I build my project as, 32 or 64bit, I get a Mach-O linker error. I've added both 32bit and 64bit as Valid Architectures in my main Xcode Project, but the issue persists.

I have also not been able to find other versions of these submodules. I can't be the only one with this problem, as I have literally followed the guide word by word, yet I can't find any solution anywhere.

Please help me out!

I am using Xcode 6 and building for the iOS8 SDK.

Thanks!

Edit:

Here are screenshots of my architectures and the error... arhitectureserroes

like image 269
tbogatchev Avatar asked Oct 30 '14 19:10

tbogatchev


Video Answer


2 Answers

I HIGHLY suggest using CocoaPods to manage this dependency. I once integrated SoundCloud into a project without using CocoaPods and it was a pain in the rear. Look at this link and do a search for CocoaPods to see how to install it: https://github.com/soundcloud/CocoaSoundCloudAPI

like image 200
AdamPro13 Avatar answered Nov 08 '22 22:11

AdamPro13


Here's something that helped me:

  1. Go to the SmartSpeakers target (or whichever is the target for your app)
  2. Build Settings -> Other Linker Flags
  3. Add $(inherited)
  4. Build it!
like image 34
Andrew Konoff Avatar answered Nov 09 '22 00:11

Andrew Konoff