Я пытаюсь интегрировать Какао SoundCloud API в мое приложение для iPhone / iPad.Я следовал подробным инструкциям здесь , но при попытке создать и запустить свой проект я получаю следующую ошибку:
Ошибка Apple Mach-O Linker (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:
Теперь цель должна знать о новых библиотеках, на которые она должна ссылатьсяпротив.Итак, в Project выберите Target, а в Build Phases перейдите в раздел Link Binary with Libraries.Добавьте следующее:
- libSoundCloudAPI.a (или SoundCloudAPI.framework на рабочем столе)
- libOAuth2Client.a (или OAuth2Client.framework на рабочем столе)
- Security.framework
- AudioToolbox.framework (если вы хотите потоковую передачу)
Когда я добавляю libSoundCloudAPI.a и libOAuth2Client.a, он отображается как отсутствующий файл израбочая область (красная с иконкой в виде пунктирной рамки).