Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2010-09-01
19
Medium Priority
?
817 Views
Last Modified: 2012-05-10
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
Comment
Question by:carvalhaes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 12
  • 6
19 Comments
 
LVL 33

Expert Comment

by:pgnatyuk
ID: 33583629
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
 
LVL 33

Expert Comment

by:pgnatyuk
ID: 33583648
>>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
 

Author Comment

by:carvalhaes
ID: 33587442
thanks but this "Core Video Sample" isnt for iPhone.
i need a sample code for a video player for iPhone.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

 
LVL 33

Expert Comment

by:pgnatyuk
ID: 33588748
?
>>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
 

Author Comment

by:carvalhaes
ID: 33589830
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
 
LVL 33

Expert Comment

by:pgnatyuk
ID: 33590128
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
 
LVL 33

Accepted Solution

by:
pgnatyuk earned 2000 total points
ID: 33590477
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
 
LVL 33

Expert Comment

by:pgnatyuk
ID: 33590515
I attached the screenshot - simulator with the MoviewPlayer loaded.

iPhone-Simulator.jpg
0
 
LVL 33

Expert Comment

by:pgnatyuk
ID: 33597931
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
 

Author Comment

by:carvalhaes
ID: 33598359
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
 
LVL 33

Expert Comment

by:pgnatyuk
ID: 33598379
You are welcome to ask related questions. Really.
0
 

Author Comment

by:carvalhaes
ID: 33598508
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
 
LVL 33

Expert Comment

by:pgnatyuk
ID: 33598625
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
 
LVL 33

Expert Comment

by:pgnatyuk
ID: 33599807
You marked a comment with the screenshot as the accepted solution. Why?
The solution is http://#a33590477.

0
 

Author Comment

by:carvalhaes
ID: 33599961
oh yes, i made a mistake... is it possible to change the answer to the ...477?
0
 
LVL 33

Expert Comment

by:pgnatyuk
ID: 33600015
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
 
LVL 33

Expert Comment

by:pgnatyuk
ID: 33600363
Thanks.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CocoaPods is the best way to manage library dependencies in iOS and OS X projects. By using cocoa pods there is no need of downloading the code from github and copying to your project. There are plenty of open source libraries now available with C…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question