xcode5

Xcode : failed to get the task for process

大城市里の小女人 提交于 2019-12-04 07:25:59
问题 This is for an existing app that compiled and distributed multiple times. Since updating to Xcode 5 I have this error popping. I have my developers profile selected in the Code Signing for debug. Deleted the Derived Data a few times. Quit a few times Downloaded and tried to re-add my Developers certificates. Reset my computer! And checked updates Tried using black magic! The Scheme > Build Configuration is set to Debug The odd circumstances I am compiling to compile to iOS 6.1 so I can run on

Storyboard - Position is ambiguous for “Round Style Text Field” Warning

北战南征 提交于 2019-12-04 07:19:19
https://stackoverflow.com/a/16251810/2589276 I solved the problem above but got a new problem when I did the steps I was instructed to. Now I get a warning saying: Position is ambiguous for "Round Style Text Field" I tried setting fixed constraint for width also, but did not fix this warning. Any ideas? Are there any other information I should give for this problem? This screen shot when I do add constraint to x, leading space constraint (for x) and vertical space constraint from the bottom. I just want to set constraint for the Y and not get warnings, I do not use autolayout anyways. Edit:

CLGeocoder reverse geocoding fails with Error Domain=NSURLErrorDomain Code=-1000 -

时光总嘲笑我的痴心妄想 提交于 2019-12-04 06:06:08
With a CLLocation object (content e.g. latitude = 48.196169, longitude = 11.620237), I try to get the current city and country like: if(!geocoder) { geocoder = [[CLGeocoder alloc] init]; } if (geocoder.geocoding) [geocoder cancelGeocode]; [geocoder reverseGeocodeLocation:lo completionHandler:^(NSArray *placemarks, NSError *error) { if(devMode) { NSLog(@"Found placemarks: %@, error: %@", placemarks, error); } if (error == nil && [placemarks count] > 0) { // MY CODE - here placemarks is always (null) } else { if(devMode) NSLog(@"%@", error.debugDescription); } }]; mostly, that works great. But

Can't send Video to MFMessageComposeViewController

╄→гoц情女王★ 提交于 2019-12-04 05:29:05
问题 I have to send Video through message. I attached 30KB size of video. But it alerts "Video is too long". Below i mentioned the code to send video through message. NSString *message = [NSString stringWithFormat:@"Download this Video!"]; MFMessageComposeViewController *messageController = [[MFMessageComposeViewController alloc] init]; messageController.messageComposeDelegate = self; [messageController setBody:message]; if ([MFMessageComposeViewController canSendAttachments]) { NSLog(@

why changing of tab, stopping the animation in ios app?

感情迁移 提交于 2019-12-04 05:23:15
i have multiple tabs in my app. i one view controller there is animation running, when i switch to another view controller, and again comes to view controller with animation, then animation stops, can anybody guide me to work my Xcode even switching of tab in Iphone app? - (IBAction)btn:(id)sender { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSString *soundStatus = [defaults objectForKey:@"Sound_Swich"]; //NSLog(@"soundstatus is %@ ", soundStatus); if([soundStatus isEqual:@"YES"]) { [self soundEffect]; } if ([btnpress isEqualToString:@"start"]) { btnpress= @"pause"; int

Getting Python to work in Cocoa App

你离开我真会死。 提交于 2019-12-04 05:18:21
问题 I am currently trying to get Python to work within a Cocoa App. My first step is to include Python so that Xcode can link against it. Since OS X Mavericks, the Python.framework is no longer in the SDK, so I followed this instructions to get it to work. Creating a project and following the steps described, Xcode gives me an error message: CpResource libpython2.7.dylib /Users/Phil/Library/Developer/Xcode/DerivedData/Python_Scripting-hiipjmacxsirqkfqczdjdaxbqgfj/Build/Products/Debug/Python\

UIViewController Freeform size issue

邮差的信 提交于 2019-12-04 05:06:49
问题 I am using this amazing PopupViewController (https://github.com/martinjuhasz/MJPopupViewController) control. My app uses storyboards. I have created a custom Segue as per developers instruction(https://github.com/martinjuhasz/MJPopupViewController/issues/8) and changed the UIViewController size property to Freeform and re sized it smaller than full screen. But when it called, it shows full screen. Code for custom Segue is below #import "PopupSegue.h" #import "UIViewController

xcode-select -switch doesn't work: active developer path does not exist

◇◆丶佛笑我妖孽 提交于 2019-12-04 03:29:14
I have installed Xcode 5 developer preview 3. Before it i had developer preview 2 and now, sometimes in my terminal I see error, for example when I try to autocomplete some commands by tab: error: active developer path ("/Applications/Xcode5-DP2.app/Contents/Developer") does not exist, use xcode-select to change I try to change this directory by executing command: sudo xcode-select -switch /Applications/Xcode5-DP3.app/Contents/Developer Now xcode has correct path because command sudo xcode-select -print-path shows me result: /Applications/Xcode5-DP3.app/Contents/Developer but I still see the

Xcode systemic crash on open project - how to reset Xcode assistant editor?

∥☆過路亽.° 提交于 2019-12-04 03:02:10
I've ran into an issue where whenever I open the assistant editor (second code panel) in Xcode, it crashes and gives me an option to reopen Xcode. Xcode quit unexpectedly reading the report,seems that CVDisplayLink is to blame Version 5.0.2 (5A3005) Is there a way to reset which class is displayed in the 2nd panel? Process: Xcode [508] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 5.0.2 (3335.32) Build Info: IDEApplication-3335032000000000~4 App Item ID: 497799835 App External ID: 106632651 Code Type: X86-64 (Native) Parent Process: launchd [131]

How to migrate from iPhone/iPad storyboards to universal storyboard

可紊 提交于 2019-12-04 02:48:15
I have a project created in Xcode 5. The "Deployment Info" settings says Devices: Universal but has separate iPhone and iPad settings and corresponding iPhone and iPad storyboards. Now I'm developing the same project in Xcode 6 and I want to use one universal storyboard instead of two storyboards. I have only worked on the iPhone storyboard and haven't touched the iPad one. Is it possible to ditch the iPad storyboard and convert the existing iPhone storyboard to be my main universal storyboard? DogEatDog I adapted this tutorial and a similar solution by @tharkay to create this solution below.