xcode5

Xcode 5 Builds and Archives, but won't Run or Test Mac Apps

廉价感情. 提交于 2020-01-07 06:57:10
问题 I had a Mac app that I've been working on for almost two years now that suddenly decided it wouldn't run on either of my computers (which have their projects synced via Dropbox.) It was building and archiving fine, but I couldn't start it with a debugger or run unit tests on it. Every time I tried it would give an error, either: < My App Name > exited unexpectedly lost connection or something about having lost connection and timed out (I didn't copy down exactly what the error message was,

Xcode radio buttons- Changing background image of a button when another button is pressed

安稳与你 提交于 2020-01-06 10:53:27
问题 I'm trying to implement my own basic radio buttons, such that only one of them can be selected at a time. Here's the code I'm using-> - (IBAction)btn2Pressed:(UIButton *)sender { [btn1 setBackgroundImage:[UIImage imageNamed:@"circle-uncheck.png"] forState:UIControlStateNormal]; btn2pressed = YES; btn1pressed = NO; } - (IBAction)btn1Pressed:(UIButton *)sender { [btn2 setBackgroundImage:[UIImage imageNamed:@"circle-uncheck.png"] forState:UIControlStateNormal]; btn1pressed = YES; btn2pressed =

can't exec 'codesign' (No such file or directory)

半城伤御伤魂 提交于 2020-01-06 01:34:13
问题 I get this error when tying to run an app on a device with Xcode 5 here is the full error CodeSign /Users/Nevo/Library/Developer/Xcode/DerivedData/RecipesBook-efcrcmgnkaitsqaxahtumfbdxtmb/Build/Products/Debug-iphoneos/RecipesBook.app cd "/Users/Nevo/Desktop/RecipesBook for ios 7 and 6" setenv CODESIGN_ALLOCATE "/Applications/Xcode 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate" setenv PATH "/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS

UIView animation not working in iOS 7

六眼飞鱼酱① 提交于 2020-01-05 19:52:08
问题 I am working on a sample project in which I have a vertical scrollview and a horizontal scrollview . The vertical scrollview has a number of subviews. In scrollviewDidScroll I am performing some actions. Along with this I now want to animate a subview inside the vertical scrollview when that particular subview is visible on the screen. For this I am doing a certain calculation which is correct. The animation is as follows: The subview contains multiple custom views. I am trying to animate

xcode-select --install not running

99封情书 提交于 2020-01-05 19:00:20
问题 i try to install/update Xcode5 on OS X 10.9.1. to solve a problem with Homebrew. So i try: xcode-select --install In forums/google they say it will start the installation eg. here but i get: Usage: xcode-select -print-path or: xcode-select -switch <xcode_folder_path> or: xcode-select -version Arguments: -print-path Prints the path of the current Xcode folder -switch <xcode_folder_path> Sets the path for the current Xcode folder -version Prints xcode-select version information Why? What is

Apple Mach-O Linker Error XCODE 5

南楼画角 提交于 2020-01-05 08:52:30
问题 http://pingnator.com/help/OS%20X%20Mavericks-2014-06-24-09-00-21.png Ld /Users/STIGPING/Library/Developer/Xcode/DerivedData/FlappyPing-fkdkochwxretapaxarroygfgvhrp/Build/Products/Debug-iphonesimulator/FlappyPing.app/FlappyPing normal i386 cd "/Users/STIGPING/Desktop/Apps/Flappy Bird" export IPHONEOS_DEPLOYMENT_TARGET=7.1 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:

Apple Mach-O Linker Error XCODE 5

做~自己de王妃 提交于 2020-01-05 08:52:04
问题 http://pingnator.com/help/OS%20X%20Mavericks-2014-06-24-09-00-21.png Ld /Users/STIGPING/Library/Developer/Xcode/DerivedData/FlappyPing-fkdkochwxretapaxarroygfgvhrp/Build/Products/Debug-iphonesimulator/FlappyPing.app/FlappyPing normal i386 cd "/Users/STIGPING/Desktop/Apps/Flappy Bird" export IPHONEOS_DEPLOYMENT_TARGET=7.1 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:

Xcode 5 Cocoa App Fails to Load Nib on OS X 10.6

亡梦爱人 提交于 2020-01-05 04:18:08
问题 I'm creating a Cocoa application for 10.6 and newer OSs. I created a brand new document-based application in Xcode 5 (10.9) and changed two settings to make it 10.6-compatible: I changed the deployment target to 10.6 and turned Auto Layout off on both MainMenu.xib and xxDocument.xib, the two default nibs that are included with the document-based template. I archived my application (no code signing) adding no other code and tested it on four different OSs. Here are the results: OS X 10.9:

Xcode 5 Opening storyboard file hangs and IDE goes to deadlock

ⅰ亾dé卋堺 提交于 2020-01-04 09:13:39
问题 I downloaded XCode 5 lately to support iOS 7 , on my Macbook Pro (8 GB DDR 3 RAM). I have a storyboard file which has close to 30 Controllers in it. I opened the storyboard file post that it got hanged due to which i am unable to proceed. Here are the things i already tried: 1. Restarting XCode . 2. Restarting Mac. 3. Terminating all other Apps apart from XCode . 4. Cleaing all caches for XCode and clearing all content & settings for Simulators. Edit: Compiler generates the below error:

Stream large movie with credential through MPMoviePlayer

ε祈祈猫儿з 提交于 2020-01-04 06:29:06
问题 I've been trying to stream a movie from a url that is protected. I can download the movie then play it, but the movie is too long so this is annoying. Here is my code: -(MPMoviePlayerController *)moviePlayerController { NSURL *url = [NSURL URLWithString:@"http://ABcDE.com/secret/Movie.mov"]; _moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:url]; NSURLCredential *credential = [[NSURLCredential alloc] initWithUser: @"user" password: @"password" persistence: