IPhone simulator vs. device
hi guys,
I am writing an streaming video application for iphone with my own video decoder written in C. While running on simulator it gives me speed of around 16fps but when i try it on device it gives me only around 4fps. Why does that happen? Same decoder code i have tried and tested on other platform devices (windows mobile, nokia etc.).
Can anyone please help me solve the problem...
The simulator runs at the full speed on your Mac. The iPhone has a slower processor, so apps run slower on the simulator than they do on your Mac.
Similar Messages
-
IPhone simulator Vs device Help please
I coded up an application and it works fine under the simulator. Now I go to run it on the iPhone and I get this:
error:cannot find interface declaration for 'NSHost'
Why would the app work in the simulator but not for the device? I have several apps that I wrote on the device so I know that is working properly.
Any help would be great. I am going out of my mind with this.Zorko993443 wrote:
Why would the app work in the simulator but not for the device? I have several apps that I wrote on the device so I know that is working properly.
I've never done iPhone development, but I've had to deal with a few simulators. Simulators are never the same as the actual device - never. There could be random bugs either on the device or simulator side that cause one of them to fail. A very important point to remember is that just because it works on the simulator does not mean you have done it correctly. Perhaps you need to manually do an "import <NSHost.h>" on the iPhone. Or maybe there is no NSHost.h on the iPhone and you need to change your working simulator code. -
Using the camera and the iPhone simulator
I have tried this with the simulator:
isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera
and it always returns: NO.
This implies that it is not possible at the moment to use the camera in the iPhone simulator. Am I correct in this?
Note: In Java Mobile Edition, the mobile phone simulator gives simulated images and video to test camera functionality.To record video, you must first check that the camera source type (UIImagePickerControllerSourceTypeCamera) is available and that the movie media type (kUTTypeMovie) is available for the camera.
The code I added below:
if (UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera) {
But I traced the code and found that the if condition returns false. Does that mean I should run the app on the device not on simulator? -
Only MainView is localized on iPhone Simulator
Hello together,
I have made up an App on iPhone Simulator, it uses the navigation tamplate and has 5 Views: MainView, RootView, and 3 detail Views. I have added localisation as usual, using Localizable.strings and making localized .xibs. So the App has now two languages. I set the language on the iPhone Simulator to German (the second Language), the system is in German (e.g. carrier). But the App Is only partly, that means, only the standart words (like delete in a TableView I have no Influence on) and the "Bar Button Item - Main" in the MainView. But this is not enough. I changed a word on a button in a English .xib, I saw the change in Interface Builder, but not on the simulator. I move the buttons around. Nothing on the simulator. I tried everything, I reseted the simulator, restarted it, but it did not help, the simulator keeps the old version. So I´m really confused, and think it´s a problem of the simulator, but I have no idea what it might be. Has anyone an advice?See the WWDC 2011 video 'Session 125 - Internationalizing Data on Mac and iPhone'.
Are you saving changes in IB?
Delete the app from the simulator, clean the build in Xcode and try again....better yet, test on a device. -
How to manually install an app in the iPhone simulator
Hi,
I have tried to copy my app to ~/Library/Application Support/iPhone Simulator/User/Applications but it doesn't appear in the iPhone Simulator.
What else do I need to do? Or where do I have to copy it?
Thanks,
AlbertYou just set your target to your device and when you click "run", it will install it into the simulator and run it.
-
How do i get rid of black screen on iPhone simulator
im makg a game on Xcode for iOS buterytime i try to run the app the iPhone simulator goesBlack could still see the app icon but not the applcation it self it l team fixes this problome to lauch it n the near winter. We have it updated to iOS 7 SDK but that still hasnt soved the problome as well as resting the iPhone our only wa of ning the app is to upload it to an ipod 5 but i want to hare the progress by screen share using OS X server scinc my team is scatterd all around town. So please reply to any remody to this problome im sure im not the only one.
You are posting this question in an iWeb forum exactly why?
Try posting this in the iPhone forum and you might get more help. -
ITunes could not connect to this iPhone. The device is no longer connected
A few days ago, my iPad 3 A1430 screen turned black. Siri was still there but very slow to respond. The following day, the screen display returned (the usual green background colour but a much smaller display and not a single icon present). Siri was back up to speed, could play music, display info but could not respond to calendar enquiries etc. The iPad would switch off but not reboot. I let the battery level drop to zero then re-charged: iPad now working again.
Wanting to back-up my iPad, I ran iTunes version 12.1.0.50 on iMac (Yosemite 10.10.2). I have PCemulator installed and when the iPad connection was made, I received the usual screen prompt for which to connect to Mac or PC. (The problem starts here: - the prompt was flashing on/off). I selected Mac & received the message “iTunes could not connect to this iPhone. The device is no longer connected”.
Rebooted PC and iPad, connecting iPad offers no device prompt, only the same error message.
Successfully backed up iPhone 6 using iTunes.
Upgraded iPad software to IOS 8.2 and connected again. No effect, same error message.
Looked at various Apple posts but couldn’t find a solution. After several iMac & iPad reboots, eventually managed to back-up my iPad and in the process lost all my iPad music built up over the years on my old PC. Managed to recover these music files from my old PC and load them onto iTunes on my iMac. Tried to sync my iPad but back to error message “iTunes could not connect to this iPhone. The device is no longer connected”.
Any solution?I have the same problem. In fact when I plug in my iPad 2 updated to ios 7.0.4 I get that same message and it crashes my entire system - forcing me to reboot.
-
When I plug my iPhone 4 in to my MacBook Pro, it charges but it is not recognised in iTunes.
After about 30 seconds I get the following message:
"iTunes could not connect to this iPhone. This device is no longer connected."
The device still charges but is not recognised.
I've obviously tried restarting both devices / programs. I'm running the laters versions of iTunes and iOS on my iPhone. I've tried all the steps in the troubleshooting pages, and i've re installed iTunes. Stil no luck.
Any help would be appreciated.
Thanks!I am having a very similar issue with my iPhone 5.
Yesterday I took it to the Apple Store as the battery was draining rapidly, and had the phone restored from an iCloud backup. Everything but my music was synced, and when I returned home to sync my music, the iPhone is only being recognised by iPhoto and I am having error messages from iTunes that the iPhone is not recognised and is unresponsive. I have tried everything I have found online, including trying to connect my phone to my work computer with similar messages.
Please help! -
I have done my updates and itunes is no longer recognizing my iphone as a device. My phone shows that it is plugged in but when I open itunes, my iphone doesn't come up as a device.
Hi there,
I would recommend taking a look at the troubleshooting steps found in the article below.
iOS: Device not recognized in iTunes for Mac OS X
http://support.apple.com/kb/TS1591
-Griff W. -
When I connect my iPad to my iMac I get a repetitive flashing error message "iTunes could not connect to this iPhone. This device is no longer connected." iPhoto eventually launches but iTunes will not launch iTunes. iPad will not charge. Restarted iMac and rebooted iPad and no difference.
Hi GJ374,
Thanks for using Apple Support Communities. This article has steps you can take for issues with your iPad not being correctly recognized in iTunes:
iOS: Device not recognized in iTunes for Windows
http://support.apple.com/kb/TS1538
Cheers,
- Ari -
Working with BDB SQL API (libsqlite3.a) on iPhone Simulator
Hi,
I downloaded latest BDB and got a static library libsqlite3.a by compiling the code on Mac OS X (1.6.8 64bit).
I am now trying to use this library as a drop in replacement into a SQLite project.
I copied the SQLite database (with only one table) to a new Berkeley DB.
I want to access this new Berkeley DB with existing code using SQLite.
I followed following steps:
1. Added (copied) libsqlite3.a from build directory to my project
2. Added #import <db.h> and left #import <sqlite3.h> as it is
3. compiled the code and ran it in iPhone simulator
The code runs fine until I go to prepare a statement. Please see the snippet from the function below:
- (void)initializeDatabase {
NSMutableArray *todoArray =[[NSMutableArray alloc] init];
self.todos = todoArray;
[todoArray release];
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *path = [documentsDirectory stringByAppendingPathComponent:@"todo.db"];
if (sqlite3_open([path UTF8String], &database) == SQLITE_OK) { // This is ok, opens berkeley DB
const char *sql = "SELECT pk FROM todo";
const char *tail;
sqlite3_stmt *statement;
if (sqlite3_prepare_v2(database, sql, -1, &statement, &tail) != SQLITE_OK) { *// Fails here - table and records exist in Berkeley DB*
if (sqlite3_step(statement) == SQLITE_ROW) {
int primarykey = sqlite3_column_int(statement, 0);
Todo *td = [[Todo alloc] initWithPrimaryKey:primarykey database:database];
[todos addObject:td];
[td release];
} else {
NSAssert1(0, @"Failed to read from the table '%s'.", sqlite3_errmsg(database));
sqlite3_close(database);
sqlite3_finalize(statement);
} else {
NSAssert1(0, @"Failed to open database with message '%s'.", sqlite3_errmsg(database));
sqlite3_close(database);
The log dump:
GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".sharedlibrary apply-load-rules all
Attaching to process 14578.
Pending breakpoint 1 - ""todoAppDelegate.m":109" resolved
Current language: auto; currently objective-c
/Users/kpotnis/Library/Application Support/iPhone Simulator/4.3.2/Applications/0322BCD5-4C71-498E-82EC-469133B7A935/Documents/todo.db: BDB0113 Thread/process 14578/2696754496 failed: BDB1507 Thread died in Berkeley DB library
Any thoughts?
Edited by: 868618 on Jul 11, 2011 4:51 AMHi,
I was looking over this and I was wondering if you've got the chance to progress with this issue or if you need assistance?
Thanks,
Bogdan Coman -
Hi! I have an iPhone 4S with iOS 6.1.3 and I have iTunes 11.1.3.8. on my Windows 8. Now I can't sync my iPhone, because the device is not recognised by iTunes. Somebody have any idea why, or what can I do (except refresh the iPhone software) ?
Hi Drazse,
Thanks for visiting Apple Support Communities.
If your iPhone is not recognized by iTunes for Windows, the troubleshooting steps in this article may help:
iOS: Device not recognized in iTunes for Windows
http://support.apple.com/kb/TS1538
Cheers,
Jeremy -
I have a new computer, Windows 8. My old laptop died and I used to Sync my iPad and iPhone on that device. Now I want to update, the new desktop computer states that I do not have permission. How do I change permissions to this new computer?
Did you authorize it?
-
Error in iTouch, but OK in iPhone simulator
I got the following error:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIWebDocumentView anchorPoint]: unrecognized selector sent to instance 0x839a00'
the code runs ok in iphone simulator, but in my iTouch 3G (8GB, upgrade to iOS 4), it show the above error, here is the stack:
0 CoreFoundation 0x36440303 __exceptionPreprocess + 114
1 libobjc.A.dylib 0x3523d4c4 objcexceptionthrow + 40
2 CoreFoundation 0x36443e0f -[NSObject(NSObject) doesNotRecognizeSelector:] + 98
3 CoreFoundation 0x364432ab __forwarding__ + 506
4 CoreFoundation 0x364433a8 _forwarding_prep_1__ + 56
5 QuartzCore 0x30c88c0c -[CALayer setFrame:] + 196
6 UIKit 0x324312a0 -[UITextView commonInitWithWebDocumentView:isDecoding:] + 1280
7 UIKit 0x324f405c -[UITextView initWithFrame:] + 104You may have better luck using the proper forums, etc.:
https://devforums.apple.com/community/iphone -
IPhone Simulator will not scroll
I've the latest Xcode, Mac OSX, and Safari. When I use the iPhone Simulator to test a Drupal website I've developed the simulator will not scroll any of the pages. I'm using a MacAir with no mouse. What do I have to do to scroll?
I suspect you have the Voiceover accessibility feature turned on. The easiest fix is to connect your phone to iTunes. Select the "Configure Universal Access" button in the summary pane and turn Voiceover off.
Maybe you are looking for
-
4:3 or 16:9? Any difference in result?
Okay, to start off with I was one of those people who couldn't figure out why discs with source material of 16:9 burned at 16:9 was showing up on regular TVs as full screen. I reburned the same source at 4:3 and got the same result. The ProCare tutor
-
Desc doesn't show datetime columns from SQl Server
Hi Everyone, I have working db link to sql server using hsodbc: Oracle 10.2 on AIX using freetds odbc driver version 0.82. I can access tables on sql server but oracle sees only varchars and numerics columns in a table. Is there a way to select datet
-
Where do Apple movie trailers download to?
I downloaded a movie trailer today from Apple and it played in Quicktime. I want to delete it now but I can't find it anywhere! I have OS X Mountain Lion 10.8. I searched the internet and there no suggestions that work on my operating system. How
-
ALV Editable Grid Control F4 help problem
HI Experts, am facing some funny and critical problem in ALV Editable GRID,that is i used OOPS concept for ALV GRID Control output, in fieldcatalog i given for fields as wafieldcatlog-f4availabl = 'X'. wafieldcatlog-ref_table = 'table'. wafiel
-
"Filesystem Check Failed" and problems fscking it
I realize that there are other threads about failed filesystem checks, but I think my problem is a bit unique. Sorry for making yet another thread if this question has been answered before and I am too stupid to find it: I made an 8 hour drive back f