xcode4.5

Target confusion at compile time

雨燕双飞 提交于 2019-12-12 01:33:11
问题 I am working on a project, in xCode 4.5.2 with 2 targets T1 and T2. When I want to build T1, I get error messages about one file only belonging to T2. Obviously, even though I think the file belongs to T2, the compiler thinks differently. Where do I need to check? As far as I can see, I have done the necessary for the file to be inside T2 and not inside T1. But I must be forgetting something. Any idea? Thanks for any useful tip. 回答1: Check the "target membership" for the file... click on the

Where to put makefile flags in a Xcode project?

南笙酒味 提交于 2019-12-11 20:18:31
问题 In the makefile: CUSTOM_CFLAGS=-Wall -ggdb3 -O3 -std=gnu99 -frename-registers -pthread -Wsign-compare -D_GNU_SOURCE SYS_CFLAGS=-DNO_THREAD_LOCAL LDFLAGS=-pthread -rdynamic LIBS=-lm -ldl Where should I put the above in Xcode project? 回答1: Makefile flags correspond to Xcode build settings. Look into the following build settings: Optimization Level for the -O3 flag. C Language Dialect for the -std=gnu99 flag. Other C Flags for the other flags in the CUSTOM_CFLAGS and SYS_CFLAGS flags. Other

dataWithContentsOfURL error 256 in ios 6

为君一笑 提交于 2019-12-11 13:40:00
问题 I have used the [NSData dataWithContentsOfURL:url options:NSDataReadingUncached error:&error] in my code on iOS 5 apps (using xcode 4.3) Now I want to get data from the same URL but for ios 6 apps (using xcode 4.5) and it gives me the 256 error (read error (reason unknown)) Any ideas? 回答1: As I said in the comments and it now seems that this was the answer. the URL needs to be a properly formed URL with the proper http:// identifier. 来源: https://stackoverflow.com/questions/12531558

Undefined symbols and duplicate symbols errors. Can build for debug, or release, but not both

跟風遠走 提交于 2019-12-11 10:49:51
问题 I have an issue with a project that includes another project. The second project is an SDK which is required for the main project. At the moment, I have the SDK included in the main project as a static library. Both the SDK and the main project include the FBConnect and Unofficial Twitter SDK frameworks. I believe my problems are a result of these frameworks being included in both projects, but I have been unable to find a way to have them coexist without errors. When the project builds for

iOS6 crash <Error>: libMobileGestalt copySystemVersionDictionaryValue

回眸只為那壹抹淺笑 提交于 2019-12-11 10:19:26
问题 I'm stucked over one week I cant figure it out why my app crashed only in IPAD3 ios6.0.1, all other ipads does not crash, my app uses a lot of memory because it downloads a lot of contents and uses also a lot of webviews, here is the crash log: iPad-3 backboardd[51] <Warning>: BKSendGSEvent ERROR sending event type 23: (ipc/send) invalid destination port (0x10000003) iPad-3 backboardd[51] <Warning>: BKSendGSEvent ERROR sending event type 23: (ipc/send) invalid destination port (0x10000003)

How do i create a countdown timer in xcode 4.5 [closed]

给你一囗甜甜゛ 提交于 2019-12-11 09:37:15
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . Ok i want to create MULTIPLE timers that all start at a different time (25, 50,1 min, 1min 30s...) but i dont know how to make it stop when it reaches 0 and when it does reach zero, bring the "Player" to another

Xcode 4.5 UIScrollView

陌路散爱 提交于 2019-12-11 06:22:45
问题 I'd like to add a scrollview to my project. I've added the following code in my file: - (void)viewDidLoad { [super viewDidLoad]; [scrollView setScrollEnabled:YES]; [scrollView setContentSize: CGSizeMake(320, 830)]; } This works good with xcode 4.3 und IOS 5. But know it doesn't scroll. If I deactivate Auto Layout in the file inspector it works perfect. But the layout in for iPhone 4 with the smaller display is not correct. The layout in iPhone 5 looks good. What should I do, when I want don't

NSUserDefaults returns before it has been set

可紊 提交于 2019-12-11 04:54:11
问题 Im making an app that takes two strings and an int. I want these to be displayed on another view. I have put them into an array and Im trying to store them in the NSUserDefaults. I have managed to get this data stored. The problem that im having is that when I change the data and save it again The function that gets the array is called before the one that sets it . So the application always displays the previous data. I thought It would be easy to fix by changing when the functions are called

Xcode no longer compile after my friend upgrade his iPhone to 6.1

偶尔善良 提交于 2019-12-11 04:48:30
问题 No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination. I can still compile on my iPhone but not on my friends' iPhone. 回答1: You need Xcode 4.6 for iOS 6.1 devices 回答2: ya you need Xcode 4.6 ..check the link for more... Xcode 4.6 released alongside iOS 6.1 来源: https://stackoverflow.com/questions/14743016/xcode-no-longer-compile-after-my-friend

In Xcode 4.5 “Show Live Issues” no longer works

早过忘川 提交于 2019-12-11 03:43:06
问题 I found it to be very useful that Xcode would show compiler warnings as I wrote code. For instance: if I wrote "ldksjfksdj" I'd expect to immediately see a red exclamation mark icon and the warning, use of undeclared identifier . But now with Xcode 4.5 I only see that warning after I compile the project. And then, after I've compiled it, see the error, and delete "ldksjfksdj", the warning doesn't disappear immediately the way it used to. It will only disappear after I compile it again. This