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.
Related
I am working on a project where I am using mapView, in projects build phases mapkit framework is not present what could be the problem, please check the image below
Take the mapkit framework from another xcode or download it from the frameworks section in the apple developers website. You simply have to copy it and add it to xcode or you can even add it to your project from the folder which contains all the frameworks. If they still don't come then you will have to reinstall your xcode. Hope it works out just fine.
Or you can directly download from here MapKit.framework
Check if you can retrieve frameworks from the original folder :
Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library
In any previous application making you had delete the framework directly that's why it was not showing in xcode. please reinstall the xcode you will get it. or you can download it from apple site.
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.
I tried googling it but it's hard to find it. Is there any way to download the CoreMedia framework to include in my app?
In your Xcode project, there will be several frameworks (in the "Frameworks" folder). If you right click any of these and then click "Show in Finder" you can have a complete list of all the frameworks, ready to drag and drop into your project. CoreMedia.framework is one of these. This applies to all versions of Xcode.
It's included with XCode, just add a new framework under the "link to other libraries" build phase.
This is included with the iOS SDK. You can link against the Core Media framework in Xcode. The reason why you don't find it anywhere is because it doesn't come separately.
It's already there if you have installed the iOS SDK. You need to add the framework to your project. Which version of Xcode are you using?
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.