xcode4

How to add base SDK for 10.5 in xCode 4

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-17 17:48:18
问题 I've installed xCode 4 last night and tried to compile a software which should support 10.5 and above OSs. It gave the error message "Base SDK missing". I found that 10.5 base SDK is no longer in the menu. Is there any way to get that base SDK? Is there any get around for this problem? Thanks in advance. 回答1: Dropping the 10.5 SDK is also a problem for software which does not use Xcode for the build system, but expects (perhaps foolishly) for specific SDKs to be in place. To add the SDK back,

How do I create a Delete-Line Keyboard shortcut in Xcode 8? The Xcode 3 solutions do not work anymore

血红的双手。 提交于 2019-12-17 17:24:36
问题 In previous versions of Xcode it was possible to create a key binding to delete the current line. There were different solutions and they are described for example here: Xcode: Delete line hot-key Xcode duplicate/delete line http://bigdiver.wordpress.com/2009/09/11/configure-homeend-key-bidings-on-mac-os-x/ http://www.betadesigns.co.uk/Blog/2010/02/03/custom-xcode-shortcuts/ All solutions include modifying one of these files: ~/Library/Application Support/Xcode/Key Bindings/*.pbxkeys ~

Trying to pass data between viewControllers

て烟熏妆下的殇ゞ 提交于 2019-12-17 17:13:14
问题 I have a sequence of 4 viewControllers inside a NavigationController, each grabs a few textFields of input from the user which are stored in a NSMutableDictionary. Each of the VC's set's itself up as the delegate of the nextVC before it segues, it also passes the NSMutDict along. This works fine. What I don't understand is this: Say I have filled in the 5 textFields in VC1. Then I set myself as the delegate of VC2, pass VC2 the dictionary with the input data and segue to VC2. In VC2 I fill in

Fonts not displaying in Interface Builder

痞子三分冷 提交于 2019-12-17 16:11:34
问题 For some reason many of the fonts will not display in Interface Builder when I am designing my iPad app. Unfortunately my iPad is yet to be delivered so I cannot tell if this is going to be a problem in the long run, but it certainly maintains through to the simulator. The fonts in question are listed on various websites as being compatible with the iPad but SDK 4.0.1 still seems to be confused. For example Hoefler Text font assigned to a label drawn directly on fresh iPad view displays using

iOS 3.x support in Xcode 4

柔情痞子 提交于 2019-12-17 15:35:59
问题 Is it possible to write apps that support iOS 3.x versions using Xcode 4? If so, how? And does Apple have any official recommendations on app backwards-compatibility? 回答1: To get your app successfully run in iOS 3.x device, follow these steps (Xcode 4.2): Click on your project name, select your Target and under "Build Settings" a) Set "iOS development target" (under "Deployment") to 3.0 b). Add "armv6" to list of "Architectures" (under "Architectures"). c) Set "Other Linker Flags" (under

Archive does not appear in xcode4 organizer

限于喜欢 提交于 2019-12-17 15:32:51
问题 I am trying to submit an app to iTunes using the new xcode4. I followed the apple instructions but after doing product> archive, I still do not see anything in my organizer. Can anyone help? 回答1: I got the same problem. Took me whole night to solve. The doc gave the wrong instruction - therefore all your archives are created but their size is zero. You can verify this by going to their directory (...derived data...) Anyway, in the "Skip Install", set the value for "Release" as "NO" (the help

How to include a bundle in main project xcode 4.1

烂漫一生 提交于 2019-12-17 15:27:38
问题 [UPDATE 03/04/2015] The question is now 4 years old, and applies to a specific version of XCode which I have now specified in the subject. I have searched a lot for this argument, but I couldn't find a solution, I even post on stackoverflow, but I soon deleted the question becuase of very little access. Now I am trying again. I have a workspace with two distinct projects A and B. B has two targets, one that build a static library Blib.a, and one that build a bundle B.bundle. All of them get

Running script only for an 'Archive' build in Xcode 4

帅比萌擦擦* 提交于 2019-12-17 15:24:34
问题 I have a script that I run using osascript from a Run Script Build Phase in Xcode 4. This script does some checks to try and catch any human-error in plists and suchlike. However, I only really want to run this script when a developer chooses 'Archive' as opposed to running it every time they build. Is there any way of testing for this situation? Either in Shell Script or Apple Script? 回答1: In Xcode 4+, you could run this script as a pre- or post-action script on the "Archive" action. However

Xcode 4 - Debug Area no longer shows my console output (NSLog)

感情迁移 提交于 2019-12-17 11:04:52
问题 My NSLog messages no longer show up in my Debug Area. Anyone have an idea how the could have happened? I can hit command-7 to bring of a list of logs in the left pane, select the latest one and view it in my editor window, but it is extremely annoying compared to having the console output in the debug area. 回答1: Not sure but may be you have clicked on one of the three buttons at the top right corner of the debug area that are used to either show only variables view, only the console or both.

Xcode 4 - Debug Area no longer shows my console output (NSLog)

社会主义新天地 提交于 2019-12-17 11:01:51
问题 My NSLog messages no longer show up in my Debug Area. Anyone have an idea how the could have happened? I can hit command-7 to bring of a list of logs in the left pane, select the latest one and view it in my editor window, but it is extremely annoying compared to having the console output in the debug area. 回答1: Not sure but may be you have clicked on one of the three buttons at the top right corner of the debug area that are used to either show only variables view, only the console or both.