1
vote
1answer
93 views

Compiling Objective-C Application on Linux

I've written a command line application in XCode using Objective-C. When added to my /usr/local/bin path is works as expected in OS X. However, I would like to make the binary work on Linux. The ...
7
votes
2answers
509 views

What did the compiler and run-time system really do in my generated assembly?

I would like to understand how the generated assembly and the runtime work together, and came across a question while stepping through some generated assembly code. Source Example Here are three ...
0
votes
1answer
62 views

objective c libraries on ubuntu

can any one help me quick please :( ? I installed gnustep on ubuntu and some tools for objective c development but when I compile an objc project gcc -o hello hello.m -Wall -lobjc that appears to ...
2
votes
2answers
212 views

Incompatible pointer types initializing 'SubClass *__strong' with an expression of type'BaseClass *'

In objective-C, why we can not alloc+init or new a base-class object with super-class, whilst we can use constructor of super-class to initialize? Below is some code : s1 can be created quite ...
1
vote
2answers
70 views

Add no-objc-arc to the implementation or interface file

I have a class (NDTrie on github) which uses c struct for its internal structure, it would make it easier for users to use it in their projects with automatic reference counting by adding the ...
4
votes
1answer
78 views

Objective C Seg Fault that only occurs when compiler optimizations are enabled

I'm stumped trying to debug an issue on iOS that seems to only occur with Release builds which seems to implicate that the optimizer is doing something that isn't playing nicely with my code. The ...
0
votes
1answer
25 views

NSPageController not allowed, but settings are set to OS X 10.8

I am using an NSPageController in my app, in Targets -> Summary, Deployment Target is set to 10.8. In Targets -> Info, Minimum system version is ${MACOSX_DEPLOYMENT_TARGET} In Targets -> Build ...
0
votes
1answer
66 views

Redirect input/output of a terminal to a gui in iOS JB

I'm writing a GUI C/C++ editor that also compiles source files for the iOS platform, using the GNU compiler that ships with Cydia. It's going to be a Cydia app, so everything should work. To compile ...
5
votes
4answers
131 views

Compile time check for valid file references in Xcode

Is it possible to force the Xcode complier to verify that files referenced in code are valid? There are multiple points in Cocoa development when you naturally reference a file programmatically via ...
2
votes
1answer
101 views

Compile Warnings About Missing @required Protocol Methods NOT Appearing

I was tinkering with XCode 4.5.2 this morning and wanting to make a table view I naturally added the UITableViewDataSource and UITableViewDelegate protocols to one on my view controller definitions. ...
1
vote
1answer
76 views

Objective-C issue - expected identifier or '(' before class

In my header file GuiController.h: #import <Cocoa/Cocoa.h> #import <APPKit/NSTextField.h> #import "ClientSocket.h" #import "UploaderThread.h" #import "DownloaderThread.h" /** * SER 321 ...
0
votes
1answer
24 views

edit supporting files location for compiler in Xcode

I renamed the folder in which my Xcode project's supporting files are stored, and now I am unable to compile my project. I was able to edit the build settings to reflect the new folder name, but the ...
1
vote
1answer
93 views

Apple LLVM compiler 3.1 error

I started to get this peculiar compiler error which I cannot seem to solve. I went through some other posts in internet suggesting fixes, but none of them worked for me. I tried changing the build ...
4
votes
2answers
108 views

C function and variable inside Objective-C class implementation?

I can define c function and variable inside Objective-C class implementation like this: @implementation MyViewController - (void)viewDidLoad { [super viewDidLoad]; cfunction(); } // ...
0
votes
1answer
355 views

Compiler and/or Xcode errors unknown type and expected identifier. Import loop?

Edit2: I restructured all of my headers to have the @class as opposed to the #import language. All .m files now have #import. The problem as posted here seems to be fixed. There are some BAD ACCESS ...
1
vote
0answers
36 views

Compiler warning for unavailable methods?

Is there a way to make the compiler warn for using methods that may not be available in the deployment target SDK? For example, using dismissViewControllerAnimated:completion: when the target is 4.3. ...
2
votes
1answer
143 views

Warning “Use of GNU statement expression extension”

I have this Objective-C istruction: NSRange range = NSMakeRange(i, MIN(a, b)); where a and bare NSUIntegers. MIN() is the macro defined in the standard NSObjCRuntime.hheader file as: #if ...
2
votes
2answers
66 views

How does the compiler determine which messages can be sent to an id type variable?

I've come across this 'problem' (it's not really a problem, I merely was astonished that that was possible) while trying some things with TabBarController template in Xcode. If you use the template ...
2
votes
1answer
227 views

Duplicate symbols issue with 2 third party libraries in Xcode

I'm trying to compile a project that depends on 2 third party static libraries. The issue is that both third parties have included the same set of "utility" classes in their static library ...
0
votes
2answers
551 views

What is a non-fragile ABI?

It may seem implied that everyone knows what a "Non Fragile ABI" is - considering the frequency and matter-of-fact-nature to which it is referred to - within Xcode. For example... Subscript ...
1
vote
4answers
1k views

Big problems while compiling FFMPEG for iOS5

I'm trying to compile the ffmpeg library for iOS5. I tried different options but none works. I downloaded this: https://github.com/ciphor/ffmpeg4ios . I tried the original build_armv7 but it didn't ...
1
vote
1answer
53 views

Code does not compile for extra large implementation file

The compiler exits by throwing following error. /var/folders/2t/jkh9ngsn6f9bnmz8l0mz0zm80000gs/T/xsdLocal20-ZhAiH9.s:1895977:branch out of range clang: error: assembler command failed with exit code ...
3
votes
2answers
98 views

Is it important not to have unused class imports in Objective - C?

I want to #import my custom class in "ProjectName"-Prefix.pch file in Xcode project. #ifdef __OBJC__ #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import ...
0
votes
1answer
349 views

Invalid Conversion Specifier - SQLite - xCode Objective C

I have just updated my compiler after downloading the new version of xCode. I am getting the following error around this piece of SQLite code : if (pack !=YES) { query = [[NSString alloc] ...
7
votes
2answers
343 views

CoffeScript'esque language for Objective-C?

Seeing what has been done for Java with Xtend and Mirah I can't help but think someone must be playing around with something similar for Objective-C or even C and C++ for that matter. After some ...
0
votes
0answers
63 views

adding .h and .m files to an Objective C project

Apologies for a noobish question.. I'm building an Iphone App, and I'm trying to add some new code in 'C', in a separate file.. So I created two new files - newCode.m and newCode.h. I included the ...
0
votes
2answers
70 views

Duplicate symbol error in objective-c

I need some globals in my Objective-C application. For that purpose, I've created class Globals (that inherits NSObject) and put readonly properties in it. I've also declared some constants, like ...
2
votes
3answers
222 views

Is every single file compiled in Objective-C?

I would like to know, which code is compiled when i build the project in Objective-C - every single line of code in my project, or only those, that are called from the main.c and then from the ones ...
7
votes
2answers
571 views

Can I get the C++ preprocessor to send output during compilation?

I have been debugging a particularly insidious bug which I now believe to be caused by unexpected changes which stem from different behavior when different headers are included (or not). This is not ...
2
votes
1answer
315 views

Set Up iOS project to use eigen

I'm trying to set up an iOS project to compile a c++ library called Eigen for Linear Algebra maths. I begin following the instructions of the Question mentioned in: How to compile Eigen in iPhone ...

1 2 3 4
15 30 50 per page