xcode4

How to add an external project to Xcode 4?

陌路散爱 提交于 2019-12-05 06:54:39
I am stuck with an issue of including an project in Xcode 4. I have all the document but it works with Xcode 3 and not Xcode 4. How to add ZXingWidget.xcodeproj to my project in Xcode 4? In Xcode 4, you're mostly meant to create a new Workspace to which you can add multiple projects. From the main menu: File > New... > New Workspace... Once you create your new workspace, drag the Xcode project files into the project navigator of the newly-created workspace. Drop the first one anywhere in the project navigator pane but be careful to note the insertion pointer when you drop the second one.

xcode4 doesn't support Perforce?

≯℡__Kan透↙ 提交于 2019-12-05 06:40:49
xcode4 doesn't support Perforce? I add a repository in xcode4. Only subversion and Git to choose. how to add a perforce repository? thank you. I threw together a couple of Automator services that let you bind hotkeys for p4 edit/p4 add on the currently open file in Xcode 4. It's not ideal, but it beats switching to terminal or p4v. https://github.com/jcohen/xcode4-perforce-services It's also useful to note that there is a setting in Preferences/Behaviors to add behaviors to particular actions. One of those is Unlock File, which can be bound to a shell script, like the one here: #!/bin/sh

How to make customUI objects in xcode 4 for iPhone

☆樱花仙子☆ 提交于 2019-12-05 06:16:22
I want to know how to make custom UI objects in iPhone ? You can't do custom objects for iPhone development yet. That's for Mac development. The closest you can get is to program your own custom component based on a UIView, then place a UIView in IB and change the type to your custom component. It will then let you do any wiring needed and at runtime will embed an instance of your own class. You cannot see the component in IB though, only an empty UIView.... 来源: https://stackoverflow.com/questions/6567673/how-to-make-customui-objects-in-xcode-4-for-iphone

Xcode will not open my project

笑着哭i 提交于 2019-12-05 06:13:37
问题 I where working with a project and I closed because my computer was geting slow. When I tried to open my solution again xcode quitted. So everytime I try to open my project I get this error: I am not able to open my solution. IS THERE A WAY I CAN RECOVER MY PROJECT!? 回答1: There are a couple of things you can try, first make sure Xcode is not running ,trash the ~/Library/Cache/ folder contents, and trash the contents of the ~/Library/Developer/Xcode/DerivedData/ folder, if you what to can just

Xcode4, iOS: Copied a target, why can't I change the identifier?

时光总嘲笑我的痴心妄想 提交于 2019-12-05 05:56:17
This is diving me crazy - I've copied a target for my iOS project in Xcode4 - however, the Target Identifier field under "iOS Application Target" on the Summary page for my target is uneditable. How do I change the target's identifier? It gets the identifier from the product name. Go into build settings, then scroll down to the Packaging section. Change the product name and the identifier will change accordingly. 来源: https://stackoverflow.com/questions/5725075/xcode4-ios-copied-a-target-why-cant-i-change-the-identifier

Xcode 4 internal compiler error: bus error

﹥>﹥吖頭↗ 提交于 2019-12-05 05:47:19
Xcode 4.0.1 has started giving me an internal compiler error. It just says "Bus error". It occurs at the bottom of one of my .m files, which is now almost 4000 lines long. I've looked at this question , but I'm not making that mistake, and when it comes up I can usually fix it by adding some random lines of code somewhere. When it first cropped up, I tracked it down to where I was setting the frame of a view in a bunch of new code: view.frame = CGRectMake(otherView.frame.origin.x, 0, otherView2.frame.size.width, 40); If I replaced the otherView and otherView2 references with hardcoded values,

Provisioning profile not found

匆匆过客 提交于 2019-12-05 05:08:53
I have just upgraded my iPhone to the 4S and having restored all of the settings from my old phone I found that three of my apps were missing. I went to the Apple Dev centre and deleted my old phone and then rebuilt and downloaded the profiles with my new phone added. I removed all of the old profiles and copied the newly created ones across. The problem now is that in two of my projects, when I try to build I get an error - [BEROR]Code Sign error: Provisioning profile '8A69C027-B06A-4A32-ABDA-855990018CA1' can't be found I have gone into the Build Settings>Code Signing Identity>Debug and

Accessing NSArray's items with subscript

早过忘川 提交于 2019-12-05 05:03:46
Is it possible to access NSArray's objects using [idx]? I have a standard library that uses [] style indexing and I don't want to rewrite the whole library to suit ObjC's objectAtIndex: method. As in, NSArray *obj = [NSArray ...]; id item = obj[0]; Nick Lockwood The accepted answer (whilst true at the time) is now out of date. As of Xcode 4.5, you can now set and get NSArray elements using: id object = array[5]; // equivalent to [array objectAtIndex:5]; mutableArray[5] = object; // equivalent to [mutableArray replaceObjectAtIndex:5 withObject:object]; You can also do the same for

Find & Replace with a wildcard in Xcode 4

眉间皱痕 提交于 2019-12-05 04:45:58
I'm trying to find all instances of text inside "" marks with a semi-colon directly after them, and replace the text inside the "" marks. So, for example: "FirstKey" = "First value"; "SecondKey" = "Second value"; "ThirdKey" = "Third value"; Would find only those values after the equals signs, and could replace them all (with a single string) at once, like so: "FirstKey" = "BLAH"; "SecondKey" = "BLAH"; "ThirdKey" = "BLAH"; How can I do this? I found some stuff referring to regular expressions in Xcode 3, but such functionality seems either gone or hidden in Xcode 4. Regular expression replace

Change UIButton background color

本小妞迷上赌 提交于 2019-12-05 04:40:40
问题 can someone please help me on how to change the button background from white to a different color. I know how to add an image and make it a custom button, but i don't know how to change the initial button color from white to another color. Your help will be much appreciated. cheers. 回答1: I had a similar requirement and did not want to include additional files in my app bundle so I wrote a two classes which generate button images from RGBA values and add them to UIButton. Class to create