xcode

strange Xcode error Could not compile reconstructed dtrace script:

Hello all , i am getting this error when i try to compile an iPhone app. error: Could not compile reconstructed dtrace script: provider CorePlot { probe layer_position_change(char *,int,int,int,int); }; #pragma D attributes PRIVATE/PRIVATE/UNKNOWN provider CorePlot provider #pragma D attributes PRIVATE/PRIVATE/UNKNOWN provi...

xcode compile options

I am compiling from the command line with gcc -o output-file $(mysql_config --cflags) main.c $(mysql_config --libs) How can I add the extra params to xcode compiling options? gcc -o output-file $(mysql_config --cflags) main.c $(mysql_config --libs) ...

Building an array of arrays

I am trying to get the following loop working to fill an array of arrays: while (condition) { [itemsArray fillFromDB]; if (! [checkArray containsObject:checkFlag]) { // Add existing itemsArray to myArray if (itemsArray.count) { // add the itemsArray to myArray and create a new instance of itemsArray [myArray addObject:items...

Xcode - change project templates

So I can add new templates for single files, but I want Xcode to uses these files when setting up the new project (most noticeably the Controller and Delegate .h and .m files). How do I do that? ...

xcodebuild - how to define preprocessor macro?

How can I define a preprocessor macro when using xcodebuild? I need to build my app using a bunch of different configurations, and I would like to do this using a shell script which runs xcodebuild a number of times with different preprocessor macros. ...

How do I build and install applications on a jailbroken iPhone without being in the iPhone Developer Program?

Hi everyone, I would like to build and install my app on my jailbroken device without paying the $99 required for the iPhone Developer Program. I have Rock and Cydia... what is the easiest way to do it (if it's possible)? Thanks. ...

How can I access the int values of an object in an NSMutableArray?

I try to access some values in a NSMutableArray I created, but I only get some numbers (address?) if I try to access them. I was able to initialize an array and can add and change objects with [myNSMutableArray addObject:[NSNumber numberWithInt:10]] and [myNSMutableArray replaceObjectAtIndex:0 withObject:[NSNumber numberWithInt:47] ...

Learning Objective-C. Using Xcode 3.2.1. What is error: Program received signal: “EXC_ARITHMETIC”.

I am learning Objective-C using Stephen Kochan's excellent book "Programming in Objective-C 2.0". I am new also to Xcode. So far all my exercises have worked fine, but when I run program 7.6 FractionTest on page 153 I get the console message "Program received signal: "EXC_ARITHMETIC". The status shows that the program succeeded, but I do...

"The binary you uploaded was invalid. the file was not a valid zip file" Error message uploading app to iTunes Connect

Hi, I'm trying to upload an iPhone app binary to iTunesConnect and keep getting the following error message "The binary you upload was invalid. the file was not a valid zip file". I had an app upload ok recently but this app is having problems. So after a while I carefully went through the following steps trying to make sure everything w...

[iPad] How to make a UIWebView in the DetailView of a Split View display data for a corresponding UITableViewItem selected in the Root View

I have an iPad app. In the Root View I have a UITableView with two levels. I need to display different webpages in the UIWebView in Detail View based on the selected UITableView row. How can I do it? ...

Using Interface Builder efficiently

I am new to iPhone and objective c. I have spent hours and hours and hours reading documents and trying to understand how things work. I have RTFM or at least am in the process. My main problem is that I want to understand how to specify where an event gets passed to and the only way I have been able to do it is by specifying delegates ...

cannot upgrade current target for ipad

Hi everyone, i try to upgrade my old existing app to make it a universal application for iphone and ipad. i clicked on my target and tryed to select "upgrade current target for ipad", but i cannot click it, because its not clickable. my project settings are: The Base SDK is set to iPhone Device 3.2 The iPhone OS Deployment Target ...

Garbage Collection leak? Scripting Bridge leak?

Hello everyone! I'm always really picky about memory leaks and I cannot understand why my garbage collected application leaks. My code is entirely memory-managed and it runs great without garbage collection, not a single leak. However, as soon as I turn on garbage collection it leaks! Just to prove a point, why does this leak in a garb...

"Relative to Current SDK" doesn't work mixing Mac Framework and iPhone static library

I have a framework of code I maintain. It's got mac and iphone objective-c code. And some of it is shared. I'm not having any problems with code. It's a problem with Xcode. Let's just call my framework "AwesomeKit" for this problem. The first thing I did was create an xcode Framework project called "AwesomeKit". Add source files to it,...

iPhone - How can i change the language of UIAddressBook to german?

Hello Everybody, i'm using the UIAddressBook interface to create a new Contact in my App. The problem is, that if the iPhone / Touch / Simulator is in German the UI is Englisch, has someone an idea? Greetings Fil ...

set backgroundColor for UITextField within UITableViewCell

How can I programatically change the backgroundColor of an UITextField that sits in a UITableViewCell? Setting the UITextField.backgroundColor doesn't seem to work. ...

How to call JSON asynchronous in xcode/ iphone develope

I'm using the JSON framework hosting on Google. What and it's a news app that loads JSON feeds, when app goes off to load the feed I want to display the UIActivityIndicatorView but I've found my JSON Access code is not being called asynchronous which is locking the user interface. I have highlighted the function in the code and can't fig...

Navigation controller and keyboard

I have a controller with textfield and its set to first responder when it display. What i know that the keyboard is the subview of uiwindow. when i pop the controller how the keyboard animating? Is keyboard animate to right with controller? or is that different animation? My problem is that keyboard is not animating with controller. Both...

How to set that compiler flag?

Shark told me this: This instruction is the start of a loop that is not aligned to a 16-byte address boundary. For optimal performance, you should align the start of a hot loop using a compiler directive. With gcc 3.3 or later, use the -falign-loops=16 compiler flag. for (int i=0; i < 4; i++) { // line with the info ...

multiple argument list with NS_REQUIRES_NIL_TERMINATION

Hello I have a function -(id) func: params1, ... NS_REQUIRES_NIL_TERMINATION and2: params2, ... NS_REQUIRES_NIL_TERMINATION; Compiler says: error: expected `;' before 'and2' Is there any way to make function with 2 argument lists? ...