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

China☆狼群 提交于 2019-12-07 16:54:03

问题


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

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?


回答1:


The SoundCloud API has two products:

  • SoundCloudAPI.framework (a framework, for Mac OS X)
  • libSoundCloudAPI.a (a static library, for iOS)

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



来源:https://stackoverflow.com/questions/6179888/target-specifies-product-type-com-apple-product-type-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!