xcode 目标指定产品类型“com.apple.product-type.framework”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6179888/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 21:09:27  来源:igfitidea点击:

target specifies product type 'com.apple.product-type.framework'

iphoneobjective-cxcodeapisoundcloud

提问by Eric Brotto

I'm trying to use a Soundcloud API wrapper for the iPhone following these instructionsand now I'm getting this error:

我正在尝试按照这些说明为 iPhone 使用 Soundcloud API 包装器,现在我收到此错误:

target specifies product type 'com.apple.product-type.framework', but there's no such product type for the 'iphoneos' platform

Any ideas on how to solve this?

关于如何解决这个问题的任何想法?

采纳答案by Simon Whitaker

The SoundCloud API has two products:

SoundCloud API 有两个产品:

  • SoundCloudAPI.framework(a framework, for Mac OS X)
  • libSoundCloudAPI.a(a static library, for iOS)
  • SoundCloudAPI.framework(一个框架,适用于 Mac OS X)
  • libSoundCloudAPI.a(一个静态库,适用于 iOS)

If you're building an app for iOS you need to add libSoundCloudAPI.a onlyas a direct dependency. You've added the framework as a dependency too, which is why you're getting this error.

如果你正在构建一个应用程序适用于iOS需要libSoundCloudAPI.a添加作为直接依赖关系。您也将框架添加为依赖项,这就是您收到此错误的原因。