xcode4

Is there a way to list all files and their targets in Xcode?

孤街醉人 提交于 2019-12-03 08:50:01
I am part of a project with multiple developers. The project contains multiple targets. VERY often, files are committed to the Xcode project repository with some targets not-included (careless programmers). So whenever i do a 'svn up', and run the app, my program crashes. I then have to look through all those files and see which one was committed with the missing target, then add the target, and recommit the file to the repository (for that careless programmer) Is there some way through a script to either automatically add all .m to a particular target? OR list all the files that are missing

how to force installation of xcode

吃可爱长大的小学妹 提交于 2019-12-03 08:49:01
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. I already did this: sudo /Developer/Library/uninstall-devtools --mode=all Many thanks! The App Store

Xcode 4.x - making it point to the offending crashing line

独自空忆成欢 提交于 2019-12-03 08:47:31
Every time Xcode crashes it points to this line on main.m int retVal = UIApplicationMain(argc, argv, nil, @"AppController"); I know Xcode 4 debugging stinks compared to 3.x, but how do I make it point to the line where the crash happened. Please don't: Tell me to enable NSZombieEnabled; Tell me to add an exception breakpoint to break for all exceptions on Catch or on Throw. Tell me Xcode 4.x is better than 3.x for debugging. All this stuff is useless or barely useless and Xcode continues to crash on the same line on main.m... Please save me from this. Thanks. Here's an idea: just one try/catch

OpenGl ES on Iphone - Displaying and rotating 3D objects

本小妞迷上赌 提交于 2019-12-03 08:46:22
问题 I'am new to Iphone, to Xcode and to openGL ES. I looking for an example of a source code witch demonstrates how to create 3d object, rotate it with gestures and zoom in, zoom out ... Thanks, Alex 回答1: Here is the simple example how to display and rotate 3d models created with Blender: http://iphonedevelopment.blogspot.com/2009/06/using-3d-models-from-blender-in-opengl.html The complete source can be found here: http://innerloop.biz/code/ExportTest.zip 回答2: I can recommend the OpenGL

Can't build XCode 4 Project from Textmate

家住魔仙堡 提交于 2019-12-03 08:27:59
I've opened a newly created XCode 4 project in TextMate (by dropping the project folder on the TextMate icon like the manual suggests) and have attempted to build it using the Command-B shortcut and selecting 2 for an XCode build. I get the following error xcodebuild: error: invalid option '-activebuildstyle' Usage: xcodebuild [-project <projectname>] [[-target <targetname>]...|-alltargets] [-configuration <configurationname>] [-arch <architecture>]... [-sdk [<sdkname>|<sdkpath>]] [<buildsetting>=<value>]... [<buildaction>]... xcodebuild -workspace <workspacename> -scheme <schemeName> [

How to create a new “templates” category on Xcode 4 and use my own file templates there?

自古美人都是妖i 提交于 2019-12-03 08:11:48
I would like to start using my own templates for iOS applications. I don't want any significant changes, but simpler things like add/remove some boilerplate code add some pragma mark sections hardcode my company's name and some comments for every file change the indentation etc etc etc The idea is that we will share these templates when we create apps, but at the same time we want to keep the default template files that Xcode 4 already provides. So, in the following screenshot, how can I add a "CompanyName Application" section that contains exactly the same templates (Navigation-based, View

Xcode 4 "waiting for process 'Appname' to launch

好久不见. 提交于 2019-12-03 07:50:46
问题 I installed Xcode 4 and now cannot run one of my iPhone projects. Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin".sharedlibrary apply-load-rules all Waiting for process 'AppName

How can I get iphone device type?

我只是一个虾纸丫 提交于 2019-12-03 07:46:43
I want to get iphone device type if it is iphone 2 or 3G or 4 in xcode 4.0. Is there any way to get it? If it is, please tell me. modocache Caleb is right, you shouldn't check for device type, but for functionality. For example, you can check whether the device supports multitasking like so: UIDevice *device = [UIDevice currentDevice]; if ([device respondsToSelector:@selector(isMultitaskingSupported)] && [device isMultitaskingSupported]) { // ...code to be executed if multitasking is supported. // respondsToSelector: is very useful } If you must, you can check the iOS version, but know this is

LLVM 2.0 can't build for iPhone simulator. GCC 4.2 works fine

こ雲淡風輕ζ 提交于 2019-12-03 07:36:52
When I build my project (any project, really - I tried creating a new empty project with the same results), it builds fine with GCC 4.2 under either Xcode4 or Xcode 3.2.4. If I build using LLVM 2.0 under Xcode4 or with LLVM 1.5 under Xcode3, I get compile-time build failures, but only when building for the Simulator. The build errors that I get under LLVM are all in headers over which I have no control, such as UIView.h, UIDevice.h, UIApplication.h, UITextView.h and UIWebView.h in UIKit and CGPDFContext.h in CoreGraphics. Here's an example error, in WebView.h: @property(nonatomic)

No symbols/source for external library in Xcode 4

こ雲淡風輕ζ 提交于 2019-12-03 07:36:16
问题 My application is not seeing source code for a library: If I "Jump to definition" on a library method, XCode takes me to the .h file but says there is no .cpp counterpart When debugging, I see no source code and most of the call-stack is missing for the library: I have made sure "Show disassembly when debugging" is UNchecked I built the library as DEBUG and then packaged up the headers+.a file into a SDK dir. So I guess I need to either copy the debug files into that SDK dir as well, or tell