w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Xcode 4.x.x giving error in storyboard after updating it from Xcode 5
Now I have solved it, below are the steps to follow: Step I Right click on your StoryBoard and openAs "SourceCode" Step II Step III Now you are done. open storyboard as interfaceBuilder

Categories : Iphone

How to Add a New StoryBoard, and set it to become the Main StoryBoard xCode without error
Take storyboard file from New file-->ios-->user interface---> storyboard create @property storyboard in appdelegate like @property (nonatomic, retain) UIStoryboard* storyboard ; before implementation in .m file write: @interface AppDelegate () @property (strong, nonatomic) UIViewController *initialViewController; @end This is to take refrence of initial viewcontroller. then @synthesize storyboard in appdelegate.m and then for navigation you can write in didFinishLaunchingWithOptions //init storyboard storyboard = nil; if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"6.0")) { CGSize result = [[UIScreen mainScreen] bounds].size; if(result.height == 480) { storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhoneIOS5" bundle:nil]; NSL

Categories : IOS

Xcode 4 won't allow me to open the storyboard edited in Xcode 5
Go back to your Storyboard in Xcode 5, then go to the right pane under the File Inspector tab (select it from the top, it's the icon with the little blank sheet). You will find a section called Interface Builder Document. There, set Opens in as Xcode 4.6 instead of Default (5.0). It will also change the way your user interface will look like, since Xcode 4.X doesn't support iOS 7 SDK, which contains the User Interface components (known as flat UI). Though, you can use Xcode 5 to develop for iOS 6 (I do). EDIT As Idan said, you won't be able to submit apps for the App Store from a beta version of Xcode, so until its official 'stable' release comes out

Categories : IOS

Xcode 4.6 suddenly giving SIGABRT error
Debuger says, that you must connect your root view in code with view in .xib Go to the your view controller's .xib file and click right button of mouse in its view and connect your view with files owner:

Categories : IOS

NSTask launch path not accessible. Works in Xcode. Error shown out of XCode
OK turns out the answer is on stack overflow, but its spread across different questions. The question was asked here -> Commands with NSTask and here -> NSTask launch path not accessible as well But their answers as of this date arent clear as to what the problem was. It's only after reading the question from NSTask not picking up $PATH from the user's environment (the question's title was misleading) and with these two answers NSTask not picking up $PATH from the user's environment and Find out location of an executable file in Cocoa that I realized the solution. It looks like this is about setting up either NS Task or the user's shell (e.g., ~/.bashrc) so that the correct environment ($PATH) is seen by NSTask. Solution: [task setLaunchPath:@"/bin/bash"]; NSArray *ar

Categories : Objective C

NSMutableArray with NSMutableSet error in Xcode 5 that compiles fine in Xcode 4
This code is wrong, and only worked previously because methods like setWithArray: would return id but now return instancetype which helps the compiler to type-check. You cannot assign an NSMutableSet* to an NSMutableArray*. Some of the methods shared by both classes may have worked previously but this is dangerous and only worked accidentally. Declare your variables as NSMutableSet *midiViewsToRemove and NSMutableSet *audioViewsToRemove.

Categories : IOS

Running both Xcode 4.6 and Xcode 5 (DP5) - Homebrew showing an error
You don't need to reinstall Xcode. Go to Xcode preferences menu and click on downloads. You will see option to install "Command Line Tools" under Components. After that's installed homebrew stops complaining.

Categories : Ruby

Updating Xcode yields error "cannot find code object on disk" during codesigning
It's worth noting that you may need to update the environment variable that specifies the location of codesign_allocate: export CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate" But the real solution for me came from here: ln -s /usr/bin/codesign_allocate /Applications/Xcode.app/Contents/Developer/usr/bin/codesign_allocate Hope this saves someone some time...

Categories : IOS

Xcode 5 without Storyboard and ARC
Create a project with an Empty application and Add any viewcontroller (i added TestViewController here) - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override point for customization after application launch. TestViewController *test = [[TestViewController alloc] initWithNibName:@"TestViewController" bundle:nil]; UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:test]; self.window.rootViewController = nav; [self.window makeKeyAndVisible]; return YES; } STEPS FOR REMOVE ARC 1) In build setting set Automatic Reference Counting to NO. //////////////////////////////////////

Categories : IOS

Searching Xcode Storyboard
Using the Search Navigator within Xcode would not have found that unrecognized selector, since as you stated you had changed the name of that selector already, and the Search Navigator won't search the contents of your storyboards. Right-click the storyboard file in Xcode and choose Open As > Source Code. (Edit: originally I instructed to open the storyboard file in an external text editor, but that's not necessary). Use Cmd-F to search the XML for the old selector name. You will be looking for an XML element named action with a selector attribute equal to the unrecognized selector. Once you find that, inspect the parent XML elements to get an idea of where this connection is in your storyboard.

