I'm a coder. Welcome to my blog. Here are some of the records on my job.

Categories

Swift&colon; the sound plays on the simulator but not on the device

advertisements

I'm building an app for iPhone/iPad, and I'm trying to solve a sound problem:

The app comes with a four minute countdown timer. When the coundown reaches 00:00, it triggers a short sound effect. This works fine on the different simulators, but my phone remains silent. The app is built for 7.1. I'm wondering if it's because of the code or if my phone isn't working (it does have sound issues). Does my code look okay? I hope someone can help with this.

Related Articles

Basically, when a button on my app is touched, audio is played. Simple enough, and yet it fails to work on my actual device, but works well in the simulator. When the button is touched, this function is executed: - (IBAction)playButtonSound { SystemS

I have the following code that saves the users sketch data to a file... //Auto Save the sketch NSString *filename = [NSString stringWithFormat:@"%@.png", sketchID]; CGImageRef imageRef = CGBitmapContextCreateImage(paintView.canvas.mBitmapContext

I'm trying to build a project, it can build fine on the simulator but not on the device. I'm getting this error dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /private/var/mobile/Containers/Bundle/Application/1EF56754-F072-4113-

I had this working very early, but then it stopped and I have no idea why. Here is the code: - (void)updateMarkers:(NSMutableArray *)myAudioLocationVOArray { [self cleanupMarkers]; NSLog(@"UPDATE ALL MARKERS"); int tArrayCount = [myAudioLocation

I just finished developing a Cordova / Phonegapp app. When I test it on iOS simulator it all works fine and quick, but, when testing on device it works only part of it. My app is a game with the kingdom background and has 8 buttons (8 buildings). Whe

Everything builds and runs in the simulator fine ... but when I attempt to run on device I get: "arm-apple-darwin10-gcc-4.2.1: ..../three20/Build/Products/Debug-iphoneos/libextThree20JSON+YAJL.a: No such file or directory" I check that directory

I have an MKMapView. To change the displayed region I use [self.mapView setRegion:region animated:YES]; The strange is that on simulator the region is changed with animation, but on device the change is immediate and not animated. I change the region

When I run same code in simulator I get success Response for image post: { id = 248572435289479; "post_id" = "244759709004085_248572441956145"; } When I run in same code in device I get: Error Domain=facebookErrDomain Code=10000 "

I'm making an alarm app. There are two things that work on the simulator but not on my device. 1) According to this website, if UIApplicationExitsOnSuspend is set to "YES", then the app should always be running even if the device is locked (prov

I am making a soundboard app on Xcode 4.2. When i run the app on the simulator, the sound plays fine. But, when i run it on the device, no sound will play. My code is below. - (IBAction)awhaaa:(id)sender { CFBundleRef mainBundle = CFBundleGetMainBund

I am making a simple Android Wear app to control my thermostats, and I'm sending POST requests with Volley to control them. Everything works great in the Android Wear simulator (the request works), but, while the app does load on my Moto 360, the vol

Simply, my application's view loads in the simulator, all views intact. When pushed onto the iPhone, the views fail to load. If it makes a difference, my iPhone 4 is jailbroken, but other applications I've created load with no problem on the phone. W

I have my six Icon.png - [email protected] files in my project and they are listed the same way in my plist just like I have read. My icons show up when I run my app in the simulator, but not when I run it on my device. I am using xcode 4.5.2 and am