xcode4

Xcode 4 — how to find the built project's binary

♀尐吖头ヾ 提交于 2019-12-11 13:36:40
问题 I need a tool for my development work. This tool only exists in code form. So I have to build it. I'm following the instructions in http://projects.akosma.com/projects/nib2objc/wiki/Build_Instructions. Everything looks good. I press CMD + R (Xcode 4). Everything successfully builds, but nothing runs. Unsurprising, it is a commandline tool. But how do I find the binary that just got generated? Also, what happened to debug / release build? I bet I am running a debug build, but I can't find how

Spatialite iOS5 and xcode 4.5 - could not prepare statement: no such function: GLength

心已入冬 提交于 2019-12-11 12:46:30
问题 I am at the end of my sanity trying to get spatialite to compile with xcode 4.5 for iOS6 (or any other version). Actually, I can get it to compile using a technique based on Build a static library for iOS - specifically spatialite where the console returns that all is oK but when I run a query such as "select pk_uid from uk_highways order by GLength(geometry) limit 2" the statement won't prepare. Running the query "select pk_uid from uk_highways limit 2" will return 2 id's i.e. taking out the

Multiple Barbutton in Navigation Bar not showing on iOS6

为君一笑 提交于 2019-12-11 12:11:22
问题 I have added array of bar button to the navigation items using the property rightBarButtonItems,it work good for iOS5,when i tested in iOS6 only one bar button item is visible. UIBarButtonItem *updateButton = [[UIBarButtonItem alloc] initWithTitle:@"Update" style:UIBarButtonItemStylePlain target:self action:@selector(updateData)]; UIBarButtonItem *refreshButton = [[UIBarButtonItem alloc] initWithTitle:@"Refresh" style:UIBarButtonItemStylePlain target:self action:@selector(refresh)]; NSArray

Xcode crashing on startup “parentPath must be nil but it is not”

二次信任 提交于 2019-12-11 12:01:34
问题 I'm having XCode (latest version) crash whenever I start up - can't get anything done until I resolve this - any ideas? Error - See below What I did prior to getting the issue had put in a new HDD (and moved the old to the optical bay) - reinstalled XCode 4 on the new SSD - all working fine I did rename my home directory user name on the "old" HDD to put "_OLD" at the end - just so I didn't get confused if jumping to the old HDD for files I tried to open a test project from this old HDD area

Xcode 4 workspace, cross-referencing files

筅森魡賤 提交于 2019-12-11 11:59:31
问题 I am currently switching from developing two separate Xcode Projects into using Xcode workspace. And thus have a question. After I import two of my projects into workspace, how do I tell one project to search for files in another project? What I would like to accomplish is to get rid of duplicate classes that are the same for both project and keep them only in one project. Example. In project A I have a class Book I would like to use this class in project B but not to be forced to actually

iphone uitableview with custom cell - xcode 4

╄→尐↘猪︶ㄣ 提交于 2019-12-11 10:46:53
问题 Ok so I know there is TONS of documentation online about this, and I feel like I have tried everything, and still can't get it to work. I am trying to implement a tableview with a custom cell that I created in the IB. The file's owner for the CustomCell.xib file is UITableViewCell . This is the header file I am implementing the table view in: #import <UIKit/UIKit.h> @interface QuickCalcController : UIViewController<UITabBarDelegate, UITableViewDelegate, UITableViewDataSource>{ NSMutableArray

XCode 4.2 crashes on Snow Leopard

断了今生、忘了曾经 提交于 2019-12-11 10:26:31
问题 Just got the XCode 4.2 for iOS SDK 5.0 installed on Snow Leopard. Just keeps on crashing. I installed to /Developer4/ to keep my previous XCode 3 around, just in case. Anyone got this problem? Solved it? Edit: When I start a new project, I get this error: ASSERTION FAILURE in /SourceCache/IDEFoundation/IDEFoundation-937/Framework/Classes/Model/SourceControl/IDESourceControlTree.m:119 Details: Invalid location for source tree. Initialization failed. Object: Method: -initWithDictionary

Xcode 4 can't find CPPUNIT

六月ゝ 毕业季﹏ 提交于 2019-12-11 10:20:51
问题 I installed Xcode 4 awhile ago and I finally got around to getting cppunit installed. I tried using it in one of my projects last night and I keep getting errors that Xcode cannot find cppunit files. E.g. Lexical or Preprocessor Issue 'cppunit/extensions/TestFactoryRegistry.h' not found. main.cpp #include <iostream> #include "exception.h" #include "dataStruct.h" #include <cppunit/extensions/TestFactoryRegistry.h> #include <cppunit/ui/text/TestRunner.h> int main () { CppUnit::TextUi:

Compilation error in MacOSX CoreServices on iOS

爱⌒轻易说出口 提交于 2019-12-11 09:55:07
问题 This is probably some silly thing I did wrong in using frameworks, but I spent some hours now, and hope someone can help! My compilation error: Expected * before * and error: expected declaration specifiers or '...' before 'CFXMLTreeRef' in WSMethodInvocation.h and WSProtocolHandler.h . Both in `/Developer/SDKs/ MacOSX10.6.sdk /System/Library/Frameworks/ CoreServices .framework´ They list files where UIKit and Foundation are included. I have included these framework, but not the CoreServices

How to change label in ViewController when app enters the foreground

╄→гoц情女王★ 提交于 2019-12-11 09:51:25
问题 i want to change a label in my view controller when the app enters the foreground....: SalaryAppV4AppDelegate.h @interface SalaryAppV4AppDelegate : NSObject <UIApplicationDelegate, UITabBarControllerDelegate> { //---------------------------------------------- NSTimeInterval appEnteredBackground; NSTimeInterval appEnteredForeground; NSTimeInterval difference; NSString *times; //----------------------------------------------- SalaryAppV4AppDelegate.m - (void)applicationWillEnterForeground: