xcode4

Xcode 4 - Connecting Outlets

狂风中的少年 提交于 2019-12-04 16:46:31
问题 This page shows how easily I can connect outlets http://developer.apple.com/technologies/tools/whats-new.html in Xcode 4, but I can't get it. I right click and drag an outlet from the new referencing outlet circle, and into my header where the object is declared, but nothing happens. Has anyone used this? Thanks a lot 回答1: I had the same problem with the final version of Xcode 4 and solved it by selecting the File's Owner Custom Class before using the drag & drop outlet feature like shown on

Is there any way to change the date/time as seen on the iOS simulator (other than changing Mac settings)?

放肆的年华 提交于 2019-12-04 16:34:33
问题 I need to do some testing that involves moving the "phone" backwards and forwards through several days. I'd like to do this on the simulator. Is there any available hack that allows the date as seen on the simulator to be changed, without having to change the Mac date? 回答1: Looks like it's pretty tough... How about using xcodebuild to automate building and running the app from a script and using systemsetup -setdate <mm:dd.yy> to change date in between different runs? Then you wouldn't need

iOS 5: Can you override UIAppearance customisations in specific classes?

心已入冬 提交于 2019-12-04 16:29:42
问题 I'm building an app with many view controllers: I have a UITabBarController which holds 4 UINavigationController . I want all the nav bars to be my custom color, say blue, which I achieve by doing this in my app delegate: [[UINavigationBar appearance] setTintColor:[UIColor blueColor]]; But I also have one special view controller which has a map, and for this view controller I want to override the blue navbar set using UIAppearance to make it the black opaque style. I've tried by calling this

Does Xcode 4 support ruby-on-rails?

心已入冬 提交于 2019-12-04 16:16:19
问题 Does Xcode 4 have support for rails projects? If so, to what extent? UPDATE - Obviously it lets you edit text files. But does it give you any IDE features, e.g. syntax highlighting, navigation to declarations, code completion, etc... ? 回答1: I paid up to intall XCode 4 thinking that it would be simpler to consolidate all my development to a single IDE. XCode is the default because of the built in Mac API docs. I built a few MacRuby (0.10) samples, which parse and run. Problems are: XCode

Can Xcode Use “Folder References” for Code?

醉酒当歌 提交于 2019-12-04 16:11:02
问题 Like many people, I would love to have Xcode use a folder structure that mirrors the folder-structure on disk. However, I cannot get the code in "folder references" (the cyan folders) to show up in my project targets under "Compile Sources." Is there any way to do this? I have managed to even add a cyan folder to the "Compile Sources" build phase, but that does not result in the contents of that folder being added. How can I use folder references for code? 回答1: The simple (and very

Can I remove previous versions of iphone support in DeviceSupport folder in Xcode 4?

六月ゝ 毕业季﹏ 提交于 2019-12-04 16:03:40
问题 In my quest to find out why Xcode is so big, i found out that a lot of the space is taken up by the subfolders to the Developer>Platforms>iPhoneOS.platform>DeviceSupport folder.. Since I am (apparently) only allowed to develop for the last of them in Xcode, can I safely remove the rest (in this case 3.0 to 4.2.1)? Same question regarding the subfolders of Developer>Platforms>iPhoneSimulator.platform>Developer>SDKs.. 回答1: Yes you can remove SKDs prior to 4.0 in Developer/Platforms/iPhoneOS

In Xcode 4 GM, how do I turn on LLDB? All I see is GDB

泄露秘密 提交于 2019-12-04 16:02:10
问题 In the scheme run debugger popup, all it shows is 'None' and 'GDB'. This is for an iPad 4.2 simulator built with LLVM. 回答1: You can't. In words of an Apple employee, LLDB is not available for iOS development yet. As of july 2011 it is unknown when LLDB will become available for iOS. In Xcode 4.0.2 your only option is GDB. In Xcode 4.2 you have LLDB as an option, but you can't use it: The LLDB project doesn't list a date for iOS support. The FAQ says: Q: What targets does LLDB currently

Distributing .app file after command line xcodebuild call

我怕爱的太早我们不能终老 提交于 2019-12-04 15:46:30
问题 I'm building/archiving my Mac app for distribution from a command line call (below), with Xcode 4.3 installed. To be clear, I didn't have a working solution for this problem earlier to Xcode 4.3, so advice for earlier Xcode releases could easily still be valid. Here's the call: /usr/bin/xcodebuild -project "ProjectPath/Project.pbxproj" -scheme "Project" -sdk macosx10.7 archive This runs successfully, and it generates an .xcarchive file, located in my ~/Library/Developer/Xcode/Archives/<date>

Xcode 4 terms “Build for testing / Build for running / build for profiling / build for archiving”

北慕城南 提交于 2019-12-04 15:18:56
问题 What do the following actions in Xcode 4 do? Build for Testing Build for Running Build for Profiling Build for Archiving I'm not sure when to use each of these (or whether to use any of them at all). 回答1: Running is for running your app (on the Mac for Mac OS X, in the simulator or on the device for iOS). Profiling is for running your app with Instruments (for finding memory leaks, bottlenecks etc.). Testing is for running unit tests. Archiving is building a distributable package of you app

how to force installation of xcode

僤鯓⒐⒋嵵緔 提交于 2019-12-04 15:09:26
问题 I tried to install XCode via AppStore but it fails with the following message: We could not complete your purchase Xcode is already installed on this computer. Choose Software Update from the Apple menu to check for available updates. This might be caused by a previous try via Download from DevelopersCenter - but as that one failed, I tried with the AppStore which is now failing too... How can I make really remove all from the failed XCode installation to have a retry with the AppStore? btw.