I am using Xcode 4.2 build 4C199(for MAC OSX 10.6.8). I create a new project and select the AppDelegate.h .m file and close the file. When I reopen the file I see a set of objects in the Objects Library in the Utilities panel that are either new or different. There are many more objects than usual. I'd like to use them, but when I click on either a .xib file or a storyboard file the new objects are replace by the normal old objects .Is there a way to access these new objects? Please refer my screenshots below.
These are objects, that are only available on the Mac platform. Please make sure you really created a project targeting the iOS platform. Have a look at the base SDK. It should specify an iOS SDK.
If something went wrong there just create a new project using the right template.
My project is iOS. I upgraded Xcode 4.3 to 4.3.3 last night and had the same problem on my first launch of Xcode after the upgrade: the object library contained only OSX objects.
It certainly looks like an Xcode bug. My workaround: in the Build Settings, I changed the "iOS Deployment Target" pulldown to a different SDK, then changed it back. After that, I got the iOS objects back.
See also here.
Related
I'm fairly new to the iOS SDK and Xcode and I stumbled across this XML-RPC framework https://github.com/eczarny/xmlrpc that I'd really like to use in one of my projects. I downloaded the sources, the initial target was set to Mac OS, so I changed that to iOS 4.3 but got the following dependency error:
target specifies product type 'com.apple.product-type.framework', but there's no such product type for the 'iphoneos' platform
So I removed all the targets and added a new one from scratch using the Cocoa Touch Static Library, and it seems like it's been built just fine. Now my question is whether this is the correct way to build that library for iOS development, and where do I take it from here? I can't find the .framework directory anywhere (the install dir was set to "#executable_path/../Frameworks") so I can't embed it in my iOS project. How exactly does this go? Thanks!
Thanks for your help and sorry if this is too "newbish". Cheers!
If you're using Xcode 4.x open the Organizer, select the Projects tab and then down the left hand side you should see an entry relating to the XML-RPC project. Select that and under the Derived Data heading you'll see a path which if you follow using finder should lead you to the folder containing the static library you've built.
I cannot find where it is after I installing Xcode 4. Does any one know where it is ?
Edit:
I had installed another app for editing XML file. It is named XMLEditor and located here. Because I need to edit a plist file with an extension which is not end with .plist, so finally I googled another solutions about XML editor.
In XCode 4 the property list editor is integrated. It should appear in the XCode application.
I put together a frankenstien version of the Property List Editor a while ago. Its totally self contained and should work as a stand alone app.
Find it here:
https://www.dropbox.com/s/k6knivza9dramb5/Stand%20Alone%20Property%20List%20Editor.app.zip
I found in xcode 4 when you create a new plist file, the editor opens as blank. If you right click in the blank editor space, you can "add row". Begin from there.
I wish I'd seen this before installing Xcode 4 - the Property List Editor.app was so nice and lightweight and fast - now having to launch Xcode.app just to edit a plist file ... ugh.
I'm going to dig it back out of my old Xcode 3 DMG ... this is just not cool.
You can install the Snow Leopard Property List Editor application on Mac OS X 10.7 Lion by following this tutorial:
http://sveinbjorn.org/install_property_list_editor_app_on_mac_os_x_lion
The application continues to work just fine in Lion, as long as you also install the now-deprecated framework it relies on. It's just that Apple isn't including it, presumably because they want us to use bloated XCode 4.
I have just installed new xcode with sdk 4.3b because I need 'airPlay' feature in my current project which is based on sdk 4.2. But I open my project and type my MPMoviePlayerController object....
mpObject.???
... but here I don't have allowAirPlay property. But when I start new project and create movie player I have that property, but don't have in my old project, what should I setup to have this?
The 4.3 beta (as with all iOS betas) is under NDA and not something you're supposed to discuss in public. General advice would be not necessarily to trust Xcode's autocompletion (it's not infallible).
You are probably linking to the old 4.2 MediaPlayer Framework. Try Deleting the framework from project and adding it again.
So I am working on an app that was compiled on sdk 3.2 and 2.2.1, but I have sdk 4.0. When I compile it, I get many build errors "Pattern colors not supported by the iphone SDK for iphone OS versions prior to 3.0" and "setText is deprecated."
Furthermore, when I open a nib file and try to change the colors, add in an item from the library, or mess around with it my changes and additions don't show up during runtime. I am thinking this is an issue with the interface builder, particularly the different SDK versions.
Is this the case? I am programming for the ipad, so I need at least 3.2?
Open the .xib file in Interface Builder, then select Window > Document Info, select a later version of Deployment Target OS version.
Your errors of "setText is deprecated" is an error in your code because apple updated their framework. The easiest to fix that would be to check the framework for a comment that says what to use.
When you make a change to a nib file, interface builder and Xcode require that you save before building the project.
The iPad is only 3.2, so yes you will need to build it for iOS 3.2.
Sorry I am OP, had to create an account since I was using a temp one.
Thanks for the answer, however, I'm not too worried about setText is deprecated because it builds successfully.
Regarding the nib file, I did save, clean and rebuild the project. I'm working on someone else's code done in earilier sdk's, and when I delete their objects in IB the app will still run fine, as though the interface builder is not responding. I add objects in the nib and they won't show up. If I do this is projects I create, it goes through finely. My guess is it's the different sdks?
I recently moved my projects to a new mac, along with a newer version of Xcode.
When i opened my project i noticed that some files were red. So i remapped them by setting the path (by project path) and then providing the proper path location.
Now my problem is that the frameworks that i have are red, and i cant find their location! I did set the framework paths to be "relative to current SDK" however.
Can anybody help me get my frameworks mapped correctly?
The frameworks im using are:
- QuartzCore.framework
- libsqlite3.0.dylib
- UIKit.framework
- Foundation.frameowrk
- CoreGraphics.framework
The XCode version is 3.1.4 (the only one installed).
The iPhone app was originally created using a prior version of Xcode (i dont remember which version).
I still dont have an answer. Im going deeper into this mess of a problem that Apple created.
In all my .m files im importing
How can i add this UIKit framework to my project Target with respect to the current SDK?
In fact, forget about the ref w/ respect to the SDK, let's just get the framework from the 3.0 SDK as a referenced framework. Right now when i reference it is red.
Note: references related to frameworks, everything about it, is driving me insane, and making me more frustrated at apple for this sloppiness, more than ever.
Any help is greatly appreciated.
I had exactly this problem. Somehow 'Base SDK' in Build Settings of a project was set to Mac OS X after I have installed Xcode 4.2.
Click on your project, change Base SDK to 'Latest iOS' and enjoy the vibe.
If you double click on your target to bring up the info pane you will see a tab labeled "Linked Libraries". From here you can click the plus button to add the libraries and xcode will do the right thing when you add the desired frameworks
I was having the same issue with red frameworks and bad pathing. If you're getting an error that says, "Base SDK Missing" you'll need to Get Info on your Xcode Project and check that it can find the right SDK.
Near the bottom of the General Info tab there will be an option Base SDK for All Configurations. Select a different SDK and see if that helps.
I ran into issues when I upgraded to a beta SDK and it was loading up deprecated frameworks from an old SDK.