xcode5

iOS xcode 5 crashlytics error - Shell Script Invocation Error - ./Crashlytics.framework/run: Permission denied

早过忘川 提交于 2019-12-09 14:20:06
问题 I have Crashlytics Framework added to my project, with a script. Run script: Shell: /bin/sh Script: ./Crashlytics.framework/run KEY_HERE When I try to run the project, I get the following error: Shell Script Invocation Error - ./Crashlytics.framework/run: Permission denied BUT if i delete the framework and add it again, it runs fine... ONCE. Then the next time I get the same error. Then i have to delete it, and re-add it, for it to only run once, and then the same story... Does anybody have

Convert from PCM to WAV. Is it Possible?

落花浮王杯 提交于 2019-12-09 06:49:31
问题 I have an application for iPAD. This application records the voice of the microphone. The audio formats of the item must be PCM, MP3 and WAV files. The MP3 file I get it starting from the original raw file and then convert using LAME. Unfortunately I have not found any example that allows me to convert a PCM file to a WAV file. I just noticed that if I put the file extension to WAV format, starting from the raw application saves without problems, so I think that there is no type conversion

MPMediaItemPropertyAssetURL returning null only for iPhone 5s

我与影子孤独终老i 提交于 2019-12-09 05:29:28
问题 I have been using the following code to extract the asset url from the MPMediaItem object returned from the MPMediaItemPickerController so that I can copy music files from a users iPhone itunes music library to the documents folder for processing, but on iPhone 5s I always get a null value from the MPMediaItemPropertyAssetURL, but when I run the same code on iPhone 4 or iPhone 5 it works as it should returning a proper url. - (void) mediaPicker: (MPMediaPickerController *) mediaPicker

What are the advantages of XCTest over SenTestingKit?

为君一笑 提交于 2019-12-09 04:21:22
问题 I want to do unit testing in iOS. By default test classes are created using XCTest framework classes in Xcode 5. I have used SenTestingKit in earlier versions of iOS. What are the differences between these two frameworks? What are the advantages of XCTest framework. I googled for related documentation but I did not find any. Only thing I found is the interface classes to use inside the kit. Can anyone point me to the related resources. 回答1: Apple's documentation is notably lacking with

Tab bar buttons all gray

折月煮酒 提交于 2019-12-08 19:23:29
问题 I'm trying to create a tab bar controller but last time I did it was with iOS 6.1. But now when I put a Tab bar Controller on the storyboard it doesn't show the buttons, and any modifications I try to make on background and text does not appear. Anyone knows how can I fix it? Below is an image of the described problem. Thanks! 回答1: Since it is just mentioned in the comments and I struggled with this problem for quite a while, this is a solution: Add an image to the Tab Bar Item and you will

Why SpringBoard failed to launch application with error: -3

百般思念 提交于 2019-12-08 15:27:12
问题 I am new to iOS 7, I am getting SpringBoard failed to launch application with error: -3 with Xcode 5 回答1: Another possible reason: too little available RAM. This happened for me (old iMac with only 3GB of RAM, running too many apps at once) as I addressed in this answer: iPhone Simulator: SpringBoard failed to launch application with error: 7 回答2: Sometimes this happens when you modify the elements in the Interface Builder: Try the following methods, if you are sure all your elements are

No longer able to hide keyboard during viewWillDisappear in iOS7

孤人 提交于 2019-12-08 14:46:42
问题 The following code used to work in iOS6 to hide the keyboard when a view controller was popped off of the navigation stack: - (void)viewWillDisappear:(BOOL)animated { [self.view endEditing:YES]; [super viewWillDisappear:animated]; } However, in iOS7, the [self.view endEditing:YES] line seems to get ignored. I tried the command in other view events (viewDidDisappear, viewWillAppear, and viewDidAppear), and the only one it worked in is viewDidAppear. It seems that once a "pop" is initiated, we

SMS Interception in Jailbreak iOS 7

故事扮演 提交于 2019-12-08 13:41:37
问题 I have followed this answer Blocking incomming sms in ios 7. The problem is it blocks every message and its notification. Secondly it continuously call _processReceivedMessage_hooked method when I send message other then this number +923139303006. I'm using OpenDev with Xcode 5, iOS 7.x. #include <logos/logos.h> #import <substrate.h> #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import <libkern/OSAtomic.h> #import "CoreTelephony.h" id(*_processReceivedMessage_orig)(id, SEL,

JSON GET and POST

跟風遠走 提交于 2019-12-08 12:31:13
问题 I am learning iOS app development. I have JSON data coming from one of the sites in the form of Dictionary within an Array and within that Dictionary I have another Array and that contains another Dictionary . for ex , Now I want to deserialize it and use it in my iOS app and also I have to post some data like a comment back to the server.The comment by teacher will be a POST to the server. I hope the question makes sense. I am stuck on how to deserialize this and use POST to server. Any help