Tagged Questions
0
votes
1answer
24 views
Running mach_inject with Qt in OSX Mountain Lion
On OSX Mountain Lion I'm able to compile mach_inject and the included test project. That works as expected with injection functioning perfectly.
I'm now trying to use the same mach_inject framework ...
1
vote
1answer
32 views
Intel C++ compiler and cannot open stdarg.h on OS X
OS X 10.6.8, XCode 3.2.6, Base SDK 10.5, Intel Compiler 11.1
I am getting a weird message when I try to compile that says:
catastrophic error: could not open source file "stdarg.h"
I am using a ...
5
votes
1answer
80 views
Compile Java in Xcode 4
I know that this question has been floating around for ages now ...
Java in Xcode 4.
I don't need any recommendations (Eclipse, Netbeans e.g.) I just want to compile some simple Java Code in ...
0
votes
0answers
30 views
Apple Mach-O Linker Warning about overriding instance method and shows same path
in my project I get over 200 linker warning, which have all the same pattern.
For example:
ld: warning: instance method 'methodName' in category from
...
0
votes
0answers
20 views
Get information about the asset size?
i´m using Unity for 3D games.
When i deploy my game to a platform, i get an asset output how large all the contents are.
Here´s a link for more information about that:
Unity Reduce File Size
I just ...
0
votes
1answer
38 views
Need help understanding Xcode *.pch files
I'm working on a 3rd party UIKit replacement for iOS. I have it building as a framework using a seriously helpful project from GitHub. (Not mine, but if you have interest, it's here.
I'm trying to ...
0
votes
2answers
34 views
Which one is the best compiler for the performance point of view?
Since there are several compilers in Xcode, my question here is which one is the best among them from performance point of view and what's the difference between them. Some of the compilers we have:
...
0
votes
0answers
27 views
size optimization xcode LLVM [duplicate]
I am compiling a custom C library with xcode 4.5.1 on os x 10.7.5 and I have a binary size issue.
The size of the binaries produced by xcode are each around 300K (for each architecture arm7s arm 7 ...
1
vote
0answers
61 views
size optimization in xcode LLVM
I am compiling a C library with xcode 4.5.1 on os x 10.7.5.
The size of the library compiled with xcode LLVM is significantly bigger than when I just compile it using plain gcc with makefile passing ...
1
vote
1answer
32 views
Does xcode compile commented out lines?
Simple question, will anything commented out be left out by the compiler?
Anything with // or /*
I believe so, but want to double check.
0
votes
1answer
26 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
3answers
123 views
Running C scripts with terminal instead of Xcode
Currently I am developing a couple of C programs on my mac using Xcode. There however is 1 problem. My study requires me to use some sort of input field through the coding. So for instance if the ...
0
votes
1answer
79 views
How to change XCode ios SDK compiler settings to allow void return statements for non void methods?
I have been asked to update a old ios application built in Xcode 3.1 with some ios 6 features.
When I tried building the source using my xcode 4.5, it refuses to compile because there are numerous ...
9
votes
2answers
255 views
Improving build time on XCode 4.5 for a huge game project
Scenario:
We have an XCode project for an iOS game which has about 7000+ files.
Only 1000+ files are code. Rest of them are images, sounds, level data, XIBs, plists, config files etc.
Its a ...
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.
...
0
votes
1answer
26 views
Why are default compilers different for debug and release?
I'm using Xcode 4.5.2. I see in Build Settings that the compiler for debug says "Default compiler (Apple LLVM compiler 4.1)" and for release it is "LLVM GCC 4.2". Why would 4.1 be used for debug and ...
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 ...
0
votes
1answer
56 views
Include errors not shown in xCode
Recently I've started solving problems on online judges, for example, the UVA Online Judge. I try to solve these problems with C++ and I write my code with the xCode IDE.
However, when I use some C ...
0
votes
0answers
433 views
clang: error: no such file or directory:
I'm trying to compile a project using OAuth2Client, I get the error:
Ld ...
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 ...
0
votes
1answer
73 views
Looking at the assembly code of a C file using the Xcode option Generate Output>Assembly
So I'm trying to study the assembly code of a simple C program using the "Product> Generate Output> Assembly File" option in Xcode 4.5. No matter how I try to trigger it, the option is still greyed ...
0
votes
1answer
84 views
xcode 4: how can I add a custom compiler?
Xcode seems to allow specifying a custom compiler for source files via the Build Rules tab (copy the system C rule to the target, select "Custom Script". Just for testing the concept, I wrote echo $* ...
0
votes
1answer
80 views
All framework and static library files compiled to app?
1、I am wondering whether Xcode compile all the .m sources of frameworks and .a to my app, for example, if I import UIKit framework and I only using UIButton.h, will all files in UIKit be compiled to ...
1
vote
1answer
149 views
Use pragma ifdef to conditionally compile the same protocol header for both mac and ios? [duplicate]
Possible Duplicate:
Which conditional compile to use to switch between Mac and iPhone specific code?
I've defined a protocol which should work just fine on both Mac and iOS. However, one ...
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 ...
0
votes
0answers
76 views
compiler error: Lexical or Preprocessor
I downloaded XCode 4.3.3 from official site Apple Developer.
Also i downloaded chipmunk engine and Box2d that doesn't run on my Xcode. I get a compiler error like Lexical or Preprocessor Issue with ...
2
votes
1answer
228 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
0answers
36 views
Xcode spawns too many clang processes? Killing RAM [duplicate]
Possible Duplicate:
Xcode 4 too many clang processes
Whenever I try to build my project in Xcode, I see in my activity monitor that it has spawned around 10 clang processes for compiling my ...
1
vote
2answers
282 views
Error in compiling when installing Stan for R and when using Rcpp
I need to install Rstan for a data analysis class. The instructions are posted here http://code.google.com/p/stan/wiki/RStanGettingStarted. I'm running Mac OS 10.5.8 and R 2.15.1 GUI 1.52 Leopard ...
-1
votes
1answer
28 views
Error in mac code [closed]
I found this linking errors in MAC code can't find why they are shown :(.
Please help.
NetworkHandler::HandleSipPacket(char*, int) in networkhandler.o
...
1
vote
0answers
157 views
Xcode gets stuck on “compiling 2 of 2 source files”
Xcode gets stuck on "compiling 2 of 2 source files" when I try to build for archive!
Sometimes it gets stuck on "compiling 22 of 22 source files".
The whole computer gets slow and freezes when this ...
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 ...
7
votes
2answers
4k views
Is there a compiler flag to indicate lack of armv7s architecture
With the iPhone 5 and other armv7s devices now appearing, there are compatibility problems with existing (closed-source) 3rd-party frameworks such as Flurry which are built without this newer ...
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 ...
0
votes
1answer
122 views
Xcode App wont run
Hello i'm trying to build a simple web browser and when i try to run the program inside the xcode builder it says build suceded and then throughs a error and stop loading
Error:
argv char ** ...
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
531 views
Issue with building project in XCode — ProcessPCH Error
I've been having an issue compiling my project after attempting to install the Facebook SDK to the project. I've reverted the code back to it's previous state, however I'm still getting error messages ...
0
votes
2answers
897 views
Moving away from XCode to GCC on OS X
I have a code base that I build on Snow Leopard, XCode 3.2.6 and targeting the 10.5 SDK 32/64bit, INTEL only. Works fine. I do this in a virtual machine.
Now I have GCC 4.7.1 compiled and working on ...
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] ...
0
votes
0answers
74 views
Is there a third-party builder besides LLVM and LLVM-GCC?
I wish to build a lib (written in C language) with a thrid-party builder(not LLVM or GCC), and use it in my Xcode project. The lib itself can indeed be compiled with LLVM or GCC, but my manager wants ...
0
votes
0answers
97 views
Xcode / Compiler Acting Up
I'm having some problems with Xcode.
I was having some problems with a function that compared vectors to see if they were identical, I had it working, then I used it in another class, which was ...
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 ...
5
votes
2answers
1k views
Is it possible to use xcodebuild on linux?
Say I've got an Xcode project on a linux machine and I want to, like I can do on the Mac, install & use xcodebuild to simply compile the project, not to run it or anything fancy, just simply to ...
3
votes
1answer
58 views
xcode LLMV 3.1 compiler array issue
I came across with the following issue On Apple LLVM compiler 3.1:
int numIndex = 0;
int *indices = (int *)malloc(3 * sizeof(int));
indices[numIndex] = numIndex++;
indices[numIndex] = numIndex++;
...
0
votes
2answers
146 views
iOS project compilation
I am working on a project accessing web service. I found a project
http://d1xzuxjlafny7l.cloudfront.net/downloads/PromoTest.zip
The above code include JSON library [project setting compiler = LLVM ...
0
votes
0answers
163 views
xcodebuild and per file compiler flags
I'm searching for some help because I need to compile with commands lines. My script work well for common projects but when someone needs per file compiler flags, build failed.
The strange thing is ...
1
vote
1answer
41 views
xcode not pre-filling for me
I've just noticed that xcode is no longer prefilling for me. For instance I want to write
CGRectMake (self.frame.size.width, ...);
Xcode is not prefilling the .frame and so on. Not only this but if ...
1
vote
0answers
126 views
LLVM 1.7 COMPILER ERROR
I've got this error:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -x objective-c-header -arch i386 -fmessage-length=0 -pipe ...
1
vote
0answers
104 views
Update Xcode Compiler
Is there a way to update the built-in Xcode compiler? I'm on Snow Leopard so I'm stuck with Xcode 4.2, which has a pre-3.0 version of Clang. I can build my own Clang that will work from Terminal, but ...