xcode5

linking against dylib built for MacOSX file '/usr/lib/libSystem.B.dylib' for architecture i386

ε祈祈猫儿з 提交于 2019-11-28 19:25:43
I recently switched my development MacBook from a classic MacBook (32 bit) to a MacBook Air (64 bit). I am trying to open a project that was made on my old MacBook (32 bit) running XCode 4. The project is a PhoneGap application made in PhoneGap 1.7.0. My new MacBook Air (64 bit) is running XCode 5. I imported my developer profiles from my old MacBook to my new MacBook Air. But when I try to run it, I get the following error message. I have tried changing the my architecture in the build settings to armv7 but still no luck :( Does anyone know why I'm getting this error and how to fix it? Thanks

How to scroll UITableView in Storyboard editor of Xcode 5?

喜夏-厌秋 提交于 2019-11-28 19:14:39
Storyboard had great feature to design tables of static cells. Until XCode 5 is was possible to compose long list of cells and scroll the table to edit them. With XCode 5 the scrolling simple stopped working - instead of scrolling the table, now it scrolls entire the storyboard. Did anyone solved this problem? I'm completely stuck with my long tables of static cells... In the storyboard view uncheck Under Top Bars with the problematic scroll view selected. This allowed me to scroll all the way down. This only occurred in one of my views, so still not sure what it happens. Prine I just tried it

Should I fix Xcode 5 'Semantic issue: undeclared selector'?

痞子三分冷 提交于 2019-11-28 19:10:50
I'm trying to upgrade my app with Xcode5 but encountered a number of 'Semantic issues' in a third party library (being MagicalRecord). The quickest way to 'fix' this might be using the: #pragma GCC diagnostic ignored "-Wundeclared-selector" (from: How to get rid of the 'undeclared selector' warning ) compiler directive, but my gut-feeling says this is not the appropriate way to do this. A small code sample with the above error: + (NSEntityDescription *) MR_entityDescriptionInContext:(NSManagedObjectContext *)context { if ([self respondsToSelector:@selector(entityInManagedObjectContext:)]) {

ITMS 9000: The binary you upload was invalid

荒凉一梦 提交于 2019-11-28 19:07:06
When I ran into this issue, my first thought was to search Stack Overflow for solution. I did the search, found several topics. But, unlike my issue, those posters got some clue from the error such as, App Store error: The binary you uploaded was invalid Invalid iPhone Application Binary Uploading Binary iPhone App "The signature was invalid" again again and again The binary you uploaded was invalid. The signature was invalid, or it was not signed with an Apple submission certificate Or this one: "The binary you uploaded was invalid. the file was not a valid zip file" Error message uploading

Wrong trailing space constraints for children of UIScrollView

夙愿已清 提交于 2019-11-28 19:04:32
问题 I have created a fresh View Controller, then added a Scroll View as child of the root View, and set "Leading/Top/Trailing/Bottom Space to Superview" to 0 so that the scroll view would fill its parent completely. Then I added a button as child of the scroll view, with space constraints of 15 to "Superview" (i.e. to the scroll view). I would thus expect the button to have a spacing of 15 to top/left/right borders, and the scroll view's content to end at 'bottom of button + 15'. However the

xcode 5 deprecation warning about glut functions

核能气质少年 提交于 2019-11-28 18:47:16
I just upgrade my mac os x 10.6.8 to 10.9 this morning. Everything goes fine except the Xcode 5 with OpenGL Glut APIs. Whenever I run my program involving glut functions, I got 30 deprecation warns, like: 'gluErrorString' is deprecated: first deprecated in OS X 10.9. 'glutBitmapCharacter' is deprecated: first deprecated in OS X 10.9. 'glutSwapBuffers' is deprecated: first deprecated in OS X 10.9. 'glutDisplayFunc' is deprecated: first deprecated in OS X 10.9. 'glutIdelFunc' is deprecated: first deprecated in OS X 10.9. ... Change "OS X Deployment Target" back to OSX10.8, then it works. Hope

Developing universal in Xcode 6

本小妞迷上赌 提交于 2019-11-28 18:40:23
I have Xcode 6 beta installed and I'm trying to develop an universal app. Before Xcode 6, you had to create 2 separate Storyboards for iPad and iPhone and you could set it in the Deployment Info. In Xcode 6, it seems that separation is gone. There aren't 2 tabs to set the storyboards individually. But when you go to create a Storyboard, you are asked to choose a device family. Can someone explain what's going on in Xcode 6 please? Thank you. To support the new Size Classes, you'll need to enable "Use Size Classes" in the File Inspector of your storyboard. This will allow you to configure your

Xcode Find and replace in all project files

别等时光非礼了梦想. 提交于 2019-11-28 18:30:31
I need to replace NSLog with DDLogVerbose in all files in the current project I am working on… What is an easy method to do this? (the search navigator only has search in it). Also I need to add a line at the beginning of all .m files. How is this done quickly? (There are over 500 such files.) Here are some pictures. In the toolbar search, you have to press 'Find' then a menu appears – pick replace. Now you can replace project-wide. Happy coding! 来源: https://stackoverflow.com/questions/19116435/xcode-find-and-replace-in-all-project-files

display route on iOS 7 maps: addOverlay has no effect

旧巷老猫 提交于 2019-11-28 18:22:27
i want display a point to point route inside my mapView, i use this code for create the route: - (IBAction)backToYourCar { MKPlacemark *sourcePlacemark = [[MKPlacemark alloc] initWithCoordinate:self.annotationForCar.coordinate addressDictionary:nil]; NSLog(@"coordiante : locationIniziale %f", sourcePlacemark.coordinate.latitude); MKMapItem *carPosition = [[MKMapItem alloc] initWithPlacemark:sourcePlacemark]; MKMapItem *actualPosition = [MKMapItem mapItemForCurrentLocation]; NSLog(@"coordiante : source %f, ActualPosition %f", carPosition.placemark.coordinate.latitude ,actualPosition.placemark

@import “Unexpected '@' in program”

我与影子孤独终老i 提交于 2019-11-28 18:17:36
I updated project to Xcode 5 and enabled modules in build settings. However, I see compiler error Unexpected '@' in program when I use @import . #ifndef __IPHONE_7_0 #warning "This project uses features only available in iOS SDK 7.0 and later." #endif #ifdef __cplusplus #import <opencv2/opencv.hpp> #endif #ifdef __OBJC__ @import SystemConfiguration; @import UIKit; Is it anything else that should be done? From the comment of @hw731 I think you use badly @import : old syntax to import framework : #import <UIKit/UIKit.h> but now, you can use the new syntax : @import UIKit; you need to enable