santibernaldo
santibernaldo

Reputation: 835

Getting compilation errors & warnings after install Soundcloud API through CocoaPods in Xcode

Having problems with the Soundcloud API.

I'm getting multiple Warnings & issues and I don't know what can I do to fix that.

Have I to change header search paths & other link flags? I tried the Terminal version of Installation as well and I got warnings & compilation errors

Appreciate your helping, I'm stuck trying to run propertly the Soundcloud API without warnings and I'm not able to do that.

I attach some screenshots.

enter image description here

enter image description here

enter image description here

Thanks

Upvotes: 1

Views: 458

Answers (2)

santibernaldo
santibernaldo

Reputation: 835

It's working!!! Thanks for your help!! I'm very happy :D I was forcing the loading of the libraries without the prefix libPods that is added installing the project through CocoaPods. The trick to hidden the Deprecated functions was really helpful. After one day trying different settings, its running.

These are the linker flags I put in "Other Linker Flags"

-force_load $(BUILT_PRODUCTS_DIR)/libPods-OHAttributedLabel.a

-force_load $(BUILT_PRODUCTS_DIR)/libPods-CocoaSoundCloudUI.a

-force_load $(BUILT_PRODUCTS_DIR)/libPods-CocoaSoundCloudAPI.a

-force_load $(BUILT_PRODUCTS_DIR)/libPods-NXOAuth2Client.a

In "Header Search Paths" I put "./**"

enter image description here

Upvotes: 0

Jeffery Thomas
Jeffery Thomas

Reputation: 42588

This looks a lot like a duplicate of XCode - iOS: Can't resolve conflict between CocoaLibSpotify and Parse framework.

I'm making a guess here, but are you doing -all_load?

  • Remove -ObjC and -all_load
  • Add -force_load <SoundCloudAPI library path> to load only libSoundCloudAPI.

After reading the github page, you may not need -force_load at all.


You may also need to adjust your warning level because of all the deprecated APIs.

Upvotes: 2

Related Questions