objective-c – SoundCloud API Apple Mach-O链接器(Id)错误
我正在尝试将
Cocoa SoundCloud API集成到我的iPhone / iPad应用程序中.我按照
here详细说明进行操作,但是当我尝试构建并运行我的项目时,出现以下错误:
Apple Mach-O链接器(Id)错误 Ld "/Users/curuser/Library/Developer/Xcode/DerivedData/MyApp-gzdzxolteaojcobbqsfkgxakkclz/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp" normal i386 cd "/Users/curuser/Dropbox/iPhone Apps/MyApp" setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/curuser/Library/Developer/Xcode/DerivedData/MyApp-gzdzxolteaojcobbqsfkgxakkclz/Build/Products/Debug-iphonesimulator -F/Users/curuser/Library/Developer/Xcode/DerivedData/MyApp-gzdzxolteaojcobbqsfkgxakkclz/Build/Products/Debug-iphonesimulator -filelist "/Users/curuser/Library/Developer/Xcode/DerivedData/MyApp-gzdzxolteaojcobbqsfkgxakkclz/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/i386/MyApp.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -all_load -ObjC -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -framework UIKit /Users/curuser/Library/Developer/Xcode/DerivedData/MyApp-gzdzxolteaojcobbqsfkgxakkclz/Build/Products/Debug-iphonesimulator/SoundCloudAPI/SoundCloudAPI -framework Security -framework OAuth2Client /Users/curuser/Library/Developer/Xcode/DerivedData/MyApp-gzdzxolteaojcobbqsfkgxakkclz/Build/Products/Debug-iphonesimulator/libSoundCloudAPI.a -lOAuth2Client -framework AudioToolbox -framework Foundation -o "/Users/curuser/Library/Developer/Xcode/DerivedData/MyApp-gzdzxolteaojcobbqsfkgxakkclz/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp" Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1 我对iPhone开发很新,我无法弄清楚如何修复它.我的猜测是我错过了一个框架,但我添加了步骤#3中所述的框架: >现在,Target需要了解它应链接的新库.因此,在项目中,选择Target,然后在Build Phases中转到Link Binary with Libraries部分.添加以下内容: > libSoundCloudAPI.a(或桌面上的SoundCloudAPI.framework) 当我添加libSoundCloudAPI.a和libOAuth2Client.a时,它会显示为工作区中的缺失文件(带有虚线边框图标的红色). 解决方法
如果您不熟悉iOS开发,将SoundCloud集成到App中的最佳方法是使用新的
CocoaSoundCloudAPI.SoundCloud不再支持您所指的那个.
要将其集成到您的项目中,您只需要以下几个步骤: 在终端 >转到项目目录. // For the API git submodule add git://github.com/nxtbgthng/OAuth2Client.git git submodule add git://github.com/soundcloud/CocoaSoundCloudAPI.git git submodule add git://github.com/nxtbgthng/JSONKit.git git submodule add git://github.com/nxtbgthng/OHAttributedLabel.git git submodule add git://github.com/soundcloud/CocoaSoundCloudUI.git 在Xcode中 >创建一个包含上面添加的所有子模块的工作区. > libSoundCloudAPI.a >下一步是确保链接器找到所需的一切:所以转到项目的Build设置并将以下内容添加到Other Linker Flags -all_load -ObjC >在iOS上我们需要一些图形:请将SoundCloud.bundle从CocoaSoundCloudUI /目录移动到您的资源. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- C#界面破损,ABI
- activerecord – ruby??-on-rails3,并使用activereccord3选
- 如何使用HttpWebRequest创建一个C#应用程序就像fiddler一样
- Swift 学习笔记一 基本数据类型和简单语句语法
- Cocos2d-X 学习笔记 16 使用Base64算法对Cocos2dX自带CCUse
- Ajax学习全套(最全最经典)
- patition key 的解除 比如created_at
- string – VB脚本日期格式“YYYYMMDDHHMMSS”
- 狗屎一样的React(第一节,怎么来搭建react demo更合适)
- XML parse error: not well-formed (invalid token)