xcode4

Can Xcode Use “Folder References” for Code?

对着背影说爱祢 提交于 2019-12-03 10:24:52
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? The simple (and very unfortunate) answer is that Folder References under Xcode remain broken and buggy, they don't work. Tested 04-Mar-2017

How to change Xcode build setup without modifying project files?

邮差的信 提交于 2019-12-03 10:20:52
问题 I would like to know if it is possible to change compile settings without modifying the xcode projects. Example, adding -Wno-unused-parameter to CFLAGS in such way that it will be used by Xcode when building projects. This has to work in both case: build made from xcode in GUI or from the console. If someone asks about why, let's say that the number of projects is quite big and that you may want to alter the options only temporary. 回答1: Put the compiler settings you want to change in a

How do I submit an app through Xcode 4's organizer? I'm getting an error

霸气de小男生 提交于 2019-12-03 10:17:48
问题 I installed Xcode 4, thinking it would be similar to Xcode 3, and now I cannot get my binary to the App Store using organizer which I believe is the proper way to do this. Has anyone got this working properly? Not sure what setting I need to update - All I get is an "invalid binary" message. Of course, it is a critical update I need to submit. 回答1: I've had something similar. You should check your code signing settings. Xcode 4 introduces "schemes", which are a little complicated. Think of

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

旧巷老猫 提交于 2019-12-03 10:03:36
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.. Ludovic Landry Yes you can remove SKDs prior to 4.0 in Developer/Platforms/iPhoneOS.platform/DeviceSupport it's just old stuff. For the subfolders in Developer/Platforms

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

我们两清 提交于 2019-12-03 09:30:01
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). 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 (incl. Ad-hoc iPhone distributions and upload to the App Store). 来源: https://stackoverflow.com/questions

How to 'show current line' in in Xcode 4?

邮差的信 提交于 2019-12-03 09:24:53
I know you can go to preferences and enable a column that appears on the left part of the editor, showing the line number. But I am asking is there a way of showing the line number in some kind of status bar or any other part of the Xcode UI without enabling this option (similarly to what Xcode 3 did)? From what I've read so far, I think this option has been removed from XCode 4. Personally, I leave the line numbers column on all the time and it's not too intrusive. Its not removed..Goto X-Code--> Preferences --> Text Editing --> Check Line Numbers.. Dave Keck's Xcode fixins might provide a

XCode 4:Insert Subversion revision number in Xcode

僤鯓⒐⒋嵵緔 提交于 2019-12-03 09:11:30
Yes, this is very related to this question , yet I think that question is adequately answered for XCode 3. Not sure if this should be merged or not. So - Using similar instructions from there, I've long had the nice effect of having build numbers encoded into archived .ipa files, such that Organizer shows versions like "1.0.3281" (where 3281 is the revision via the below build script attached to my iOS target): REV=`svnversion -nc | /usr/bin/sed -e 's/^[^:]*://;s/[A-Za-z]//'` echo "REV=$REV" echo "#define kRevisionNumber @\"$REV\"" > ${PROJECT_DIR}/revision.h echo "INFOPLIST_PATH=${INFOPLIST

Xcode 4: Fetch Request Template Variables?

霸气de小男生 提交于 2019-12-03 09:01:01
问题 In Xcode 3.X, you were supposed to right-click the whitespace in the fetch request template's predicate editor to specify a variable input rather than a hard-coded predicate. Where is this in XCode 4? I've held option, right-clicked, option-clicked, etc and cannot figure it out.... 回答1: I don't think X4 has the variable anymore. Instead, I think you have to choose an expression and then provide a variable of the form $VARNAME . For example, given and entity Alpha with an attribute aString , I

How to create Popovers with Xcode Storyboards

本秂侑毒 提交于 2019-12-03 09:00:35
问题 How can I create a popover in an iPad Storyboard for an iOS 5.0+ app? There's already one setup with the Xcode Project Template (Utility App), but I can't seem to figure out how Apple got it to work. I tried to mimic it, but only got errors. I even looked on Apple's Dev Site, but only got out-dated code that resulted in warnings and build errors. I have a CBMainView and a CBMasterView (with the exception of the master view already included), and a UIToolbar with a UIToolbarButton . I need the

Why can't I add a child pane plist file into my project's Settings.bundle?

ぐ巨炮叔叔 提交于 2019-12-03 08:56:37
问题 I'm running Xcode 4.1 and I've been following a tutorial about app settings. Everything has been going great up until I get ready to add a plist for a child pane that I want to add. The video tutorial I'm watching (also using Xcode 4.1) shows the guy right-clicking the settings.bundle and choosing Add File... and then saving a file named More. In the video tutorial, he ends up with a More.plist showing up in the project and also in the settings.bundle right in the same level with the Root