xcode

Xcode : UNIX Command-Line Tools Installation

I'm trying to install MacPorts but it needs command-line support to be installed with Xcode (which is an option during installation) is there any way I could install UNIX command line support with Xcode without re-installing Xcode? ...

iPhone release build memory error

I get this error when I try to build a release version of my app. It throws an error for a single file that is fairly large, but nowhere near 400+MB (in the KBs) Out of memory allocating 455627472 bytes after a total of 0 bytes Command /Developer/Platforms/iPhoneOS.platform/developerusr/bin/gcc-4.2 failed with exit code 1 I have 3GB o...

App crashes on i386, works on x86_64

Hi, I tried switching architectures in my Xcode project today, because I was about to use low level QuickTime stuff that's not yet ported to 64 bit yet. When i compiled before on x86_64 my app ran just fine. Then i switched the arch to i386 and boom, my app keeps crashing on startup. The weird thing is, the stack tracke has nothing to ...

Draw text in iPhone openGL ES using just objective-c

A need to draw some text in openGL and then make rotations and translations over it. Need to use just objective-c. Any help? ...

Unlock OSX keychain without password?

I'm doing a remote/automated build[1] of my xcode projects[2] and in order to sign my apps I add this line before the build. security unlock-keychain -p keychainpassword This works fine, and unlocks the SYSTEM keychains where the certifcates are stored, but it's exposing the password for the user which the build agent is running on in...

NSMutableArray with Struct

Hi, i like to make an array out of an typedef struct i have. It works fine when i work with a FIXED array size. But just to be open for bigger arrays i guess i have to make it with nsmutable array. But here i dont get it run //------------ test STRUCT typedef struct { int id; NSString* picfile; NSString* mp3file; NSStri...

Trying to build ConnectionKit example (but failing)

Hello, I've got the latest(?) ConnectionKit library by doing: svn co http://opensource.utr-software.com/source/connection/tags/1.2.3/ Then went into the dir (1.2.3), opened Connection.xcodeproj with Xcode, set Mac OS X 1.5 | Release | Framework to build the framework -> Build successful. Then went into 1.2.3/Example, opened Connecti...

Convert iPhone App to iPad App (Just The Easy Part)

I make a basic View-Based application for iPhone in XCode 3.2, but when I switch the emulator to the iPad, the application gets "framed" (not sure what the right term is): If I adjust the width of the View(s), it has no effect. I cannot adjust the width of the "Window" in Interface Builder (it's greyed out, and adding another Window t...

Why is XCode freaking out?? I.e., Xcode says methods & properties do not exist but they do!

XCode has been acting really, really strange recently. It is telling me that various classes' methods and properties do not exist - but they do! This is happening both with a custom class, and a Core Data class. I have declared all of the methods and properties, including all the necessary @synthesize calls, and have predeclared the clas...

How can I install an older version of the iPhone SDK (v3.1.2) to work with the latest GM?

I installed the latest GM of the iPhone SDK and now I can't build and compile many of the example projects on the Apple iPhone dev site. When I load them, the configuration bar says "Base SDK is missing." It appears the example project I'm trying to build (QuartzDemo) is trying to build against the v3.1.2 SDK. How can I install an old...

Xcode, no debug symbols for certain subclass

I'm using Xcode 3.2.3 and iPhone SDK So I'm trying to debug a UIView subclass, I hit a breakpoint in an overridden method and I can't see any symbols in either the GUI or gdb, just globals and registers. This is what I see: (gdb) po self No symbol "self" in current context. Yet when I set a breakpoint in a UIViewController subclass,...

UIImageView with jpg has incorrect size

I'm at a loss with an UIImageView that I load into a scroll view. The original jpg Image has 1600 x 2000 pixels. In Interface builder I set the image frame to 1600 x 2000. When I run it and NSLog the image bounds I get a bounds size of 1603.565 x 1830.737 (?)!. The image also doesn't really reach down to the end, but takes an actual s...

Which MacBook can comfortably display XCode for iPhone development?

I need a portable Mac for iPhone / iPad development. I bought and am using a 15" MBP matte display right now. It cost $2400 and is hard on my eyes because the resolution is 1680 x 1050. I'm thinking of returning it and getting a different laptop, but which one? My usage pattern is that I see myself shuttling this computer to and from wor...

How do I create a UISlider dynamically in code?

I would like to know how to create a UISlider at runtime. ...

Is it possible to put HeaderDoc documentation comments for a single entry on several places? (Xcode)

I have many .h file which contains many inline functions. And they configured for conditional compilation. In fact, this is a math library have reference and optimized codes. I'm putting some comments on here. There is a function prototype, and 2 implementations. Is this possible? void func1(); /*! Basic description */ void func1() ...

Search file system with Xcode Mac application.

Hello, my uncle challenged me to make an application in which you can search the file system of a Mac. I've never actually had to do this yet in my programming experience, but I think it would be good to know as well. I have a search field, and a button that says search. Does anybody know how I can make that search the file system, and d...

Compiling C code as static library for use in iPhone app?

Pardon me if this is a "noob" question, I'm overextending myself a bit with this. I'm trying to compile a library written in C for use in an iPhone app I'm developing. I can't seem to figure out how to do this, and I've been searching and trying things for hours. I've tried using an External Build System project, and selecting the fold...

how to use cellular network for getting data from URL in xcode

Hai to all In general cases if we want to get the data from any URL ,using internet or Wi-fi we will hit the url and parse that data and use it. But in the application what I am doing, I need to use pdp_ip0 cellular network only even though the wi=fi is available. So ,could any one help me how to use cellular n/w. Thank you all. ...

how to create static library with protect to access .m file

i have start create my static library and then add .h and .m file to my project, then set role of .h file as public after that build and copy mylibraryfile and .h file from build folder to another project then i click on .h file and Go To Counterpart Button still able to access to my .m file? how can i fix it? or i do somethings wro...

xcode slow to install on simulator and device

To 'build and go' on the simulator takes about 30 seconds To 'build and go' on the device takes about 5 mins. I am 99% sure the reason is that I have lot of images (~4000 ~80mb). The build itself stage takes about 2 seconds, so the problem is the install. Does anyone have any tips to speed it up? The images do not need to be changed...