xcode4

Xcode 4.1.1 taking very large amounts of memory on startup (up to 5.4 Gb)?

旧街凉风 提交于 2019-12-04 06:00:34
问题 I am currently developing a game with Xcode 4.1.1 (MBP recent, 8Gb mem). The project accounts for approximately 200K lines of objective-C, 2500 resources. At times, Xcode comes to a screeching stall. I find i need to nuke it and restart. However, upon restart, Xcode bolts just about every byte of of free or inactive memory on my computer, and may eventually not start at all. In those circumstances, I see either mds or finder running furiously on multiple cores, and have to nuke them to even

Where is build output going?

Deadly 提交于 2019-12-04 05:22:10
问题 I have a library project in Xcode 4. I'm building against iOS 4.3. The build products path is set to /Developer/Projects/BuildOutput. I'm building 'iPhone 4.3 Simulator'. In Xcode4, how do you specify a debug or release build? When I go to /Developer/Projects/BuildOutput/Debug-iphonesimulator, the library .a file is not there. In the project settings Info tab, 'command line builds use' is set to Debug. In previous versions of Xcode, debug/release build options were available from the drop

Can I use the new Xcode 4.2 Developer Preview to publish regular apps now?

感情迁移 提交于 2019-12-04 05:04:16
Making the long story short: if I download and install the new Xcode 4.2 Developer Preview on my Mac and start developing new iOS 5 apps, can I still using it for developing and releasing iOS 4.x apps? I do not have the possibility to install two different versions of this platform right now. Probably someone amongst you has tried it and can answer. The iOS 5 beta Release Notes link associated to the new Xcode version seems to be broken. Thank you! No, you can only submit to the app store with the official releases of the tools, not the betas. See also Jano's comment above, on the dev forums

How can I move files & folders using git in Xcode 4?

孤人 提交于 2019-12-04 04:47:32
I'm familiar with the differences between groups and actual directories in Xcode. I always create an actual folder in finder and drag it into the project, ensuring 'copy' is un-checked. When I move folders, I delete the items by reference only, move them in finder, then re-add them. Now I'm using git for the first time, and discovered in my testing that if I remove a directory using the method described above, I can't do a commit. Xcode tells me it can't switch to the directory because 'no such file or directory.' From what I've found online, git isn't notified of the directory changes when

XCode: What do I have to type into the Terminal, in order to change the copyright notice in code templates?

為{幸葍}努か 提交于 2019-12-04 04:44:11
问题 When I create an XCode project, there is a copyright notice commented out. I know that there is an special terminal command for editing this. Anyone knows it? 回答1: defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ORGANIZATIONNAME = "My Company"; }' 回答2: Try: defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME"="stackoverflow";}' or just add a company name to your card in Address Book. 来源: https://stackoverflow.com/questions/705986/xcode-what

How to get started with unit testing in Xcode 4?

不羁的心 提交于 2019-12-04 04:29:45
Does anyone know how to get started with unit testing in Xcode 4? How do I create a test and how do I run it? EDIT: All the Apple documentation is for Xcode 3 occulus See this question: Unit testing in XCode 4 Basically, it says to use GHUnit and ignore SenTestingKit for now (bceause it's broken). GHUnit is pretty nifty. Although most of the documentation is in fact for XCode 3, the XCode4 User Guide: Building and Running Your Code gives clear step-by-step instructions. Essentially, you create a Cocoa [Touch] Unit Testing Bundle target and add all your test code to that target. Then add the

Property List Editor after installing Xcode 4

末鹿安然 提交于 2019-12-04 04:20:58
I cannot find where it is after I installing Xcode 4. Does any one know where it is ? Edit: I had installed another app for editing XML file. It is named XMLEditor and located here . Because I need to edit a plist file with an extension which is not end with .plist , so finally I googled another solutions about XML editor. In XCode 4 the property list editor is integrated. It should appear in the XCode application. I put together a frankenstien version of the Property List Editor a while ago. Its totally self contained and should work as a stand alone app. Find it here: https://www.dropbox.com

Xcode expired certificate problem

佐手、 提交于 2019-12-04 03:12:45
please look at the following screenshot As you see there are two certificates. All are mine, with maching user's ID and common name. Whenever I build the application and launch it in Xcode for device I receive the fatal, that this certificate is duplicated. So I delete the expired one and launch the application again - it's being installed and debugged on device without any problems. But when I launch other project or reboot that expired certificate is shown in the keychain again and again and it's becoming a little bit annoying. What causes that the expired certificate is being readded to the

Ignore “Attribute Unavailable”-Warning in Xcode4

江枫思渺然 提交于 2019-12-04 03:06:48
问题 I'm using a lot of "custom identifiers" for Toolbar Items, which is fine in Xcode4, but it gives me a bunch of warnings when I build the project: Attribute Unavailable Custom Identifiers in Interface Builder versions prior to 3.2 Is there a way to ignore these warnings in Xcode4? It's pretty messy when I search for "real" warnings and errors. 回答1: Click on your xib file. On the properties you will see the following section: . Where it says "Development" change that to Interface Builder 3.2

xcode4 template format question

纵然是瞬间 提交于 2019-12-04 02:39:06
问题 xcode4 uses new format for project templates (xctemplate). With existing templates I was able to get everything I needed except adding a file into the project without copying it. I need all the projects created from my template to use shared resource, so I could update all projects at once updating just one file. Thanks! 回答1: Did you try hard link to the file from your template directory? 来源: https://stackoverflow.com/questions/5375234/xcode4-template-format-question