Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 820
  • Last Modified:

Sample from Apple.com have an error (There is no SDK with the name or path 'iphoneos3.0)

Hi!
I try to run this code of a sample program name "MoviePlayer", from
http://developer.apple.com/iphone/library/samplecode/MoviePlayer_iPhone/Introduction/Intro.html
My iPhone SDK is the newest and when i try to run i received this message of error:
"There is no SDK with the name or path 'iphoneos3.0'".

How can i fix the program to make it run at my mac?

Thanks and sorry for my bad english!

(if someone knows a code of a movieplayer like the 'Videos' from an iPhone, please tell me)
0
carvalhaes
Asked:
carvalhaes
  • 12
  • 6
1 Solution
 
pgnatyukCommented:
That example should work. Maybe, you need to check and modify the project settings. Firstly check that your build to iPhone SDK. Check different configuration: release, debug. device, simulator, etc. If you will select the top most item in the left panel in Xcode and click on the right mouse, in the popup menu you can choose "Get Info" - that's the project settings. You can see and modify them. Also you need to check the Targets in the project - right click and modify.
0
 
pgnatyukCommented:
>>How can i fix the program to make it run at my mac?
Oh. I didn't pay attention on it. Do you want an iPhone program run under Mac OS X?
If yes, my previous comment is wrong. Sorry.
You need to look for an example for Mac OS X. For example something for "Core Video sample". I've not tested myself. But I see, for example:
http://developer.apple.com/mac/library/samplecode/QTCoreVideo103/Introduction/Intro.html
Or something for Quicktime.
Here is a list of samples on the developer site:
http://developer.apple.com/mac/library/navigation/index.html?section=Resource+Types&topic=Sample+Code
 
0
 
carvalhaesAuthor Commented:
thanks but this "Core Video Sample" isnt for iPhone.
i need a sample code for a video player for iPhone.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
pgnatyukCommented:
?
>>How can i fix the program to make it run at my mac?

Here you wanted a video sample to run on the mac. Please decide what you need. :) And let me know.
0
 
carvalhaesAuthor Commented:
sorry for my bad english!

im programming at xcode, to make an iPhone program.
i use my mac to make this program, and i want to play
a video at iPhone Simulator
0
 
pgnatyukCommented:
Now I understand. I'm afraid to promise to download and test this sample, but if it will happen I will let you know.
I found this article:
Play Video with MPMoviePlayerController in iOS 3.0 and 3.2/4.0
http://iphoneincubator.com/blog/audio-video/play-video-with-mpmovieplayercontroller-in-ios-3-0-and-3-24-0
and wanted to begging from it.

0
 
pgnatyukCommented:
I've downloaded the sample and compiled it.
Yes, you need to set the SDK. Open the project in Xcode. The most top item in the left panel is MoviePlayer. Select it. Click on the right mouse button. In the popup menu select "Get Info". Select "Build" page. Here you need to set the SDK. I attached a screenshot.
Then, in Xcode select the Simulator as the target - the second screenshot.

Screen-shot-2010-09-02-at-10.22..png
Screen-shot-2010-09-02-at-10.23..png
0
 
pgnatyukCommented:
I attached the screenshot - simulator with the MoviewPlayer loaded.

iPhone-Simulator.jpg
0
 
carvalhaesAuthor Commented:
0
 
pgnatyukCommented:
I downloaded the sample you told.
This article:
Play Video with MPMoviePlayerController in iOS 3.0 and 3.2/4.0
http://iphoneincubator.com/blog/audio-video/play-video-with-mpmovieplayercontroller-in-ios-3-0-and-3-24-0?

does not contain a code to download. You can cut and paste if you wish. But you need to create the project.

0
 
carvalhaesAuthor Commented:
ok... the video plays at my iphone simulator, but im having three problems:
1 - if i rotate the iPhone Simulator, the video dont rotate.
2 - if i touch the video, i cant see the buttons (play, pause, etc.)
3 - when the video finish, the program close.

i just use the first of the three codes of http://iphoneincubator.com/blog/audio-video/play-video-with-mpmovieplayercontroller-in-ios-3-0-and-3-24-0?

thanks
0
 
pgnatyukCommented:
You are welcome to ask related questions. Really.
0
 
carvalhaesAuthor Commented:
i dont understand what you say...
do you want that i put accept as solution and after that i create more threads with these three questions?
im new here at experts-exchange and i dont understand how this site works...
but thanks!
0
 
pgnatyukCommented:
If you already got the answer for your question, you accept a comment as a solution, and, then, you can ask a related question.
EE Help about the related questions:
http://www.experts-exchange.com/help.jsp#hs=29&hi=414
I'd recommend you to ask these three questions separately - these are three different questions. I think so.

0
 
pgnatyukCommented:
You marked a comment with the screenshot as the accepted solution. Why?
The solution is http://#a33590477.

0
 
carvalhaesAuthor Commented:
oh yes, i made a mistake... is it possible to change the answer to the ...477?
0
 
pgnatyukCommented:
In case you need to change the accepted solution, you just press "Request Attention" in the right-down corner of the question area. Then, say what is the problem.
I think, it's better if you will do it. I can press "Request Attention" too, but my explanation will be much longer. :)
0
 
pgnatyukCommented:
Thanks.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

  • 12
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now