xcode4.5

Simulating UITouch in xCode 4.5 programmatically (UISpec)

天大地大妈咪最大 提交于 2019-12-08 00:15:32
问题 I'm using UISpec for automated testing in my project. Everything was fine until Apple released xCode 4.5 with iOS 6 SDK. Now UISpec project can't be compiled because a list of errors in category of UITouch class. Here is the code: // // TouchSynthesis.m // SelfTesting // // Created by Matt Gallagher on 23/11/08. // Copyright 2008 Matt Gallagher. All rights reserved. // // Permission is given to use this source code file, free of charge, in any // project, commercial or otherwise, entirely at

while i try to run in iOS 6 my code throws Sen test Framework error. why?

我与影子孤独终老i 提交于 2019-12-07 23:59:56
问题 I have a project that is developed in iOS 5.0 and now i need to update my project to iOS 6.0 . While doing this my xcode 4.5 throws the error as below... dyld: Library not loaded: @rpath/SenTestingKit.framework/Versions/A/SenTestingKit Referenced from: /Users/developer/Library/Application Support/iPhone Simulator/6.0/Applications/6EFF12B6-DA80-4DD8-B3CF-B217C5EA63DF/XxxxXxxx.app/xxxxXxxxXxx Reason: image not found still it runs and works perfectly in iOS 5 devices and i am trying to run this

XCode 4.5.2 working issues

隐身守侯 提交于 2019-12-07 22:13:44
问题 I have recently downloaded Xcode update 4.5.2 and it seems to performing slow. I have tried other applications and everything is running fine. I'm currently developing an app and it's been performing so slowly, that I can't edit an UIlabel box. 回答1: Just in case: remove the contents in the "~/Library/Developer/Xcode/DerivedData" - Folder and see if it still stalls. I had a sluggish Xcode once and that helped. 来源: https://stackoverflow.com/questions/13294521/xcode-4-5-2-working-issues

Open Google+ Application in Xcode 4.5

雨燕双飞 提交于 2019-12-07 20:51:54
问题 I making a social application which requires Google+. I know that I can open Google+ as a link to Safari (Which isn't really user Friendly having to switch apps just to post something). This code opens the link to Safari: -(IBAction)Google+:(id)sender { NSLog(@"Google+"); //The link will go to Stack Overflow Google+ Page NSURL *GooglePlus = [NSURL URLWithString:@"https://plus.google.com/+StackExchange/posts"]; [[UIApplication sharedApplication] openURL:GooglePlus]; } But is there a way to

NSOpenPanel crashes when debugging with Xcode 4.5.1

孤人 提交于 2019-12-07 18:50:15
问题 I have a document-based application. Since upgrading to XCode 4.5.1 (from 4.4) NSOpenPanel crashes when I debug the application from Xcode. It does not crash when I start the program directly. I use NSOpenPanel on two occasions: When the user selects "Open" from the "File" menu (since it is a document-based application, none of my own code is involved) and for importing some data into my document (so it gets called by my own code). NSOpenPanel crashes on both occasions (the dialog opens, but

How can I enable Xcode refactor options for an external build project?

旧时模样 提交于 2019-12-07 13:49:21
问题 I want to use XCode as an IDE for developing some AVR code. I did the following 1) create new project 2) select external build system 3) indicated i want it to be make, and told it NOT to "Pass build settings in environment" 4) copied my .c/ .h/Makefile into the same directory i created the project in 5) added the .c/ .h files to the project/target 6) verified that i can build (make) from both command line and Xcode But I cannot use any of the refactor menu options, or jump to/reveal options.

UIViewControllerHierarchyInconsistency worked in ios5 but not in ios6

丶灬走出姿态 提交于 2019-12-07 10:37:10
问题 I had a perfectly working project until i have updated to ios6. when i tab on a bar item to show a popover with a view the app crashes... here is the error i'm getting "reason: 'A view can only be associated with at most one view controller at a time! View <UIView: 0xaa7d730; frame = (20 0; 748 1024); autoresize = RM+BM; layer = <CALayer: 0xaa7d790>> is associated with <TYOFormViewController: 0xaa7d8b0>. Clear this association before associating this view with <TYOFormViewController:

xcode 4.5 runs ios 4.0 simulator (NOT)

这一生的挚爱 提交于 2019-12-07 10:26:36
问题 I just upgrade to iOS 6 xcode 4.5 But I found that even in Xcode-reference-download there are only ios 5,6 I prefer my app to work also for the users using iOS 4.X Any comment is welcomed. 回答1: If you're on Lion, you can still download the 4.3 simulator (at least I did with the Gold Master version, supposedly it still works with the final release). On Mountain Lion, the 4.3 simulator is buggy (as seen in the first betas) and has thus been removed by Apple. If you really need to, you can run

iOS6 UIPickerView memory leak issue.

六眼飞鱼酱① 提交于 2019-12-07 03:58:46
问题 I was getting this memory leak: [UIPickerTableViewTitleCell initWithStyle:resuableIdentifier]; and NSConcentrateMutableAttributedString. Issue was that I had not implemented this delegate. After implementing this now memory leaks goes away. May be this information helpful for other as I spend mine 16 hours only to figure out this issue. // Do something with the selected row. - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component

How to permanently remove xcuserdata under the project.xcworkspace and resolve uncommitted changes

 ̄綄美尐妖づ 提交于 2019-12-06 16:19:28
问题 I am struggling with a problem with a merge conflict (see Cannot Merge due to conflict with UserInterfaceState.xcuserstate). Based on feedback, I needed to remove the UserInterfaceState.xcuserstate using git rm. After considerable experimentation, I was able to remove the file with "git rm -rf project.xcworkspace/xcuserdata". So while I was on the branch I was working on, it almost immediately came back as a file that needed to be committed. So I did the git rm on the file again and just