xcode4.3

clang: error: cannot specify both '-fobjc-arc' and '-fobjc-gc'

久未见 提交于 2019-12-07 11:02:25
问题 I do have Objective-C Automatic Reference Counting set to YES , but I have Objective-C Garbage Collection set to Unsupported So I don't see how -fobjc-gc could be getting set. Is there something else that also sets it that I haven't noticed? I've tried a clean build, so it's not something sticking around. 回答1: I found the answer, indirectly, thanks to this question. It turns out, that to get rid of garbage collection, I need to BOTH turn off garbage collection in the compiler settings when I

How do I log russian text or non-latin?

坚强是说给别人听的谎言 提交于 2019-12-06 15:03:54
Everything works well in the previous version of XCode. But today in the XCode 4.3.2 I have a problem. How do I log russian text or non-latin? NSLog(@"russian text: русский текст"); NSString *text = @"russian text: русский текст"; const char *textC = [text UTF8String]; NSString *getText = [NSString stringWithCString:textC encoding:NSUTF8StringEncoding]; NSLog(@"___text: %@", getText); My logs russian text: —Ä—É—Å—Å–∫–∏–π —Ç–µ–∫—Å—Ç ___text: russian text: —Ä—É—Å—Å–∫–∏–π —Ç–µ–∫—Å—Ç UPDATE: The bug take place only on real device (ipod touch 5.1). It works properly on iphone simulator. Works fine

xCode 4.3.1 always jump to main function when having exception

对着背影说爱祢 提交于 2019-12-06 12:04:09
My XCode (v4.3.1) always jump to main: int main(int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate"); [pool release]; return retVal; } whenever i have an exception. What's wrong with my xCode? How can I fix this issue? Please help me! XCode will sometimes not stop quite where you want it when an exception is thrown. If you want to know exactly where it's thrown , you can set a breakpoint in objc_exception_throw and have it halt right at the @throw line. As a bonus if you're using multiple projects

iphone uipickerview : image and text

ⅰ亾dé卋堺 提交于 2019-12-06 08:11:25
问题 is it possible to have an image (like an icon) next to a text in UIPickerView ? I saw examples of UIPickerViews with two Columns :one that has an image and another one with the text . this is not what I need , I need to have a single column with text and Images Thanks. 回答1: You will need to create your own view for each row of the picker. This is easy enough if it's just a UIImageView and a UILabel. You can then pass the view to your picker using this UIPickerViewDelegate method. - (UIView *

check and update an application through code when a new version is available in appstore

送分小仙女□ 提交于 2019-12-06 06:32:44
Within my application, I want to check if there is any updated version of my application is in the app store. If there is any, then have to inform the user through an alert message and if he/she opt for upgrade I want to update the new version.I want to do all this through my application. Is this possible? You can store the most current application version string on your server. When the app is activated, request this information from the server and compare it to the version string that is contained in your applications Info.plist. You can get the version in Info.plist like this [[NSBundle

Console error “CGAffineTransformInvert: singular matrix” in UIWebView

*爱你&永不变心* 提交于 2019-12-06 05:48:41
问题 First and foremost, I have searched this thoroughly and I'm not convinced with any solution to start. I have a simple UIWebView wrapper and we have our code deployed on a static server. The URL of our server is the loading URL of the UIWebView, if there isn't any valid JSessionID, it redirects to the login page(from the client) which redirects back to our server when a successful JSessionID is captured. The console displays the following error Anshuks-MacBook-Pro-2.local xyz[40332] <Error>:

xcode prompt file is locked for editing doesn't remember Unlock choice after choosing “Do not show this message again”

人走茶凉 提交于 2019-12-06 04:39:26
If I start typing in a readonly file in Xcode for the first time, I get prompted with a dialog that basically says the file is locked for editing, and asks me if I want to unlock it. If I choose Unlock, I can continue editing the file. At one point, I got annoyed at this (as I will always want it to unlock), and so I clicked "Do not show this message again", with the expectation that it would remember my choice. However, while I no longer get prompted, it also does not unlock the files anymore - it seems the default without being prompted is always "Don't Unlock". Is there a way to

Disable Nvidia watchdog with OpenCL on Mac OS X 10.7.4

我怕爱的太早我们不能终老 提交于 2019-12-06 04:15:58
I have a OpenCL program which runs fine for small problems but when running larger problems exceeds the 8-10s time limit for running kernels on Nvidia hardware. Although I have no monitors attached to the GPU I am computing on (Nvidia GTX580), the kernel will always be terminated once it runs for around 8-10s. The preliminary research I did on this problem indicates that the Nvidia watchdog should only enforce the time limit if a monitor is connected to the graphics card. However I do not have any monitors connected to the GPU the OpenCl is running on yet this limit is still enforced. Is it

iOS app crashes with no error, just (lldb)

末鹿安然 提交于 2019-12-05 18:28:34
My application lately seems to randomly crash with no error or exceptions. The console just shows (lldb) in light blue. I have uncaught exception handling and still nothing. It happens at random times. I can do the same task over and over and sometimes it will happen and sometimes it won't. Also sometimes it will happen in random places within the application. So far what I have read is it is possibly just the lldb debugger crashing and not my app however I haven't noticed it before. Any ideas how to figure out what the cause of the crash is? It seems to have started when I added MBProgressHUD

clang: error: cannot specify both '-fobjc-arc' and '-fobjc-gc'

痞子三分冷 提交于 2019-12-05 13:04:04
I do have Objective-C Automatic Reference Counting set to YES , but I have Objective-C Garbage Collection set to Unsupported So I don't see how -fobjc-gc could be getting set. Is there something else that also sets it that I haven't noticed? I've tried a clean build, so it's not something sticking around. DRVic I found the answer, indirectly, thanks to this question . It turns out, that to get rid of garbage collection, I need to BOTH turn off garbage collection in the compiler settings when I click on Build Settings under the Project, and under the Target. If they disagree, the target (which