xcode4

SenTestingKit (integrated with XCode) versus GHUnit on XCode 4 for Unit Testing?

余生颓废 提交于 2019-12-03 15:51:24
Any advice on which way to go regarding Unit Testing on XCode 4 out of SenTestingKit (the inbuild unit testing framework with XCode 4) and GHUnit? In particular: With the apparent improvements to Unit Testing in XCode 4 does this mean there are no major benefits of running with GHUnit? Alternatively are there some integration benefits that make a smooth development process that could be achieved using XCode's unit testing framework (SenTestingKit) as opposed to GHUnit? Greg, I answered your question on my blog, about 2 weeks late :). The conclusion I came to is the GHUnit isn't obsolete, but

Xcode 4 : Opening brace on the same line

情到浓时终转凉″ 提交于 2019-12-03 15:18:38
问题 I just installed Xcode 4 and the opening brace of the auto generated functions is on a new line. For example : - (void)dealloc { [_window release]; [super dealloc]; } I'd like to have the opening brace on the same line like it was in Xcode 3 : - (void)dealloc { [_window release]; [super dealloc]; } Can someone help me ? Thanks. 回答1: MarkC's answer has the right idea, but <Jedi> these aren't the templates you're looking for </Jedi>. The templates you need to edit are in either /Developer

How do I reliably get Instruments 4.x to symbolicate?

你离开我真会死。 提交于 2019-12-03 15:11:53
问题 I have a bit of a dilemma — no matter what I do, I cannot get Apple's Instruments.app to symbolicate any of the included instruments while I'm profiling on my devices (it works OK in the iOS Simulator). I've tried just about everything I can think of, including: Checking that I'm actually building a dSYM Switching between Debug and Release build schemes Making sure that the signing certificate being used in my Development cert Adding and removing my Derived Data folder from Spotlight's

Xcode 4.2 - App Loader: Unable to verify icon dimensions, no icon found

拟墨画扇 提交于 2019-12-03 15:00:16
I have never had this problems until I began to use Xcode 4.2. I'm getting the following error trying to upload my app: Unable to verify icon dimensions, no icon found. Your minimum os version is below 3.2, so you must define CFBundleIconFile or provide a default Icon.png that is 57x57 I have an "Icon.png" image and is 57x57. I tried add it and remove it from info.plist. No success. I don't know what to do. Here is my info.plist file Info.plist edited again SOLUTION Thanks for your comments. The problem was that I was not following the right steps to prepare the app for submission in Xcode 4.

XCode 4.2 is missing the iOS5 SDK for the Simulator

对着背影说爱祢 提交于 2019-12-03 14:53:58
I created an empty Single View application using Xcode 4.2 on OSX Lion 10.7.2 targeting iPhone 5. The project built happily however when launching the simulator I receive the following error message: iOS Simulator could not find the SDK. The SDK may need to be reinstalled. I then tried targeting the iPad with the same results. I removed Xcode using the terminal and downloaded a fresh copy from the AppStore. The clean installation generates the exact same error. It seems that the SDK is not being deployed during installation. Any advice or tips on how I can correctly install the iOS 5 SDK for

Is UILabel Inset effect Possible? [duplicate]

守給你的承諾、 提交于 2019-12-03 14:46:06
This question already has an answer here: UILabel text margin 38 answers I am giving border to UILabel with Label.text = lbltext; Label.layer.borderColor = [[UIColor grayColor] CGColor]; Label.layer.borderWidth = 2; But There is no space between text and border. so how can i set inset effect like UIButton in my Label? Put the label in a container view and apply the border to the container. You can subclass UILabel, and override a couple of methods: The first gives you rounded corners and a border. You can tweak the border width, color etc. as needed. - (void)drawRect:(CGRect)rect { self.layer

Xcode archiving iOS app as a Mac App

为君一笑 提交于 2019-12-03 14:18:47
I've got an iOS app I've built several times over the last year, and have deployed countless ad hoc builds of with no issues. However, today Xcode has decided that when archiving my app, it should treat it as a Mac App Store app, and not build an .ipa file that I can share. Git doesn't show any changes to my .xcodeproj files and I can't see any build settings that have been changed. I've got other targets in the project that still build fine, but the primary target I use for distribution is the one causing these errors. Is there any reason why Xcode should think that it's building a Mac app

XCode 4 and XCode 3.2.6 side-by-side

佐手、 提交于 2019-12-03 14:12:19
I need to build one iOS app and one Mac OS app on the same machine. Mac OS app needs to run on 10.5, and even though Apple claims you can build with the 10.6 SDK and run on 10.5 by setting the right target value, it's not true. Simple things, like the name/version of libssl , are different on 10.5 and 10.6 which makes this impossible. Anyway, so I'm about to try and install XCode 3.2.6 on the same machine as I have XCode 4 on - any tips/gotchas/guides? Thanks! That should work fine, however it's best to install XCode4 last. So if you install XCode3 you'll want to re-install XCode4 as well

Xcode 4: how to customize File Templates and Project Templates?

Deadly 提交于 2019-12-03 14:05:03
问题 In Xcode 3, we worked out (by trial and error) that we could COPY the system templates to a new location (three possible locations, because Apple kept changing it), and customize them. NB: while writing this question, I discovered most of the answers on StackOverflow on this topic are incorrect :(. Apple changed the locations, most answers give the old locations, which don't work any more. At Xcode 4.3, Apple broke it all again, and now FILE TEMPLATES CANNOT BE CHANGED by the old method. From

Unable to link ppc after upgrading to XCode 4

∥☆過路亽.° 提交于 2019-12-03 13:55:09
问题 I followed these instructions on how to get the 10.4 SDK working with PPC after upgrading to XCode 4. I am able to compile, but it errors out at link time. As an added wrinkle, I'm not using XCode per se, but the gcc toolchain that comes with it. (This is part of a large cross-platform project that uses makefiles.) Here's a sample makefile: CXX=g++-4.0 CXXFLAGS=-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 helloworld: helloworld.o $(CXX) $^ -o $@ $