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
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
813 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
  • 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
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 500 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
 

Author Comment

by:carvalhaes
ID: 33597858
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

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.

Question has a verified solution.

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

Preface   In the first 100 days of the Macintosh release in January 1984, Apple sold 72,000 of the computers. Relatively cheap, easy-to-use personal computer with a graphical operating system. I've never seen this model. I did see this one:   …
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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