xcode4

All RestKit projects fail to build when archiving

北战南征 提交于 2019-12-03 07:27:46
THIS QUESTION REFERS TO RESTKIT 0.9.x. IF YOU ARE NEW TO RESTKIT CONSIDER USING THE NEWER 0.10.x branch. I recently inherited a project that uses restkit ( restkit.org ). I have started using a branch ( 402-new-build-process ) that is more compatible with xcode4.2 . My project an all the example projects build and run, but when it comes to Archiving an app the build fails: /Users/AUser/Documents/SubFolder/stable-branches/project-iOS-client/RestKit/Examples/RKTwitterCoreData/Classes/RKTwitterAppDelegate.m:9:9: fatal error: 'RestKit/RestKit.h' file not found [2] #import <RestKit/RestKit.h> ^ 1

scrollViewDidEndDecelerating not executing

拜拜、爱过 提交于 2019-12-03 06:50:55
I can't seem to get scrollViewDidEndDecelerating called. I have a scrollView with 2 Views inside. Now I need it to set a value to a label in the first view when the scrollview is finished scrolling to the second view. Header File: @interface ViewController: UIViewController { UIScrollView *scrollView; UIView *view1; UIView *view2; } @property (strong, nonatomic) IBOutlet UIScrollView *scrollView; @property (strong, nonatomic) IBOutlet UIView *view1; @property (strong, nonatomic) IBOutlet UIView *view2; @property (weak, nonatomic) IBOutlet UILabel *lbl; Implementation File: @synthesize

Setting a #define from the command line in xcode 4.6

混江龙づ霸主 提交于 2019-12-03 06:46:34
I'm trying get set a #define macro when doing a command line build using xcodebuild and having no luck. I've tried -DMYMACRO=1 and MYMACRO=1 everything else I can think of and nothing works. How do you set a #define from the command line? Roger, What you are looking for is a way to set GCC_PREPROCESSOR_MACROS via the command line tool xcodebuild. The man page for xcodebuild shows the format for applying these settings, however the SYNOPSIS section only refers to this as "setting=value ..." xcodebuild [-project projectname] -scheme schemename [-configuration configurationname] [-sdk

XCode 4 Archive/IPA Error: “The operation couldn’t be completed. No such file or directory”

寵の児 提交于 2019-12-03 06:43:56
问题 I've found various proposed solutions to this problem on this internet, but none of them work for me. Does anyone know why this might be happening? http://answers.unity3d.com/questions/15294/xcode-build-and-archive-error-no-such-file-or-directory http://blog.joshschumacher.com/2011/04/06/xcode4-the-operation-couldn%E2%80%99t-be-completed-no-such-file-or-directory/ I've tried archiving with every combination of coding signing vs not using code signing, and I've tried using every combination of

There is no “share” button in Xcode 4.3 organizer

佐手、 提交于 2019-12-03 06:42:25
问题 I have a valid Apple iOS dev account and all provision profiles set. I can debug the application on my iPhone. But when I do Product -> Archive and went to the organizer, there is only a "Validate..." and "Distribute..." button. Clicking the "Distribute..." button only provides me with "Save built products" and "Save Xcode archive" which both doesn't contains any "IPA" file. There is however an "MyApp.app" file built. I'm not sure what to do about it though. Suggestions? EDIT: some

Problems adding Projects to Workspace in Xcode 4

 ̄綄美尐妖づ 提交于 2019-12-03 06:32:33
问题 I have a couple of projects that I had started under Xcode 3.2.x some time ago. I switched to Xcode 4 a few days ago and want to make use of the Workspace feature as both projects. Basically, my plan is to extract some common features out of the two projects and make them a common library that both projects depend on. However, before I even get to the tricky bit of dependencies I get stuck just adding my two projects to the workspace. I tried creating a new workspace and selecting "Adding

Remove default code snippets in XCode 4

泄露秘密 提交于 2019-12-03 06:31:49
I want to delete some of the default code snippets in XCode 4 because I want the beginning curly brace to start on a new line. I tried the following but XCode 4 does not seem to adhere to the rule. defaults write com.apple.Xcode XCCodeSenseFormattingOptions -dict BlockSeparator "\\n" Any suggestions? Thanks. The following has worked with my XCode 4 installation: defaults write com.apple.Xcode XCCodeSenseFormattingOptions '{ "BlockSeparator" = "\n" ; }' The "defaults write" commands have not worked for me. I got around this by adding a new code snippet with the beginning curly brace on a new

what is the difference between target and project?

你离开我真会死。 提交于 2019-12-03 06:28:51
问题 here are the images of the project and target what is the difference between this two? why both are given? An image of project.. An image of target.. 回答1: A project is a set of files and general preferences. A target is a subset of the files, and specific preferences (which override the project preferences). Each target builds a product , which may be a library, executable, or framework. Because a target builds something, it also has Build Phases and Build Rules, where you can add

How to turn off NSZombieEnabled in Xcode 4

这一生的挚爱 提交于 2019-12-03 06:25:33
I have just migrated to Xcode 4 and i had zombie activated in Xcode 3 for my app. I used the following method: Go to Project -> Edit Active Executable Click Arguments Click + in the "Variables to be set in the environment" section Enter NSZombieEnabled in the Name column and YES in the Value column. Make sure the checkmark for the NSZombieEnabled entry is checked. Now i want to make sure it is off for my application but do not understand how to check/do that in XCODE4, anyone that can share some light on that? To edit environment variables, go to Menu Product / Edit Scheme…, select the desired

How do I format the current date for the user's locale?

被刻印的时光 ゝ 提交于 2019-12-03 06:08:38
I have this code where I'm trying to get the current date and format it in the current locale. NSDate *now = [NSDate date]; // gets current date NSString *sNow = [[NSString alloc] initWithFormat:@"%@",now]; NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"mm-dd-yyyy"]; insertCmd = [insertCmd stringByAppendingString: formatter setDateFormat: @"MM.dd.yyyy"]; I know the last line is wrong, but can't seem to figure it out... "insertCmd" is a NSString that I'm building for a FMDB command. Help would be greatly appreciated, or a pointer to the "doc" where it's