xcode4.3

Is there a way to remove the authorization prompt from command-line instances of Instruments (XCode)?

倾然丶 夕夏残阳落幕 提交于 2019-11-27 10:45:19
I am currently using Instruments via a bash script to initiate the command-line interface to start up runs of the Automation plug-in. With 4.2, this worked well enough, however with the upgrade to Xcode 4.3, I am now being prompted for an authorized user to 'analyze other processes'. No user is ever actually authenticated, even if the correct credentials are granted. I get the following error: Failed to authorize rights (0x20) with status: -60007. 2012-02-27 19:30:37.232 instruments[54151:1c03] Failed to connect to local pid watcher service: (os/kern) failure Even with the authentication

Xcode 4.3-4.4 crashes with breakpoints using LLDB, breakpoints useless with GDB

流过昼夜 提交于 2019-11-27 08:13:52
问题 Every time I try to run my target when Breakpoints using the LLDB Debugger, Xcode crashes. My colleague has no trouble using LLDB, and we're both running 4.4 (I've had the problem since 4.3) Furthermore, since I have to use GDB, there's a problem with that too. Randomly, when I hit some breakpoints in GDB, I'll get a Previous frame inner to this frame (gdb could not unwind past this frame) message, and can't really see anything useful without blindly typing in po iVar like commands. Overall

iOS 5.1 with Xcode 4.3.1: [UIColor colorWithPatternImage:] strange behavior only on device

老子叫甜甜 提交于 2019-11-27 04:15:37
问题 When I compile my app in Xcode 4.3.1 with iOS 5.1, I notice there is a strange behavior with background textures only on actual device. There is a 1px gap in between texture tiles shown in screenshot below. My texture are 150x150 and 300x300 at 2x. So far I've tested the same build on: Simulator iPhone/iPad both 5.0/5.1: No bug iPhone/iPad running 5.0.1: No bug iPhone/iPad running 5.1: Buggy 回答1: I've been getting the same problem since 5.1 aswell. I solved it by doing the following to the

iOS: Keep application running in background

你。 提交于 2019-11-27 03:59:07
How do I keep my application running in the background? Would I have to jailbreak my iPhone to do this? I just need this app to check something from the internet every set interval and notify when needed, for my own use. user523234 Yes, no need to jailbreak. Check out the "Implementing long-running background tasks" section of this doc from Apple . From Apple's doc: Declaring Your App’s Supported Background Tasks Support for some types of background execution must be declared in advance by the app that uses them. An app declares support for a service using its Info.plist file. Add the

“The application does not have a valid signature” Xcode 4.3

泄露秘密 提交于 2019-11-27 03:29:40
问题 I'm getting the weirdest error today. "The application does not have a valid signature" I get this error when I try to run the application from Xcode 4.3 on my device. Also when I archive it shows it as a generic archive instead of a real app. Of course I deleted all of the invalid profiles, cleaned my derived data, cleaned my target, and restarted. No luck. EDIT: Turns out that I had a folder reference in my app. I removed all of the references to the folders and made them groups and it

Code signing is required for product type 'Application' in SDK 'iOS5.1'

时光毁灭记忆、已成空白 提交于 2019-11-27 01:13:00
问题 I am using xCode 4.3.1. After i created a project, i build it and tried to Archive. Then i got an error saying; (This is my first project in xCode 4.3.1) CodeSign error: code signing is required for product type 'Application' in SDK 'iOS5.1' What does this mean ? and how to solve it ? 回答1: It means you haven't assigned a provisioning profile to the configuration. Usually it's because "Any iOS SDK" must have a profile and cannot be set to "Don't sign". All this and more is answered in the

Split UIImage in half?

笑着哭i 提交于 2019-11-27 01:12:01
问题 How would I go about splitting a UIImage In half(down the middle) so it would make two images? 回答1: You can try this, UIImage *image = [UIImage imageNamed:@"yourImage.png"]; CGImageRef tmpImgRef = image.CGImage; CGImageRef topImgRef = CGImageCreateWithImageInRect(tmpImgRef, CGRectMake(0, 0, image.size.width, image.size.height / 2.0)); UIImage *topImage = [UIImage imageWithCGImage:topImgRef]; CGImageRelease(topImgRef); CGImageRef bottomImgRef = CGImageCreateWithImageInRect(tmpImgRef,

Xcode 4.3 : missing icons for iOS apps in Organizer's archives

℡╲_俬逩灬. 提交于 2019-11-27 00:59:49
问题 Since upgrading to Xcode 4.3.x, my archives of iOS app in Organizer don't have an icon. (I have icons on my Mac OS X apps though) One app in particular is an iPad app for which i provided 2 icons (normal + retina sizes) but still, I don't get an icon for it in my archives. xcode-select -print-path returns /Applications/Xcode.app/Contents/Developer (which I believe is the right setting as I want to have xcodebuild and xcron available in the terminal) EDIT : After investigation, I've found out

Get UIWebView content's Height

半腔热情 提交于 2019-11-27 00:51:11
问题 I have a uiwebview that loads data using the loadHtmlString function.The thing is i am loading the data from an sqlite database, each time i load a different string with different length and naturally the web view obtains different height. Now i need to know each time the exact height of the uiwebview in order to load an imageView right under the webView. I have tried - (void)webViewDidFinishLoad:(UIWebView *)aWebView { CGRect frame = aWebView.frame; frame.size.height = 1; aWebView.frame =

Xcode compiles my App, but can't run it in the simulator

笑着哭i 提交于 2019-11-26 19:40:55
问题 when i compile my app, Xcode just says "Attaching to Projectname..." and gets stuck there. The debugger just prints this out: error: failed to attach to process ID 0 I tried to clean & build again and it still doesn't work out. I googled but couldn't find anything helpful. How can I fix this problem? Thank You! 回答1: The solution for me was to delete everything Xcode has generated earlier: the App on the Simulator...if this is not possible because you cant reach the Homescreen, you can delete