├── README ├── leafsound.mp3 ├── leafsound.wav ├── leafSounfTest ├── en.lproj │ ├── InfoPlist.strings │ └── ViewController.xib ├── leafSounfTest-Prefix.pch ├── main.m ├── AppDelegate.h ├── ViewController.h ├── leafSounfTest-Info.plist ├── ViewController.m └── AppDelegate.m ├── .gitignore └── leafSounfTest.xcodeproj ├── project.xcworkspace └── contents.xcworkspacedata └── project.pbxproj /README: -------------------------------------------------------------------------------- 1 | 聲音範例 2 | 使用AVFoundationm.framework 3 | 使用AudioToolbox.framework 4 | -------------------------------------------------------------------------------- /leafsound.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samplecode/LeafSounfTest/master/leafsound.mp3 -------------------------------------------------------------------------------- /leafsound.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samplecode/LeafSounfTest/master/leafsound.wav -------------------------------------------------------------------------------- /leafSounfTest/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | _Store 2 | *.swp 3 | *~.nib 4 | build/ 5 | *.pbxuser 6 | *.perspective 7 | *.perspectivev3 8 | xcuserdata 9 | -------------------------------------------------------------------------------- /leafSounfTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /leafSounfTest/leafSounfTest-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'leafSounfTest' target in the 'leafSounfTest' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /leafSounfTest/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // leafSounfTest 4 | // 5 | // Created by on 2011/10/28. 6 | // Copyright (c) 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "AppDelegate.h" 12 | 13 | int main(int argc, char *argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /leafSounfTest/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // leafSounfTest 4 | // 5 | // Created by on 2011/10/28. 6 | // Copyright (c) 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class ViewController; 12 | 13 | @interface AppDelegate : UIResponder 14 | 15 | @property (strong, nonatomic) UIWindow *window; 16 | 17 | @property (strong, nonatomic) ViewController *viewController; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /leafSounfTest/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // leafSounfTest 4 | // 5 | // Created by on 2011/10/28. 6 | // Copyright (c) 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | 13 | @interface ViewController : UIViewController { 14 | 15 | //AudioToolbox.framework使用 16 | SystemSoundID soundID; 17 | 18 | } 19 | 20 | -(IBAction)shoot; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /leafSounfTest/leafSounfTest-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFiles 12 | 13 | CFBundleIdentifier 14 | tw.idv.wenshyansu.${PRODUCT_NAME:rfc1034identifier} 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | ${PRODUCT_NAME} 19 | CFBundlePackageType 20 | APPL 21 | CFBundleShortVersionString 22 | 1.0 23 | CFBundleSignature 24 | ???? 25 | CFBundleVersion 26 | 1.0 27 | LSRequiresIPhoneOS 28 | 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /leafSounfTest/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // leafSounfTest 4 | // 5 | // Created by on 2011/10/28. 6 | // Copyright (c) 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @implementation ViewController 12 | 13 | - (void)didReceiveMemoryWarning 14 | { 15 | [super didReceiveMemoryWarning]; 16 | // Release any cached data, images, etc that aren't in use. 17 | } 18 | 19 | #pragma mark - View lifecycle 20 | 21 | - (void)viewDidLoad 22 | { 23 | [super viewDidLoad]; 24 | // Do any additional setup after loading the view, typically from a nib. 25 | } 26 | 27 | - (void)viewDidUnload 28 | { 29 | [super viewDidUnload]; 30 | // Release any retained subviews of the main view. 31 | // e.g. self.myOutlet = nil; 32 | } 33 | 34 | - (void)viewWillAppear:(BOOL)animated 35 | { 36 | [super viewWillAppear:animated]; 37 | } 38 | 39 | - (void)viewDidAppear:(BOOL)animated 40 | { 41 | [super viewDidAppear:animated]; 42 | } 43 | 44 | - (void)viewWillDisappear:(BOOL)animated 45 | { 46 | [super viewWillDisappear:animated]; 47 | } 48 | 49 | - (void)viewDidDisappear:(BOOL)animated 50 | { 51 | [super viewDidDisappear:animated]; 52 | } 53 | 54 | - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 55 | { 56 | // Return YES for supported orientations 57 | return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown); 58 | } 59 | 60 | -(IBAction)shoot{ 61 | 62 | //使用AudioToolbox.framework 63 | //Get the filename of the sound file: 64 | NSString *path = [NSString stringWithFormat:@"%@%@", [[NSBundle mainBundle] resourcePath], @"/leafsound.wav"]; 65 | 66 | //declare a system sound 67 | //id SystemSoundID soundID; 68 | 69 | //Get a URL for the sound file 70 | NSURL *filePath = [NSURL fileURLWithPath:path isDirectory:NO]; 71 | 72 | //Use audio sevices to create the sound 73 | AudioServicesCreateSystemSoundID((CFURLRef)filePath, &soundID); 74 | //Use audio services to play the sound 75 | AudioServicesPlaySystemSound(soundID); 76 | 77 | /* 78 | //使用AVFoundationm.framework 79 | NSString* path; 80 | NSURL* url; 81 | 82 | path = [[NSBundle mainBundle] pathForResource:@"leafsound" ofType:@"wav"]; 83 | url = [NSURL fileURLWithPath:path]; 84 | 85 | //initilize AVAudioPlayer 86 | AVAudioPlayer *player; 87 | player = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:NULL]; 88 | //player.delegate = self; 89 | player.volume = 1; 90 | [player play]; 91 | */ 92 | 93 | } 94 | 95 | 96 | @end 97 | -------------------------------------------------------------------------------- /leafSounfTest/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // leafSounfTest 4 | // 5 | // Created by on 2011/10/28. 6 | // Copyright (c) 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | #import "ViewController.h" 12 | 13 | @implementation AppDelegate 14 | 15 | @synthesize window = _window; 16 | @synthesize viewController = _viewController; 17 | 18 | - (void)dealloc 19 | { 20 | [_window release]; 21 | [_viewController release]; 22 | [super dealloc]; 23 | } 24 | 25 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 26 | { 27 | self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; 28 | // Override point for customization after application launch. 29 | self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController" bundle:nil] autorelease]; 30 | self.window.rootViewController = self.viewController; 31 | [self.window makeKeyAndVisible]; 32 | return YES; 33 | } 34 | 35 | - (void)applicationWillResignActive:(UIApplication *)application 36 | { 37 | /* 38 | Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 39 | Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 40 | */ 41 | } 42 | 43 | - (void)applicationDidEnterBackground:(UIApplication *)application 44 | { 45 | /* 46 | Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 47 | If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 48 | */ 49 | } 50 | 51 | - (void)applicationWillEnterForeground:(UIApplication *)application 52 | { 53 | /* 54 | Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 55 | */ 56 | } 57 | 58 | - (void)applicationDidBecomeActive:(UIApplication *)application 59 | { 60 | /* 61 | Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 62 | */ 63 | } 64 | 65 | - (void)applicationWillTerminate:(UIApplication *)application 66 | { 67 | /* 68 | Called when the application is about to terminate. 69 | Save data if appropriate. 70 | See also applicationDidEnterBackground:. 71 | */ 72 | } 73 | 74 | @end 75 | -------------------------------------------------------------------------------- /leafSounfTest/en.lproj/ViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1280 5 | 10K549 6 | 1938 7 | 1038.36 8 | 461.00 9 | 10 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 11 | 933 12 | 13 | 14 | IBProxyObject 15 | IBUIView 16 | IBUIButton 17 | 18 | 19 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 20 | 21 | 22 | PluginDependencyRecalculationVersion 23 | 24 | 25 | 26 | 27 | IBFilesOwner 28 | IBCocoaTouchFramework 29 | 30 | 31 | IBFirstResponder 32 | IBCocoaTouchFramework 33 | 34 | 35 | 36 | 274 37 | 38 | 39 | 40 | 292 41 | {{107, 257}, {106, 37}} 42 | 43 | 44 | NO 45 | IBCocoaTouchFramework 46 | 0 47 | 0 48 | 1 49 | Play Sound 50 | 51 | 3 52 | MQA 53 | 54 | 55 | 1 56 | MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA 57 | 58 | 59 | 3 60 | MC41AA 61 | 62 | 63 | 2 64 | 15 65 | 66 | 67 | Helvetica-Bold 68 | 15 69 | 16 70 | 71 | 72 | 73 | {{0, 20}, {320, 460}} 74 | 75 | 76 | 77 | 3 78 | MC43NQA 79 | 80 | 2 81 | 82 | 83 | NO 84 | 85 | IBCocoaTouchFramework 86 | 87 | 88 | 89 | 90 | 91 | 92 | view 93 | 94 | 95 | 96 | 7 97 | 98 | 99 | 100 | shoot 101 | 102 | 103 | 7 104 | 105 | 9 106 | 107 | 108 | 109 | 110 | 111 | 0 112 | 113 | 114 | 115 | 116 | 117 | -1 118 | 119 | 120 | File's Owner 121 | 122 | 123 | -2 124 | 125 | 126 | 127 | 128 | 6 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 8 137 | 138 | 139 | 140 | 141 | 142 | 143 | ViewController 144 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 145 | UIResponder 146 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 147 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 148 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 149 | 150 | 151 | 152 | 153 | 154 | 9 155 | 156 | 157 | 0 158 | IBCocoaTouchFramework 159 | YES 160 | 3 161 | 933 162 | 163 | 164 | -------------------------------------------------------------------------------- /leafSounfTest.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | DD42D155145A49CA00C34083 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD42D154145A49CA00C34083 /* UIKit.framework */; }; 11 | DD42D157145A49CA00C34083 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD42D156145A49CA00C34083 /* Foundation.framework */; }; 12 | DD42D159145A49CA00C34083 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD42D158145A49CA00C34083 /* CoreGraphics.framework */; }; 13 | DD42D15F145A49CA00C34083 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = DD42D15D145A49CA00C34083 /* InfoPlist.strings */; }; 14 | DD42D161145A49CA00C34083 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = DD42D160145A49CA00C34083 /* main.m */; }; 15 | DD42D165145A49CA00C34083 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = DD42D164145A49CA00C34083 /* AppDelegate.m */; }; 16 | DD42D168145A49CA00C34083 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = DD42D167145A49CA00C34083 /* ViewController.m */; }; 17 | DD42D16B145A49CA00C34083 /* ViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = DD42D169145A49CA00C34083 /* ViewController.xib */; }; 18 | DD42D172145A49E300C34083 /* leafsound.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = DD42D171145A49E300C34083 /* leafsound.mp3 */; }; 19 | DD42D176145A4B9900C34083 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD42D175145A4B9900C34083 /* AudioToolbox.framework */; }; 20 | DD42D178145A4E3E00C34083 /* leafsound.wav in Resources */ = {isa = PBXBuildFile; fileRef = DD42D177145A4E3E00C34083 /* leafsound.wav */; }; 21 | DD42D17A145A543700C34083 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD42D179145A543700C34083 /* AVFoundation.framework */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXFileReference section */ 25 | DD42D150145A49CA00C34083 /* leafSounfTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = leafSounfTest.app; sourceTree = BUILT_PRODUCTS_DIR; }; 26 | DD42D154145A49CA00C34083 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 27 | DD42D156145A49CA00C34083 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 28 | DD42D158145A49CA00C34083 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 29 | DD42D15C145A49CA00C34083 /* leafSounfTest-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "leafSounfTest-Info.plist"; sourceTree = ""; }; 30 | DD42D15E145A49CA00C34083 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 31 | DD42D160145A49CA00C34083 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 32 | DD42D162145A49CA00C34083 /* leafSounfTest-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "leafSounfTest-Prefix.pch"; sourceTree = ""; }; 33 | DD42D163145A49CA00C34083 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 34 | DD42D164145A49CA00C34083 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 35 | DD42D166145A49CA00C34083 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 36 | DD42D167145A49CA00C34083 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 37 | DD42D16A145A49CA00C34083 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ViewController.xib; sourceTree = ""; }; 38 | DD42D171145A49E300C34083 /* leafsound.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = leafsound.mp3; sourceTree = ""; }; 39 | DD42D175145A4B9900C34083 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; 40 | DD42D177145A4E3E00C34083 /* leafsound.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; path = leafsound.wav; sourceTree = ""; }; 41 | DD42D179145A543700C34083 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; 42 | /* End PBXFileReference section */ 43 | 44 | /* Begin PBXFrameworksBuildPhase section */ 45 | DD42D14D145A49CA00C34083 /* Frameworks */ = { 46 | isa = PBXFrameworksBuildPhase; 47 | buildActionMask = 2147483647; 48 | files = ( 49 | DD42D17A145A543700C34083 /* AVFoundation.framework in Frameworks */, 50 | DD42D176145A4B9900C34083 /* AudioToolbox.framework in Frameworks */, 51 | DD42D155145A49CA00C34083 /* UIKit.framework in Frameworks */, 52 | DD42D157145A49CA00C34083 /* Foundation.framework in Frameworks */, 53 | DD42D159145A49CA00C34083 /* CoreGraphics.framework in Frameworks */, 54 | ); 55 | runOnlyForDeploymentPostprocessing = 0; 56 | }; 57 | /* End PBXFrameworksBuildPhase section */ 58 | 59 | /* Begin PBXGroup section */ 60 | DD42D145145A49CA00C34083 = { 61 | isa = PBXGroup; 62 | children = ( 63 | DD42D171145A49E300C34083 /* leafsound.mp3 */, 64 | DD42D177145A4E3E00C34083 /* leafsound.wav */, 65 | DD42D15A145A49CA00C34083 /* leafSounfTest */, 66 | DD42D153145A49CA00C34083 /* Frameworks */, 67 | DD42D151145A49CA00C34083 /* Products */, 68 | ); 69 | sourceTree = ""; 70 | }; 71 | DD42D151145A49CA00C34083 /* Products */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | DD42D150145A49CA00C34083 /* leafSounfTest.app */, 75 | ); 76 | name = Products; 77 | sourceTree = ""; 78 | }; 79 | DD42D153145A49CA00C34083 /* Frameworks */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | DD42D179145A543700C34083 /* AVFoundation.framework */, 83 | DD42D175145A4B9900C34083 /* AudioToolbox.framework */, 84 | DD42D154145A49CA00C34083 /* UIKit.framework */, 85 | DD42D156145A49CA00C34083 /* Foundation.framework */, 86 | DD42D158145A49CA00C34083 /* CoreGraphics.framework */, 87 | ); 88 | name = Frameworks; 89 | sourceTree = ""; 90 | }; 91 | DD42D15A145A49CA00C34083 /* leafSounfTest */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | DD42D163145A49CA00C34083 /* AppDelegate.h */, 95 | DD42D164145A49CA00C34083 /* AppDelegate.m */, 96 | DD42D166145A49CA00C34083 /* ViewController.h */, 97 | DD42D167145A49CA00C34083 /* ViewController.m */, 98 | DD42D169145A49CA00C34083 /* ViewController.xib */, 99 | DD42D15B145A49CA00C34083 /* Supporting Files */, 100 | ); 101 | path = leafSounfTest; 102 | sourceTree = ""; 103 | }; 104 | DD42D15B145A49CA00C34083 /* Supporting Files */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | DD42D15C145A49CA00C34083 /* leafSounfTest-Info.plist */, 108 | DD42D15D145A49CA00C34083 /* InfoPlist.strings */, 109 | DD42D160145A49CA00C34083 /* main.m */, 110 | DD42D162145A49CA00C34083 /* leafSounfTest-Prefix.pch */, 111 | ); 112 | name = "Supporting Files"; 113 | sourceTree = ""; 114 | }; 115 | /* End PBXGroup section */ 116 | 117 | /* Begin PBXNativeTarget section */ 118 | DD42D14F145A49CA00C34083 /* leafSounfTest */ = { 119 | isa = PBXNativeTarget; 120 | buildConfigurationList = DD42D16E145A49CA00C34083 /* Build configuration list for PBXNativeTarget "leafSounfTest" */; 121 | buildPhases = ( 122 | DD42D14C145A49CA00C34083 /* Sources */, 123 | DD42D14D145A49CA00C34083 /* Frameworks */, 124 | DD42D14E145A49CA00C34083 /* Resources */, 125 | ); 126 | buildRules = ( 127 | ); 128 | dependencies = ( 129 | ); 130 | name = leafSounfTest; 131 | productName = leafSounfTest; 132 | productReference = DD42D150145A49CA00C34083 /* leafSounfTest.app */; 133 | productType = "com.apple.product-type.application"; 134 | }; 135 | /* End PBXNativeTarget section */ 136 | 137 | /* Begin PBXProject section */ 138 | DD42D147145A49CA00C34083 /* Project object */ = { 139 | isa = PBXProject; 140 | attributes = { 141 | LastUpgradeCheck = 0420; 142 | }; 143 | buildConfigurationList = DD42D14A145A49CA00C34083 /* Build configuration list for PBXProject "leafSounfTest" */; 144 | compatibilityVersion = "Xcode 3.2"; 145 | developmentRegion = English; 146 | hasScannedForEncodings = 0; 147 | knownRegions = ( 148 | en, 149 | ); 150 | mainGroup = DD42D145145A49CA00C34083; 151 | productRefGroup = DD42D151145A49CA00C34083 /* Products */; 152 | projectDirPath = ""; 153 | projectRoot = ""; 154 | targets = ( 155 | DD42D14F145A49CA00C34083 /* leafSounfTest */, 156 | ); 157 | }; 158 | /* End PBXProject section */ 159 | 160 | /* Begin PBXResourcesBuildPhase section */ 161 | DD42D14E145A49CA00C34083 /* Resources */ = { 162 | isa = PBXResourcesBuildPhase; 163 | buildActionMask = 2147483647; 164 | files = ( 165 | DD42D15F145A49CA00C34083 /* InfoPlist.strings in Resources */, 166 | DD42D16B145A49CA00C34083 /* ViewController.xib in Resources */, 167 | DD42D172145A49E300C34083 /* leafsound.mp3 in Resources */, 168 | DD42D178145A4E3E00C34083 /* leafsound.wav in Resources */, 169 | ); 170 | runOnlyForDeploymentPostprocessing = 0; 171 | }; 172 | /* End PBXResourcesBuildPhase section */ 173 | 174 | /* Begin PBXSourcesBuildPhase section */ 175 | DD42D14C145A49CA00C34083 /* Sources */ = { 176 | isa = PBXSourcesBuildPhase; 177 | buildActionMask = 2147483647; 178 | files = ( 179 | DD42D161145A49CA00C34083 /* main.m in Sources */, 180 | DD42D165145A49CA00C34083 /* AppDelegate.m in Sources */, 181 | DD42D168145A49CA00C34083 /* ViewController.m in Sources */, 182 | ); 183 | runOnlyForDeploymentPostprocessing = 0; 184 | }; 185 | /* End PBXSourcesBuildPhase section */ 186 | 187 | /* Begin PBXVariantGroup section */ 188 | DD42D15D145A49CA00C34083 /* InfoPlist.strings */ = { 189 | isa = PBXVariantGroup; 190 | children = ( 191 | DD42D15E145A49CA00C34083 /* en */, 192 | ); 193 | name = InfoPlist.strings; 194 | sourceTree = ""; 195 | }; 196 | DD42D169145A49CA00C34083 /* ViewController.xib */ = { 197 | isa = PBXVariantGroup; 198 | children = ( 199 | DD42D16A145A49CA00C34083 /* en */, 200 | ); 201 | name = ViewController.xib; 202 | sourceTree = ""; 203 | }; 204 | /* End PBXVariantGroup section */ 205 | 206 | /* Begin XCBuildConfiguration section */ 207 | DD42D16C145A49CA00C34083 /* Debug */ = { 208 | isa = XCBuildConfiguration; 209 | buildSettings = { 210 | ALWAYS_SEARCH_USER_PATHS = NO; 211 | ARCHS = "$(ARCHS_STANDARD_32_BIT)"; 212 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 213 | COPY_PHASE_STRIP = NO; 214 | GCC_C_LANGUAGE_STANDARD = gnu99; 215 | GCC_DYNAMIC_NO_PIC = NO; 216 | GCC_OPTIMIZATION_LEVEL = 0; 217 | GCC_PREPROCESSOR_DEFINITIONS = ( 218 | "DEBUG=1", 219 | "$(inherited)", 220 | ); 221 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 222 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0; 223 | GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; 224 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 225 | GCC_WARN_UNUSED_VARIABLE = YES; 226 | IPHONEOS_DEPLOYMENT_TARGET = 5.0; 227 | SDKROOT = iphoneos; 228 | }; 229 | name = Debug; 230 | }; 231 | DD42D16D145A49CA00C34083 /* Release */ = { 232 | isa = XCBuildConfiguration; 233 | buildSettings = { 234 | ALWAYS_SEARCH_USER_PATHS = NO; 235 | ARCHS = "$(ARCHS_STANDARD_32_BIT)"; 236 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 237 | COPY_PHASE_STRIP = YES; 238 | GCC_C_LANGUAGE_STANDARD = gnu99; 239 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0; 240 | GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; 241 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 242 | GCC_WARN_UNUSED_VARIABLE = YES; 243 | IPHONEOS_DEPLOYMENT_TARGET = 5.0; 244 | OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; 245 | SDKROOT = iphoneos; 246 | VALIDATE_PRODUCT = YES; 247 | }; 248 | name = Release; 249 | }; 250 | DD42D16F145A49CA00C34083 /* Debug */ = { 251 | isa = XCBuildConfiguration; 252 | buildSettings = { 253 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 254 | GCC_PREFIX_HEADER = "leafSounfTest/leafSounfTest-Prefix.pch"; 255 | INFOPLIST_FILE = "leafSounfTest/leafSounfTest-Info.plist"; 256 | PRODUCT_NAME = "$(TARGET_NAME)"; 257 | WRAPPER_EXTENSION = app; 258 | }; 259 | name = Debug; 260 | }; 261 | DD42D170145A49CA00C34083 /* Release */ = { 262 | isa = XCBuildConfiguration; 263 | buildSettings = { 264 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 265 | GCC_PREFIX_HEADER = "leafSounfTest/leafSounfTest-Prefix.pch"; 266 | INFOPLIST_FILE = "leafSounfTest/leafSounfTest-Info.plist"; 267 | PRODUCT_NAME = "$(TARGET_NAME)"; 268 | WRAPPER_EXTENSION = app; 269 | }; 270 | name = Release; 271 | }; 272 | /* End XCBuildConfiguration section */ 273 | 274 | /* Begin XCConfigurationList section */ 275 | DD42D14A145A49CA00C34083 /* Build configuration list for PBXProject "leafSounfTest" */ = { 276 | isa = XCConfigurationList; 277 | buildConfigurations = ( 278 | DD42D16C145A49CA00C34083 /* Debug */, 279 | DD42D16D145A49CA00C34083 /* Release */, 280 | ); 281 | defaultConfigurationIsVisible = 0; 282 | defaultConfigurationName = Release; 283 | }; 284 | DD42D16E145A49CA00C34083 /* Build configuration list for PBXNativeTarget "leafSounfTest" */ = { 285 | isa = XCConfigurationList; 286 | buildConfigurations = ( 287 | DD42D16F145A49CA00C34083 /* Debug */, 288 | DD42D170145A49CA00C34083 /* Release */, 289 | ); 290 | defaultConfigurationIsVisible = 0; 291 | }; 292 | /* End XCConfigurationList section */ 293 | }; 294 | rootObject = DD42D147145A49CA00C34083 /* Project object */; 295 | } 296 | --------------------------------------------------------------------------------