Translate

顯示具有 XCode 標籤的文章。 顯示所有文章
顯示具有 XCode 標籤的文章。 顯示所有文章

2013年6月13日 星期四

Xcode 4.6.2常莫名crash

国外有人有解决办法了:
since yesterday's OSX update, every other run on the simulator is crashing on start. It appears to work fine when compiling and running on hardware.

I thought it could be useful for your to warn other developers to hold off from performing the update if they want to work on the simulator."

I've experienced the same issue, but found that switching from LLDB to GDB (on the advice of Tony Arnold from Apple's Dev Forums) seems to fix the problem for the moment.

Update your scheme by selecting Product > Scheme > Edit Scheme, and choose the GDB debugger for your debug scheme.

简单的说,就是把Scheme里的LLDB换成GDB,就解决这个问题了!

2013年6月4日 星期二

Xcode files ARC setting

To see which files override the ARC setting:

Select your project in the navigator. This will open the project editor.
In the project editor, select your target.
In the project editor, click Build Phases (not Build Settings).
Expand the Compile Sources build phase.
Here, you can see the compiler flags for each file. Files with that set whether or not to use ARC will include either -fno-objc-arc or -fobjc-arc, for specifying MRR or ARC respectively.

How to know Xcode project is using ARC?

Select your target, then Build Settings. Look for Objective-C Automatic Reference Counting in the Apple LLVM Compiler - Language section.

2012年9月5日 星期三

Application does not run in background

在專案的info.plist新增

Application does not run in background

設為YES


2012年5月31日 星期四

xcode read plist and txt

注意[NSBundle mainBundle]裡面的檔案是唯讀的不可變動

read plist NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"read" ofType:@"plist"]; NSMutableDictionary *plistData = [[NSMutableDictionary alloc] initWithContentsOfFile:plistPath]; read txt NSString *txtpath = [[NSBundle mainBundle] pathForResource:@"read" ofType:@"txt"]; NSString *txtText = [NSString stringWithContentsOfFile:txtpath encoding:NSUTF8StringEncoding error:nil];

2012年5月30日 星期三

iPhone App Icon 去上方光圈

在Xcode裡面的info.plist

Key
Icon already includes gloss effects

Type
Boolean

Value
YES

這樣Icon就會去光圈

iTunes上的512*512的圖
會等審核成功後也會一起去光圈不必擔心