iOS sdk 4.3.2 AudioToolbox导入框架
2013-08-07 14:29
211 查看
错误源:在试图控制器中,想应用AudioToolbox类中的函数AudioServicesCreateSystemSoundID输出声音,虽然已添加了头文件,但是链接时却出现了错误:
Ld build/Debug-iphonesimulator/Pickers.app/Pickers normal i386
cd /Users/wang/Documents/Pickers
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/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk -L/Users/wang/Documents/Pickers/build/Debug-iphonesimulator
-F/Users/wang/Documents/Pickers/build/Debug-iphonesimulator -filelist /Users/wang/Documents/Pickers/build/Pickers.build/Debug-iphonesimulator/Pickers.build/Objects-normal/i386/Pickers.LinkFileList -mmacosx-v
4000
ersion-min=10.6 -framework Foundation -framework
UIKit -framework CoreGraphics -o /Users/wang/Documents/Pickers/build/Debug-iphonesimulator/Pickers.app/Pickers
Undefined symbols:
"_AudioServicesCreateSystemSoundID", referenced from:
-[SingleController playwithSound] in SingleController.o
-[SingleController spin] in SingleController.o
"_AudioServicesPlaySystemSound", referenced from:
-[SingleController playwithSound] in SingleController.o
-[SingleController spin] in SingleController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
可以点击项目名——》TARGETS下的项目名——》Build Phases——》Link Binary whith Libararies ——》按+,添加AudioToolbox
1.
Foundation: 所有的面向对象语言都会有一些标准结构: value , collection , String, dates, lists, thread等等.所有的这些都在Foundation framework里面(可以对比C++的STL)
2.
Appkit: 所有和用户界面相关的类都在这里. Windows,buttons,text field, event, drawing. 它还有个名字: ApplicationKit
3.
Core Data: Core Data可以方便的让你把你的对象存储成文件,或是从文件中加载你的对象.
Ld build/Debug-iphonesimulator/Pickers.app/Pickers normal i386
cd /Users/wang/Documents/Pickers
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/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk -L/Users/wang/Documents/Pickers/build/Debug-iphonesimulator
-F/Users/wang/Documents/Pickers/build/Debug-iphonesimulator -filelist /Users/wang/Documents/Pickers/build/Pickers.build/Debug-iphonesimulator/Pickers.build/Objects-normal/i386/Pickers.LinkFileList -mmacosx-v
4000
ersion-min=10.6 -framework Foundation -framework
UIKit -framework CoreGraphics -o /Users/wang/Documents/Pickers/build/Debug-iphonesimulator/Pickers.app/Pickers
Undefined symbols:
"_AudioServicesCreateSystemSoundID", referenced from:
-[SingleController playwithSound] in SingleController.o
-[SingleController spin] in SingleController.o
"_AudioServicesPlaySystemSound", referenced from:
-[SingleController playwithSound] in SingleController.o
-[SingleController spin] in SingleController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
可以点击项目名——》TARGETS下的项目名——》Build Phases——》Link Binary whith Libararies ——》按+,添加AudioToolbox
1.
Foundation: 所有的面向对象语言都会有一些标准结构: value , collection , String, dates, lists, thread等等.所有的这些都在Foundation framework里面(可以对比C++的STL)
2.
Appkit: 所有和用户界面相关的类都在这里. Windows,buttons,text field, event, drawing. 它还有个名字: ApplicationKit
3.
Core Data: Core Data可以方便的让你把你的对象存储成文件,或是从文件中加载你的对象.
相关文章推荐
- 李洪强iOS开发之-环信02_iOS SDK 介绍及导入
- iOS_32_XMPPFramework框架导入
- ios xmppFramework框架的导入步骤和介绍
- ios开发在导入环信SDK后运行出现 Reason: image not found 的解决方案
- iOS_导入libxml2.2框架后,找不到<libxml/tree.h>的解决办法
- 新浪微博iOS版SDK“宝玉XP”框架学习笔记
- iOS_导入libxml2.2框架后,找不到<libxml/tree.h>的解决办法
- iOS导入三方框架出现"Unknown type name 'NSString'"错误
- iOS音频学习笔记二:iOS SDK中与音频有关的相关框架
- 李洪强iOS开发本人集成环信的经验总结_01环信SDK的导入
- xcode ios项目导入opengles.framework或别的SDK出错解决
- XMPP 基础介绍 iOS导入XMPPFramework框架
- IOS 百度地图导入最新 SDK 2.9 报错
- iOS无法导入第三方框架头文件
- iOS开发--第三方框架导入错误解决方案
- 新浪微博iOS版SDK框架学习笔记
- iOS 开发之CocoaPods常用第三方框架导入
- 【IOS开发】 XMPP 简介和 XMPP 框架导入工程文件
- iOS的CocoaPods手动自动导入第三方框架
- iOS SDK中使用了第三方框架问题