Xcode iPhone - Adding framework works a little bit - iphone

No biggie, but when I add the AVFoundation framework for the iPhone, it turns red for some reason I'm unable to figure out why. The project will not compile unless I add this framework, and if I do, Xcode will mark the framework red (apparently that means xcode cannot find the framework), but yet it will work.
This is quite annoying. Any clue what I might be doing wrong here?

Try adding AVFoundation framework via your target.
Look for your target under "Groups and Files"
"Get Info" for it
Click the "General" tab
At the bottom right of the window click the "+" button
At the top of your list you should find AVFoundation, add it.

close Xcode
delete your project
shut down your mac
take the mac back to your boss and tell him it's not working
wait until they figure out what it is
if this doesn't work, find a new job that doesn't require the use of a mac
All I had to do was open up the "General" settings tab for the project and change the "Base SDK for All Configurations" value. It was set to an SDK that I no longer had installed.

Related

how to find libraries for xcode iphone developing

i am watching my first xcode tutorial on youtube , it says that i have to make new "based view application" but i found "simple view application" i thing it is the same , am i right? then on the tutorial there are somethings like buttons , textareas... to put it in the view but i can't find it with my xcode 4.5.2 , i read on google it is from tool then library but i don't have "tool", what should i do to see it please? by the way i just have mac os x lion 10.7.4 and xcode 4.5.2 maybe i have to install another programs ?
this is what i see
and when i press new project check what i see, there is no "view based application"
On the top right, you have three buttons above "View", click the right one to open the right sidebar. In the bottom right corner, you find your UI Objects. Nothing else needed.
Click the small "box" (3rd of the four symbols) in the bottom right.
I dont know which tutorial you are watching but if its unclear you can allways follow this tutorial. If you scroll down you will find what you are looking for! Good luck
Create View Based Application from scratch
Another example of same thing

application executable is missing a required architecture

I'm attempting to upload my first app to the app store using xcode 4.3, but can't get past this error... "application executable is missing a required architecture. At least one of the following architectures must be present: armv7" I looked up the issue. Their are several post on stackoverflow addressing the issue, but none of the suggestions listed worked. I attempted to add armv6 and armv7 to the build settings, but the errors still persist. Any suggestions would be welcomed. Thanks.
screen shot here..
http://dl.dropbox.com/u/2813968/Build%20Settings.png
For Xcode 4.5 at least, set the deployment target to at least iOS 4.3 and that will resolve it. Earlier versions of iOS and armv6 are almost extinct.
Make sure that these settings match your Target and not just your Project settings.
1) Left-click project icon (blue icon, under "Run" button).
2) Next to the project icon (to the right of it), left-click on project name under "PROJECT" (White background).
3)Select tab "Build Settings" and look for tab "Build Active Architecture Only" -----change to -----no

Xcode 3.2.6: an issue with the Cocos2d Framework

I'm using XCode 3.2.6. I'd like to make my game work for earlier version 3.1.3 but when I build the Project in Xcode, I'm getting the following error:
File /Users/.../build/Debug-iphoneos/libcocos2d libraries.a depends on itself. This target might include its own product.
And it's the only error. What's the meaning of this error? What's the issue here?
For some reason your Cocos2d library depends on itself. Open the properties for your Cocos2d library target (right click -> "Get Info") and look at the general tab. There's a list called "DirectDependencies". Remove the cocos2d library from that list.
Another place where a direct dependency could occur is the Cocos2d library product. Open the properties for your Cocos2d library product (this time under "Products" not under "Targets"). Open the targets tab and look at the targets. If the cocos2d library is checked as target, uncheck it.

Compatibility problem iAd Banner?

Hi i am using iAd Banner in my test aap.It works fine with 4.0 Sdk but when i went with SDK 3.0 or before ,it crashes without showing anything.I read that weaklink will help me regarding this problem but as per my thinking it crashes when it doesn't find the framework.I do not even know that how to use Weak-link.Please help me to fix this problem.
Expand the Targets directory, right click , and choose “Get Info”. Click the Build tab, make sure “All Configurations” is selected, and navigate to Linking\Other Linker Flags. Double click on that entry, click the “+” button, and type “-weak_framework iAd”.
When allocating your ADBannerView, first check to see if the OS version supports it:
if(NSClassFromString(#"AdBannerView")) {
//Allocate ADBannerView here
}
Then in the build settings of your target, add -weak_framework iAd to Other Linker Flags in the Linking section.
Edited as per Jonathans recommendation.

Trouble opening Mainwindow.xib in Xcode/iPhone Development

I was going through the Hello World tutorial for iPhone App. I recently bought a Macbook and have installed Xcode 3.2.3. The tutorial says that I should double click on MainWindow.xib and wait for few seconds to see an Interface builder getting opened. But nothing like that is happening in my macbook. Is there an alternate way to bring up the Interface builder or even to check whether I have the Interface builder at all!?
http://img683.imageshack.us/img683/3412/problemym.png
Rest of the stuff like iPhone simulator are working properly. What am I doing wrong. Please help me.
Thanks
Go to finder and search for "interface builder" as a file name. see if the application is there.
If you have tried everything listed on all websites over internet and if nothing works then try this:
Right click on MainWindow.xib -> GetInfo -> General -> "Path: Relative to current SDK"