Categories : Xcode

Use storyboard from dependent project in XCode
Debug the app by looking into the app generated by XCode. Check if the storyboard or bundle is present. (Thank you Micheal) The bundle generated by MyLib was not present Build the bundle using the target MyLibResources Drag and drop the bundle in XCode in the main project.

Categories : IOS

XCode 5 Storyboard Internal Inconsistencies
same bug here. you should file a bug report (https://developer.apple.com/bug-reporting/). For me it's seem like it's the message is also incorrect. If I check the diff before and after this error I have this: - <rect key="frame" x="0.0" y="0.0" width="320" height="310"/> + <rect key="frame" x="0.0" y="0.0" width="319.99999999999994" height="310"/>

Categories : Iphone

How to link to another view of storyboard Xcode
There are a couple of ways to do this. The first is to create a segue that directly links the login button to the new view controller. If you want to do this, right click drag (or control drag) from the button to the new view controller. This should make a grey line going from the first controller to the second one. You can then click on the little circle in the middle of the segue in interface builder to give it a name and specify the type. Alternatively, if you created the login button with code, or would just like more control over your segues, you can create a generic segue in interface builder, meaning just control drag from one view controller to the other. If you do it this way, YOU MUST NAME THE SEGUE so you have a way to invoke it later. Then you just call [self performSegueWith

Categories : IOS

Xcode - How to switch view in storyboard
You can't just use a UIImage. You need to use a UIButton and then under the properties set the button to custom and set background image to the image you want. Then you can click and drag from the button to the new view and choose modal. I'm having you choose modal because from what I can gather, you aren't using a navigation controller. Therefore you'd modally want to present the view controller.

Categories : IOS

Viewing Custom Text in Xcode Storyboard
You can't do it in Xcode 4, as it limits you to the preloaded fonts. Xcode 3 had the opposite problem (with .xib files anyway) of allowing you to use any font on your Mac, even if it would not be available to your app at runtime. Hopefully a future version of Xcode will hit the useful middle ground of giving you exactly what it can determine will be available at runtime. This is actually difficult for Apple to do because the storyboards/nibs live in a project (which may have multiple targets) and the fonts exist in the targets. IMO they should let you use any font and add a build-time warning if a storyboard/nib is built into a target that does not have all the required fonts in it. What may work is to edit the storyboard as text (available by right-clicking) and rewrite the font names i

Categories : Iphone

Does storyboard alter code functionality in xcode?
From Apple's UIViewController class reference: If your app uses a storyboard to define a view controller and its associated views, your app never initializes objects of that class directly. Instead, view controllers are either instantiated by the storyboard—either automatically by iOS when a segue is triggered or programmatically when your app calls the storyboard object’s instantiateViewControllerWithIdentifier: method. When instantiating a view controller from a storyboard, iOS initializes the new view controller by calling its initWithCoder: method instead. iOS automatically sets the nibName property to a nib file stored inside the storyboard.

Categories : Xcode

How do I change background color of storyboard in xcode 4.6.2
You are most probably clicking on the view controller which is showing those properties that can be adjusted in the view controller itself. This can be found out on the left of the storyboard or Interface Builder. A view is not the same as view controller. A view controller manages a set of views, as mentioned in the View Controller Programming Guide for iOS. Try to click on the view of the view controller and you should be able to modify the background color of the view:

Categories : Xcode

Manually specify constraints in Xcode 4 interfacebuilder/storyboard
The problem when working with constraints in IB/storyboard is that Xcode will never allow you to have ambiguous constraints. Ever. Including when you are in the process if editing them. So whenever you may want to edit multiple constraints, Xcode may decide to automatically add some to prevent a disallowed state. This can be painful to work with. What I have found kind of works is adding bogus constraints on all four edges while I am setting other constraints. This - hopefully - keeps IB in check and prevents it from adding completely dumb stuff. You can add constraints from the top menu. Click the object and then Editor from the to menu. You can add constraints with the Align and Pin submenus (which then can be edited later on). Note: not all constraints can be added in IB. Aspect rati

Categories : IOS

Xcode: Storyboard and simulator image are different colors
On simulator menu bar from tab Debug uncheck all options and you can reset the content and settings of simulator. May it can change the color schema of simulator.

Categories : Iphone

xcode storyboard button object interfacing
In the .h file... @interface questionViewController : UIViewController <UITextFieldDelegate> { //You need to connect your textfield in the storyboard to the .h file. Select outlet and name it what you what NSString *textFieldData __weak IBOutlet UITextField *yourTextField; } in the .m file - (void)viewDidLoad { textFieldData = yourTextField.text; } I am not sure what you mean by make your button call an event. If you want to execute a method, connect the button on the storyboard to the .h file, select IBAction, name the action. The method will automatically appear in the .m

Categories : Xcode

Too many views in storyboard - Xcode running Slow
I faced the same issue when I was working on an Enterprise App. In the Project I had only one storyboard and all views in a single storyboard. Opening the storyboard caused Xcode to get very slow. So I divided the storyboard into multiple storyboards as module-wise and load a separate storyboard per module like in the code below: If I want to push a view controller: UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"storyboardName" bundle:nil]; UIViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"Members_ViewController"]; [self.navigationController pushViewController:viewController animated:YES];

Categories : IOS

Can no longer drag/drop onto Storyboard after installing Xcode 5
If you remember back to the first time you opened your Xcode 4 storyboard in Xcode 5, you were prompted with the following message. The content of the above screenshot should answer your question.

Categories : IOS

Xcode Storyboard -> Replace child view controller via push?
If I got your question, I think you've got the right behavior, you can't accomplish what you want by pushing a new UIViewController, you need to manually switch the view, Something like: [currentView removeFromSuperview]; currentView = myNewViewVC.view; [self.containerView addSubview:currentView]; Hope this help.

Categories : IOS

Xcode - Visually identify custom views in interface builder / storyboard
That approach of setting the background color in Interface Builder, but resetting it in code is a simple, but effective technique. Two refinements: If you have multiple custom views on a single storyboard scene, you can save yourself from having to programmatically clear the background color for all of them individually by using IBOutletCollection. So, in Interface Builder, give them all background colors and then add all of your custom views for a given scene to a collection. You then can set the background color for all of them in a single statement. So, for example, if you have a dozen controls on one scene all in a single IBOutletCollection is named viewsCollection: @property (strong, nonatomic) IBOutletCollection(UIView) NSArray *viewsCollection; you can clear the background colo

Categories : Xcode

How to make Xcode's Storyboard assistant editor default to .m implementation file
With Xcode 5 the Assistant Editor now opens the .m file (rather than the .h file) by default. If you click the horizontal arrows in the top-right you can jump between the .h and .m files.

Categories : Xcode

Xcode not loading images into my storyboard all of the sudden (blue question marks)
remove images from your app: select images-> right click->delete->move to trash and go to your project folder and if there image exist remove it from there also and now copy all the images to your project. this way will work fine.. yesterday same problem occurred with me.. i solved it this way..

Categories : Iphone

Xcode/iOS-Cannot edit content of Table View Cell...I'm using the storyboard editor
![enter image description here][1]Got it, the cell you used is auto layout, do not check the auto layout in the xib or storyboard! Interface Builder Document->Use Auto Layout Don't check it!

Categories : IOS

Xcode 4.6 doesn't recognize linked frameworks correctly for Xcode 5.0 created project
The link binary with libraries is not the issue here. You have to confirm your Header Search Paths in your build settings. I think Xcode 5 might use a different variable for it, and that is why Xcode 4.6 will get confused (just a guess though). Anyway, confirm that the path to those headers is in your Header Search Path. The Crashlytics app will automatically add it for you, actually.

Categories : IOS

AppleScriptObjc - Xcode 4.6.3 - Xcode No Longer Recognizes Created Outlets or Actions
I'm usng OS X version 10.8.4 with Xcode 4.6.2. I tried out what you said. I made a new AppleScriptObjC project from the Xcode template with document-based application set to false, so Xcode create a new project for me with an AppDelegate. I got the actions for the AppDelegate class to work both tying menu-items to First Responder and tying them directly to the AppDelegate. I tried changing the name of the app delegate to "ThisIsTheDelegate". This didn't work until I also changed the name of the AppDelegate class to be "ThisIsTheDelegate" in Xcode's identify inspector. I don't know if this is the problem that you are having or not. You wrote in your original question that: tried on different computer - issue resolved So it must be something about your configuration. When I fir

Categories : Misc

How to open project files with Xcode 4 by default while having Xcode 5 installed alongside
Assuming you don't have any Xcode 5 projects yet, how about manually: Find an existing XCode 4 project (*.xcodeproj) with the Finder Do a Get Info of the file Change Open with: to your desired version of Xcode Click on Change All Repeat for all types of files that you want to open with XCode 4 Or if you want to try something more automatic take a look at: programmatically-script-atically-changing-the-default-open-with-setting Based on the comment below, the problem seems to be with command line builds picking the wrong version of Xcode. In that case I suggest looking at: xcode-build-and-archive-from-command-line, especially the Reid's comment to his own answer which says: Works fine in Xcode 4.4, and I'm sure it was fine in 4.3 as well. Make sure you have selected the corre

Categories : Misc

Mono + Xcode: How to author a library in C# using Xamarin Studio, and consume it in a CocoaTouch project within Xcode?
No, it is not currently possible to consume a C# library from Objective-C. Note that it is usually possible to do it the other way with some ingenuity - the only real requirement is that the app must be a Xamarin.iOS app and the entry point the managed Main method. In your Main method you can call into native (C/Objective-C) code and have all your logic there.

Categories : Objective C

Undefined Symbols for custom C++ classes in Xcode 4.6.3. Works in Xcode 4.5.2
I had faced similar problem, and here is what I did to solve: 1 - Specify -fobj-arc flag against respective mm file in Build Phases section (this is optional and may not work always) 2 - Ensure that wherever .mm (or it's .h file) is included, that source is also marked as Objective-C++ Source and vice versa. I know it's bit tricky to do trial and error, but the basic principle is to maintain same compilation options for the file tree being included.

Categories : Misc

iOS xCode project won't build/run when the play button is tapped in xCode 4.6 - how to fix?
In this specific project you can change the manage scheme to Example and run it.(just click on the project name next to the stop button and select Example). But, Not all projects on github provide an example that you can just run & play. Nothing happens because nothing is suppose to happen. If you want to test a project out that doesn't have an example usually you should follow the instructions on the GitHub ReadMe.

Categories : IOS

XCode : How to Run Any Code Created in XCode on iDevice Without Creating Certificate One by One
If you are creating a brand new project and you are not doing a distributing to itunes then I am very surprised that you are being prompted to register that app on itunesconnect. That doesn't make sense. I wonder if its a problem with your provisioning profile. Anyways, look at the link above that people have already suggested. If that doesn't help then try this. Go to itunesconnect developer portal and create a new iOS app ID. The trick here is the app id has to be a * (astreisk) App name can be anything. Call it "MyTestApp2". This is the wildcard that people have suggested Now go to your provisioning profiles and create a iOS team provisioning profile as I did and making sure you select "MyTestApp2" Once you create this profile download it and on your computer and drag and drop it on

Categories : IOS

Xcode: iPhone 5 App Launch image not updating
you need to add -568h@2x suffix to your image file, so it would look like: default-568h@2x.png then you drag from finder and drop it into launch images section of the target summary.

Categories : Iphone

Xcode: xcode crashes when trying to open project settings
if you have open your project in xcode5 and then try to open the project in xcode4, all the nibs files get updated according new xcode and it will lead to crash as it is incompatible with older xcode4. Same problem happened with me also, What I have done to solve mine problem. 1. Remove references of all nibs from the project. or even move to trash by taking backup somewhere.2. Now, in xcode4 create new empty nib file and open the corresponding nib in xcode5, copy the view and paste in xcode4.3. do this for all the nibs and try to build again hope it helps

Categories : IOS

Can you install the Xcode 5 Developer Preview in parallel with Xcode 4.6.2?
Short answer: Dont replace XCode 4! If you plan to deploy some app to appstore, you can't do it using Xcode 5 at this moment. The best way is download the Xcode 5 version, unpack it and run the app on different folder (not application folder). You will stay with Xcode 4, and can run Xcode 5 separated (You don't need to 'install' xcode 5).

Categories : Xcode

Xcode quit unexpectedly for my project (not in XCode 4.6.3)
SOLVED!! I Found that in project.xcodeproj --> project.pbxproj, there were many backslashes in the LIBRARY_SEARCH_PATHS variable. Removing those backslashes solved my issue! Thanks to everyone

Categories : Xcode

Can Xcode 4.6.x and Xcode 5 share project directories?
Yes, it is perfectly fine and I have been using mainly XCode5 but switching to 4.x every once in a while. The only thing to be careful of is when opening some files, it may ask if you want to convert them to XCode 5 format. If you do, you will not be able to open that file in XCode 4.X anymore (or so the warning says, I've never clicked yes).

Categories : IOS

Duplicate Storyboard files appeared in Xcode project Directory. Barely able to run project
For each storyboard file name (or really any resource in Xcode) you should only have one source document with that file name. Resources with the same name are all mapping to the same output file, and you're seeing results of this undefined behavior resolve in various ways. So if you have this: ProjectRoot/Base.lproj/MyStoryboard.storybaord ProjectRoot/Folder/Folder/Base.lproj/MyStoryboard.storybaord Then both of those documents map to the same output file. You need to either delete the one at ProjectRoot/Base.lproj or the one at ProjectRoot/Folder/Folder/Base.lproj, but do not keep both documents.

Categories : Iphone



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.