libspotify-mac 12.1.51.2

libspotify-mac 12.1.51.2

测试测试过
Lang语言 Obj-CObjective C
许可证 商业
发布最后发布2014年12月

未声明 维护。



libspotify-mac 12.1.51.2

  • Spotify AB
                             libspotify 12.1.51
               ----------------------------------------

                   Copyright © 2006-2012 Spotify Ltd
  1. 简介

    这是一个 libspotify C API 包。有了它,您可以编写利用 Spotify 音乐流媒体服务的应用程序。

  2. 包结构

    该包的结构如下:

    libspotify-12.1.51-Darwin/ ChangeLog 包含 libspotify 中新增和更改的功能说明 README README 文件 LICENSE 该库的许可证以及相关文件 licenses.xhtml 包含在 libspotify 中的第三方库的许可证 libspotify.framework 包含头文件和共享库的 libspotify 框架 doc/html/ HTML 格式的文档(此信息也在线上可用) images/ 供使用 libspotify 的应用程序使用的图形,参见下面的第 6 节 man3/ libspotify 的手册页 examples/ 示例源代码的根目录

  3. 兼容性和要求

    该库在 Mac OS X 10.6 上编译为双向通用二进制。它需要一个

    • Intel 处理器
    • Mac OS X 10.4 或更高版本
  4. 安装

4.1 在应用程序和插件中捆绑

libspotify.framework is built with an install_name of
@loader_path/../Frameworks/libspotify.framework/Versions/Current/libspotify,
and should work as-is when bundled with your application or plugin.

To bundle it using Xcode 4:
1. Drag and drop libspotify.framework to the "Frameworks" group in
   the project navigator. Check "Copy items into destination groups's
   folder (if needed)".
2. In the project navigator, select your project. Select your target
   and select the "Build Phases" tab.
3. Click on "Add Build Phase->Add Copy files".
4. Select Destination "Frameworks" in the "Copy Files" group.
5. You probably want to rename this build phase by double clicking on
   the title. Name it something like "Copy Frameworks".
6. Drag libspotify.framework from the project navigator and drop it
   in the "Copy Frameworks" group.
7. Build. You can confirm that the above worked by right-clicking
   on your .app under Products in the project navigator and and selecting
   "Show in Finder" in the menu. Right-click on the application bundle and
   choose "Show Package Contents". Verify that have a
   Contents/Frameworks/libspotify.framework folder in there.

4.2 构建命令行应用程序

Since libspotify.framework is built with an install_name appropriate
for bundling with apps, it will be tedious to use with command line
utilities by default. The recommended procedure in this situation
is to install libspotify.framework into /Library/Frameworks, and then use
install_name_tool to rewrite the install_name to that path in your
executable. The examples show how to do this, but in essence:
    install_name_tool -change \     
        @loader_path/../Frameworks/libspotify.framework/libspotify \    
        /Library/Frameworks/libspotify.framework/libspotify \
        path_to_executable

If you'd like to bundle the framework with your executable some other
way, switch /Library/Frameworks in the above command to something else,
possibly relative to @loader_path (which is the path to your executable
at runtime).

4.3 示例 在 doc/examples 中有大量示例,可以作为很好的起点。祝您玩得开心!

  1. 应用程序密钥

    示例程序需要一个名为 appkey.c 的文件,该文件在该包中不存在。您需要在开发者网站 http://developer.spotify.com/ 请求应用程序密钥,然后才能运行它们。

  2. 标志和商标

    在 images/ 子目录中找到的图形可用于使用 libspotify 的应用程序。关于使用这些图形的条款和条件可在 http://developer.spotify.com/ 找到。

    在 images/ 中包含了一个文本文件,其中包含用于非图形应用程序的文本。

  3. 许可证

    您应该已经收到一个单独的 LICENSE 文件,以及这个 README 文件。